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

Update pfbExportTest.js #1062

Merged
merged 5 commits into from
Dec 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions suites/portal/pfbExportTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,8 @@ Scenario('Visit the Explorer page, select a cohort, export to PFB and download t
login.complete.login(users.mainAcct);
I.wait(5);
I.saveScreenshot('before_checking_navbar.png');
const navBarButtons = await I.grabTextFromAll({ xpath: 'xpath: //div[@class=\'nav-bar__nav--items\']//div/a/descendant-or-self::*' });

const navBarButtons = await I.grabTextFromAll('.body-typo.nav-button');
console.log(`### Nav bar buttons: ${navBarButtons}`);
if (navBarButtons.includes('Exploration')) {
I.amOnPage('explorer');
console.log('### I am on Exploration Page');
Expand Down Expand Up @@ -366,6 +366,7 @@ Scenario('Visit the Explorer page, select a cohort, export to PFB and download t
} else {
I.saveScreenshot('whatTheHellIsGoingOnWithTheNavBar.png');
console.log('WARN: This environment does not have any Explorer or Files button on the navigation bar. This test should not run here');
throw new Error('Test failed: Navigation bar is missing both "Explorer" and "Files" buttons.');
}

// Click on the Export to PFB button
Expand Down
Loading