2 declare(strict_types = 1);
30 $I->useExistingSession(
'admin');
39 $I->waitForElementVisible(
'#web .modulemenu-group-container .modulemenu-item');
40 $I->seeElement(
'#web .modulemenu-group-container .modulemenu-item');
43 $I->wantTo(
'collapse the menu element');
44 $I->waitForElementVisible(
'#web .modulemenu-group-header');
45 $I->click(
'#web .modulemenu-group-header');
46 $I->waitForElementNotVisible(
'#web .modulemenu-group-container .modulemenu-item');
47 $I->dontSeeElement(
'#web .modulemenu-group-container .modulemenu-item');
50 $I->wantTo(
'expand the menu element again');
51 $I->click(
'#web .modulemenu-group-header');
52 $I->waitForElementVisible(
'#web .modulemenu-group-container .modulemenu-item');
53 $I->seeElement(
'#web .modulemenu-group-container .modulemenu-item');
61 $I->seeNumberOfElements(
'#web .modulemenu-item-link', [2, 20]);
63 $I->wantTo(
'check that the second element has no "active" class\'');
64 $I->cantSeeElement(
'#web #web_list.active');
65 $I->click(
'#web #web_list .modulemenu-item-link');
67 $I->wantTo(
'see that the second element has an "active" class');
68 $I->canSeeElement(
'#web #web_list.active');