diff --git a/packages/components/pie-thumbnail/test/accessibility/pie-thumbnail.spec.ts b/packages/components/pie-thumbnail/test/accessibility/pie-thumbnail.spec.ts index 5014a58469..dcf061762b 100644 --- a/packages/components/pie-thumbnail/test/accessibility/pie-thumbnail.spec.ts +++ b/packages/components/pie-thumbnail/test/accessibility/pie-thumbnail.spec.ts @@ -1,6 +1,6 @@ import { test, expect } from '@justeattakeaway/pie-webc-testing/src/playwright/playwright-fixtures.ts'; -import { PieThumbnail } from '../../src/index.ts'; import { BasePage } from '@justeattakeaway/pie-webc-testing/src/helpers/page-object/base-page.ts'; +import { PieThumbnail } from '../../src/index.ts'; test.describe('PieThumbnail - Accessibility tests', () => { test('a11y - should test the PieThumbnail component WCAG compliance', async ({ page, makeAxeBuilder }) => { @@ -15,4 +15,4 @@ test.describe('PieThumbnail - Accessibility tests', () => { expect(results.violations).toEqual([]); }); -}); \ No newline at end of file +}); diff --git a/packages/components/pie-thumbnail/test/component/pie-thumbnail.spec.ts b/packages/components/pie-thumbnail/test/component/pie-thumbnail.spec.ts index e2a59313d1..56ba0d37f1 100644 --- a/packages/components/pie-thumbnail/test/component/pie-thumbnail.spec.ts +++ b/packages/components/pie-thumbnail/test/component/pie-thumbnail.spec.ts @@ -17,4 +17,4 @@ test.describe('PieThumbnail - Component tests', () => { // Assert expect(thumbnail).toBeVisible(); }); -}); \ No newline at end of file +}); diff --git a/packages/components/pie-thumbnail/test/visual/pie-thumbnail.spec.ts b/packages/components/pie-thumbnail/test/visual/pie-thumbnail.spec.ts index 6512f36a1d..eed897d37a 100644 --- a/packages/components/pie-thumbnail/test/visual/pie-thumbnail.spec.ts +++ b/packages/components/pie-thumbnail/test/visual/pie-thumbnail.spec.ts @@ -4,11 +4,11 @@ import { BasePage } from '@justeattakeaway/pie-webc-testing/src/helpers/page-obj test.describe('PieThumbnail - Visual tests`', () => { test('should display the PieThumbnail component successfully', async ({ page }) => { - const basePage = new BasePage(page, 'thumbnail--default'); + const basePage = new BasePage(page, 'thumbnail--default'); - basePage.load(); - await page.waitForTimeout(2500); + basePage.load(); + await page.waitForTimeout(2500); - await percySnapshot(page, 'PieThumbnail - Visual Test'); + await percySnapshot(page, 'PieThumbnail - Visual Test'); }); });