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 f0a062e
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ protected function setUp(): void {
$this->markTestSkipped('This test cannot run in an Acquia Cloud IDE.');
}
parent::setUp();

$this->moduleInstaller = $this->container->get('module_installer');
$this->moduleList = $this->container->get('extension.list.module');
$account = $this->drupalCreateUser();
Expand Down Expand Up @@ -92,9 +93,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 Expand Up @@ -144,6 +145,7 @@ public function providerMenu(): array {
'.toolbar-icon-system-admin-content',
'Content',
[
'Overview',
'Scheduled Content',
'Add content',
'Files',
Expand All @@ -156,6 +158,7 @@ public function providerMenu(): array {
'.toolbar-icon-admin-access-control',
'API',
[
'Overview',
'Dashboard',
'OAuth clients',
'OAuth settings',
Expand All @@ -168,6 +171,7 @@ public function providerMenu(): array {
'.toolbar-icon-admin-content-models',
'Data model',
[
'Overview',
'Block types',
'Content types',
'Media types',
Expand All @@ -179,6 +183,7 @@ public function providerMenu(): array {
'.toolbar-icon-admin-cms',
'System administration',
[
'Overview',
'Structure',
'Extend',
'Configuration',
Expand Down

0 comments on commit f0a062e

Please sign in to comment.