Skip to content

Commit

Permalink
Merge pull request #984 from jhu-bids/fix-e2e
Browse files Browse the repository at this point in the history
Bug fix: Playwright tests
  • Loading branch information
joeflack4 authored Nov 24, 2024
2 parents 7227907 + 8f76640 commit e5a4b8c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# todo: consider removing this line. It may just be redundant / non-beneficial. I had just wanted to run this on a PR branch, but it didn't work because it is fixed to `develop`
with:
ref: develop

Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ node_modules
/frontend/test-results/
/frontend/playwright-report/
/frontend/playwright/.cache/
/frontend/tests/performance/*
!/frontend/tests/performance/.keep
/frontend/tests/playwright/performance/*
!/frontend/tests/playwright/performance/.keep
# production
/build
# misc
Expand Down
2 changes: 1 addition & 1 deletion frontend/tests/playwright/basic-functions.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ for (const envName in selectedConfigs) {
await firstRow.click();

// Compare
await page.getByRole('link', { name: 'Cset comparison' }).click();
await page.getByRole('link', { name: 'Analyze and author' }).click();
// await expect(page).toHaveURL(`${appUrl}/cset-comparison?${codeset_ids.map(d => 'codeset_ids='+d).join('&')}`);
// that broke because there's other stuff in query string

Expand Down
3 changes: 1 addition & 2 deletions frontend/tests/playwright/large-cset-handling.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,7 @@ for (const envName in configsToRun) {
testInfo.attach('report', {body: JSON.stringify(report), contentType: 'application/json'});

// page.setDefaultTimeout(120000); // already did this, but maybe it needs doing again? or not?

const compPageLink = await page.waitForSelector('[data-testid="Cset comparison"]');
const compPageLink = await page.waitForSelector('[data-testid="Analyze and author"]');
await compPageLink.click();
console.log('going to comparison page');
await expect(page.locator('[data-testid=comp-page-loading]')).toBeAttached({timeout: timeoutSeconds * 1000});
Expand Down

0 comments on commit e5a4b8c

Please sign in to comment.