Skip to content

Commit

Permalink
format(pie-thumbnail): DSW-2578 lint
Browse files Browse the repository at this point in the history
  • Loading branch information
boris.netsov authored and bntsv committed Dec 6, 2024
1 parent 9951bac commit e6b3136
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -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';

Check warning on line 3 in packages/components/pie-thumbnail/test/accessibility/pie-thumbnail.spec.ts

View workflow job for this annotation

GitHub Actions / lint-js

'PieThumbnail' is defined but never used

test.describe('PieThumbnail - Accessibility tests', () => {
test('a11y - should test the PieThumbnail component WCAG compliance', async ({ page, makeAxeBuilder }) => {
Expand All @@ -15,4 +15,4 @@ test.describe('PieThumbnail - Accessibility tests', () => {

expect(results.violations).toEqual([]);
});
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ test.describe('PieThumbnail - Component tests', () => {
// Assert
expect(thumbnail).toBeVisible();
});
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
});

0 comments on commit e6b3136

Please sign in to comment.