Skip to content

Commit

Permalink
Fix integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
vanpelt committed Jun 25, 2024
1 parent 1cd5807 commit a58d4b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/integration_tests/basic.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ test('test good flow', async ({ page }) => {
await page.getByRole('button', { name: 'Orange' }).click()
let iframe = await page.frameLocator('#version-0')
await expect(iframe.locator('h1')).toHaveText('Hello, world!')
// TODO: once we figure out how to get unsplash to work consistently...
await expect(iframe.locator('img')).toHaveAttribute(
'src',
/.*unsplash\.com.*/
/.*(unsplash|placehold)\.co.*/
)
const annotator = await page.$('#version-0')
await annotator?.screenshot({
Expand Down

0 comments on commit a58d4b7

Please sign in to comment.