Skip to content

Commit

Permalink
fix delay test
Browse files Browse the repository at this point in the history
  • Loading branch information
tevanoff committed Jan 25, 2024
1 parent 283026a commit 928605e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/cypress/tests/cypress/e2e/options.cy.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
it('Options / delay', { env: { delay: 1200 } }, () => {
it('Options / delay', { env: { delay: 2000 } }, () => {
cy.visit('/options/delay');
});

Expand Down
2 changes: 1 addition & 1 deletion packages/playwright/tests/options.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { test } from '../src';

test.describe(() => {
test.use({ delay: 1200 });
test.use({ delay: 2000 });

test('Options / delay', async ({ page }) => {
await page.goto('/options/delay');
Expand Down
Binary file added test-server/fixtures/assets/images/animated.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions test-server/fixtures/options/delay.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
</style>
</head>
<body>
<img src="/img?url=fixtures/blue.png"/>
<h4>The image should be snapshotted since we're waiting until the delayed-revealed image is visible.</h4>
<img src="/images/animated.gif"/>
<h4>The image should be snapshotted as purple since we're waiting until the delayed-revealed image is visible.</h4>
</body>
</html>

0 comments on commit 928605e

Please sign in to comment.