Skip to content

Commit

Permalink
Merge pull request #1601 from OpenC3/bug/bucket-explorer-test-fix
Browse files Browse the repository at this point in the history
Fix Bucket Explorer auto-refresh playwright test for enterprise
  • Loading branch information
ryanmelt authored Oct 1, 2024
2 parents 0474e18 + 597948f commit 06e27ef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions playwright/tests/bucket-explorer.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,8 @@ test('auto refreshes to update files', async ({ page, utils, toolPath, context }
const pageTwo = await context.newPage()
pageTwo.goto(toolPath)
await pageTwo.getByText('config').click()
await pageTwo.getByRole('cell', { name: 'DEFAULT' }).click();
await pageTwo.getByRole('cell', { name: 'targets_modified' }).click();

// Set the refresh interval on the second tab to be really slow
await pageTwo.locator('[data-test=bucket-explorer-file]').click()
Expand All @@ -276,6 +278,7 @@ test('auto refreshes to update files', async ({ page, utils, toolPath, context }
await page.getByLabel('prepended action').click(),
])
await fileChooser.setFiles('package.json')
await page.locator('[data-test="upload-file-path"]').fill('DEFAULT/targets_modified/package.json')
await page.locator('[data-test="upload-file-submit-btn"]').click()

// The second tab shouldn't have refreshed yet, so the file shouldn't be there
Expand Down

0 comments on commit 06e27ef

Please sign in to comment.