Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing Behat test - filter_embedquestion.feature #20

Open
AdilIqbal95 opened this issue May 11, 2022 · 3 comments
Open

Failing Behat test - filter_embedquestion.feature #20

AdilIqbal95 opened this issue May 11, 2022 · 3 comments

Comments

@AdilIqbal95
Copy link

Hi, the test stated above is failing.

Environment details:
MySQL 5.7
PHP 7.4
Moodle latest MOODLE_400_STABLE

Error details:
Scenario: Test using the helper script - embed a specific question
And I reload the page: Dismissed user prompt dialog: To display this page, Firefox must send information that will repeat any action (such as a search or order confirmation) that was performed earlier. (Facebook\WebDriver\Exception\UnexpectedAlertOpenException)

Scenario: Links to and from the question bank
Then I should see "Editing a True/False question": "Editing a True/False question" text was not found in the page (Behat\Mink\Exception\ExpectationException)

@sharpchi
Copy link

sharpchi commented Oct 3, 2022

Yes I get the same error.
MariaDB: 10.3
PHP 8.0
M 4.0.4

Wonder if it's something to do with the browser being used by Selenium: Firefox, in my case.

@timhunt
Copy link
Member

timhunt commented Oct 3, 2022

So, I guess we are talking about this line: https://github.com/moodleou/moodle-filter_embedquestion/blob/main/tests/behat/filter_embedquestion.feature#L43.

Also, I guess I only ever run the tests with profle=chrome, which works. Not sure what the eaisest fix for this will be.

@sharpchi
Copy link

sharpchi commented Oct 3, 2022

Yes, it seems so. For a reason I can't figure out right now, I can't run the Chrome selenium browser, so Firefox is the only one that's currently working for me. I tried using the latest versions of Firefox and Chrome, and no change.
It's not the end of the world as long as it's working somewhere! I'm just reviewing the plugins we use for M4, and I'm sure you're on top of this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants