Skip to content

Commit

Permalink
test: change navigateToLandingPage wait element
Browse files Browse the repository at this point in the history
Updated navigateToLandingPage to wait on the side nav instead of a page
element since the new landing page can conditionally redirect you to
index management.
  • Loading branch information
TattdCodeMonkey committed Oct 17, 2024
1 parent cbb0e3a commit e4f3469
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ export function SvlSearchNavigationServiceProvider({
async navigateToLandingPage() {
await retry.tryForTime(60 * 1000, async () => {
await PageObjects.common.navigateToApp('landingPage');
await testSubjects.existOrFail('elasticsearchStartPage', { timeout: 2000 });
// Wait for the side nav, since the landing page will sometimes redirect to index management now
await testSubjects.existOrFail('svlSearchSideNav', { timeout: 2000 });
});
},
async navigateToGettingStartedPage() {
Expand Down

0 comments on commit e4f3469

Please sign in to comment.