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 tests #24

Open
AdilIqbal95 opened this issue May 13, 2022 · 0 comments
Open

Failing behat tests #24

AdilIqbal95 opened this issue May 13, 2022 · 0 comments

Comments

@AdilIqbal95
Copy link

Hi, various tests in the files collaborate.feature, disable_collaborate.feature, collaborate_completion.feature are failing.

Environment details:
MySQL 5.7
PHP 7.4
Moodle latest MOODLE_400_STABLE

Error details:
collaborate.feature
Scenario: Collaborate instance can be created with default instructor settings and edit the settings.
And I click on "#region-main-box .action-menu-trigger .dropdown .dropdown-toggle" "css_element": Css_element matching locator "#region-main-box .action-menu-trigger .dropdown .dropdown-toggle" not found. (Behat\Mink\Exception\ElementNotFoundException)

Scenario: Collaborate instance enables large sessions only when there are no groups on common module settings.
And I click on "#region-main-box .action-menu-trigger .dropdown .dropdown-toggle" "css_element": Css_element matching locator "#region-main-box .action-menu-trigger .dropdown .dropdown-toggle" not found. (Behat\Mink\Exception\ElementNotFoundException)

Scenario: Collaborate large sessions option message is shown accordingly.
And I follow "Test collab Instructor settings": The "(//html/.//a
[./@href][((./@id = 'Test collab Instructor settings' or contains(normalize-space(string(.)), 'Test collab Instructor settings') or contains(./@title, 'Test collab Instructor settings') or contains(./@rel, 'Test collab Instructor settings')) or .//[(contains(concat(' ', @Class, ' '), ' icon ') or self::img) and (contains(./@alt, 'Test collab Instructor settings') or contains(./@title, 'Test collab Instructor settings'))])] | //html/.//
[translate(./@ROLE, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz') = 'link'][((./@id = 'Test collab Instructor settings' or contains(./@value, 'Test collab Instructor settings')) or contains(./@title, 'Test collab Instructor settings') or contains(normalize-space(string(.)), 'Test collab Instructor settings'))])[1]" xpath node is not visible and it should be visible (Behat\Mink\Exception\ExpectationException)

Scenario: Collaborate large sessions can be created with guest access.
And I click on "#region-main-box .action-menu-trigger .dropdown .dropdown-toggle" "css_element": Css_element matching locator "#region-main-box .action-menu-trigger .dropdown .dropdown-toggle" not found. (Behat\Mink\Exception\ElementNotFoundException)

Scenario: Collaborate instance with override group mode setting ON will not allow you choose Groups Mode.
And I click on "#region-main-box .action-menu-trigger .dropdown .dropdown-toggle" "css_element": Css_element matching locator "#region-main-box .action-menu-trigger .dropdown .dropdown-toggle" not found. (Behat\Mink\Exception\ElementNotFoundException)

Scenario: Collaborate instance with override group mode setting OFF will allow you choose Groups Mode.
And I click on "#region-main-box .action-menu-trigger .dropdown .dropdown-toggle" "css_element": Css_element matching locator "#region-main-box .action-menu-trigger .dropdown .dropdown-toggle" not found. (Behat\Mink\Exception\ElementNotFoundException)

disable_collaborate.feature
Scenario: Collaborate instance cannot be managed when REST migration is on course.
And I follow "Test collab": The "(//html/.//a
[./@href][((./@id = 'Test collab' or contains(normalize-space(string(.)), 'Test collab') or contains(./@title, 'Test collab') or contains(./@rel, 'Test collab')) or .//[(contains(concat(' ', @Class, ' '), ' icon ') or self::img) and (contains(./@alt, 'Test collab') or contains(./@title, 'Test collab'))])] | //html/.//
[translate(./@ROLE, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz') = 'link'][((./@id = 'Test collab' or contains(./@value, 'Test collab')) or contains(./@title, 'Test collab') or contains(normalize-space(string(.)), 'Test collab'))])[1]" xpath node is not visible and it should be visible (Behat\Mink\Exception\ExpectationException)

Scenario: Collaborate instance can be managed when REST migration is finished.
And I follow "Test collab": The "(//html/.//a
[./@href][((./@id = 'Test collab' or contains(normalize-space(string(.)), 'Test collab') or contains(./@title, 'Test collab') or contains(./@rel, 'Test collab')) or .//[(contains(concat(' ', @Class, ' '), ' icon ') or self::img) and (contains(./@alt, 'Test collab') or contains(./@title, 'Test collab'))])] | //html/.//
[translate(./@ROLE, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz') = 'link'][((./@id = 'Test collab' or contains(./@value, 'Test collab')) or contains(./@title, 'Test collab') or contains(normalize-space(string(.)), 'Test collab'))])[1]" xpath node is not visible and it should be visible (Behat\Mink\Exception\ExpectationException)

collaborate_completion.feature
Scenario: Automatic view completion
And I navigate to "Edit settings" in current page administration: Link "Edit settings" in the current page edit menu" not found. (Behat\Mink\Exception\ElementNotFoundException)

Scenario: Edit settings on Collab are not completing activities automatically
And I navigate to "Edit settings" in current page administration: Link "Edit settings" in the current page edit menu" not found. (Behat\Mink\Exception\ElementNotFoundException)

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

1 participant