Skip to content

Commit

Permalink
chore: updated woo visual regression test
Browse files Browse the repository at this point in the history
  • Loading branch information
preda-bogdan committed Nov 22, 2023
1 parent ccc7a76 commit a0b5900
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions e2e-tests/specs/woo-visual-regression/checkout.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,19 @@ test.describe('Checkout page check', () => {
await page.goto('/checkout/');
await page.getByRole('button', { name: 'Place Order' }).click();
await page.waitForTimeout(1000);
await expect(page).toHaveScreenshot({ maxDiffPixelRatio: 0.2 });
await page
.getByRole('heading', { name: 'Checkout' })
.scrollIntoViewIfNeeded();
await expect(page).toHaveScreenshot({
maxDiffPixelRatio: 0.2,
});
});

test('Check MyAccount errors', async ({ page }) => {
await page.goto('/my-account/edit-account/');
await page.locator('.woocommerce-Button').first().click();
await expect(page).toHaveScreenshot({ maxDiffPixelRatio: 0.2 });
await expect(page).toHaveScreenshot({
maxDiffPixelRatio: 0.2,
});
});
});
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 a0b5900

Please sign in to comment.