Skip to content

Commit

Permalink
test: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
arianrhodsandlot committed Jan 5, 2024
1 parent b6b18c6 commit 24f715c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/e2e/instance-ra-nightly.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ test.describe('instance methods with nightly retroarch', () => {
const screenshot = page.locator('#screenshot')
await expect(canvas).not.toBeAttached()

await page.getByText('nes', { exact: true }).click()
await page.getByText('megadrive', { exact: true }).click()
await page.waitForLoadState('networkidle')
await page.waitForTimeout(1000)
await page.waitForTimeout(500)

await page.getByText('screenshot', { exact: true }).click()
await expect(screenshot).toHaveScreenshot('screenshot.png')
Expand Down
4 changes: 2 additions & 2 deletions tests/e2e/instance.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ test.describe('instance methods', () => {
const screenshot = page.locator('#screenshot')
await expect(canvas).not.toBeAttached()

await page.getByText('nes', { exact: true }).click()
await page.getByText('megadrive', { exact: true }).click()
await page.waitForLoadState('networkidle')
await page.waitForTimeout(1000)
await page.waitForTimeout(500)

await page.getByText('screenshot', { exact: true }).click()
await expect(screenshot).toHaveScreenshot('screenshot.png')
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 24f715c

Please sign in to comment.