Skip to content

Commit

Permalink
fix: add wait for URL after clicking 'View Details' button in screenc…
Browse files Browse the repository at this point in the history
…aps test
  • Loading branch information
elikoga committed Jan 22, 2025
1 parent 8b7db66 commit cb8a558
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/tests/screencaps.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ colorSchemes.forEach((colorScheme) => {
// go to device details page, delete device
await viewDetailsButton.click();

await page.waitForURL('http://localhost:8000/configuration/configuration-details*');

await expect(page).toHaveScreenshot();

const deleteButton = page.locator('button').filter({ hasText: 'Delete' });
Expand Down

0 comments on commit cb8a558

Please sign in to comment.