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

OEL-961: Fix dropbutton links. #147

Merged
merged 3 commits into from
Jan 7, 2022
Merged

OEL-961: Fix dropbutton links. #147

merged 3 commits into from
Jan 7, 2022

Conversation

escuriola
Copy link
Contributor

includes/menu.inc Outdated Show resolved Hide resolved
includes/menu.inc Outdated Show resolved Hide resolved
includes/menu.inc Outdated Show resolved Hide resolved
drishu
drishu previously approved these changes Jan 6, 2022
$items = $crawler->filter('li > a.dropdown-item');
$this->assertCount(5, $items);

$active = $crawler->filter('li:nth-child(1) a')->text();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$active = $crawler->filter('li:nth-child(1) a')->text();
$this->assertEquals('Link 1', trim($items->eq(0)->text()));
$this->assertEquals('Link 2', trim($items->eq(1)->text()));
$this->assertEquals('Link 3', trim($items->eq(2)->text()));
$this->assertEquals('Link 4', trim($items->eq(3)->text()));
$this->assertEquals('Link 5', trim($items->eq(4)->text()));

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That can be done with fewer lines as the suggestion (already tested in local).

@drishu drishu merged commit 8b535fa into 1.x Jan 7, 2022
@drishu drishu deleted the OEL-961 branch January 7, 2022 09:15
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

Successfully merging this pull request may close these issues.

None yet

3 participants