Skip to content

Commit

Permalink
ACMS-1989: Fix failing tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
rajeshreeputra committed Oct 13, 2023
1 parent d6c9c6b commit d20b107
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ public function testChildMenu(string $selector, string $parentMenuName, array $c
/** @var \Drupal\FunctionalJavascriptTests\JSWebAssert $assertSession */
$assertSession = $this->assertSession();
// Wait for menu items to visible.
$menuItem = $assertSession->waitForElementVisible('css', '.hover-intent.menu-item');
$menuItem = $assertSession->waitForElementVisible('css', '.menu-item.hover-intent');
$this->assertInstanceOf(NodeElement::class, $menuItem);
$childrenMenuItems = $page->findAll("css", ".claro-toolbar-menu > .hover-intent.menu-item > ul.toolbar-menu:first-of-type > li");
$childrenMenuItems = $page->findAll("css", ".toolbar-menu-administration > .toolbar-menu > .menu-item.hover-intent > ul.toolbar-menu > li.menu-item");
$this->assertCount(count($children), $childrenMenuItems);
foreach ($childrenMenuItems as $key => $child) {
$this->assertEquals($children[$key], $child->find("css", "a:first-child")->getText());
Expand Down

0 comments on commit d20b107

Please sign in to comment.