Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
liamdebeasi committed Feb 13, 2024
1 parent 116d404 commit 1b48c21
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions core/src/components/label/test/item/item.e2e.ts
@@ -0,0 +1,27 @@
import { expect } from '@playwright/test';
import { configs, test } from '@utils/test/playwright';

configs({ directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
test.describe(title('label: in item'), () => {
test('should render correctly in an item', async ({ page }) => {
test.info().annotations.push({
type: 'issue',
description: 'https://github.com/ionic-team/ionic-framework/issues/29033',
});
await page.setContent(
`
<ion-item>
<ion-label slot="start">Start</ion-label>
<ion-label>Default</ion-label>
<ion-label slot="end">End</ion-label>
</ion-item>
`,
config
);

const item = page.locator('ion-item');

await expect(item).toHaveScreenshot(screenshot(`label-item`));

Check failure on line 24 in core/src/components/label/test/item/item.e2e.ts

View workflow job for this annotation

GitHub Actions / test-core-screenshot (10, 20)

[Mobile Chrome] › src/components/label/test/item/item.e2e.ts:6:9 › label: in item - ios/ltr › should render correctly in an item

2) [Mobile Chrome] › src/components/label/test/item/item.e2e.ts:6:9 › label: in item - ios/ltr › should render correctly in an item Error: A snapshot doesn't exist at /home/runner/work/ionic-framework/ionic-framework/core/src/components/label/test/item/item.e2e.ts-snapshots/label-item-ios-ltr-Mobile-Chrome-linux.png. 22 | const item = page.locator('ion-item'); 23 | > 24 | await expect(item).toHaveScreenshot(screenshot(`label-item`)); | ^ 25 | }); 26 | }); 27 | }); at /home/runner/work/ionic-framework/ionic-framework/core/src/components/label/test/item/item.e2e.ts:24:26

Check failure on line 24 in core/src/components/label/test/item/item.e2e.ts

View workflow job for this annotation

GitHub Actions / test-core-screenshot (10, 20)

[Mobile Chrome] › src/components/label/test/item/item.e2e.ts:6:9 › label: in item - ios/ltr › should render correctly in an item

2) [Mobile Chrome] › src/components/label/test/item/item.e2e.ts:6:9 › label: in item - ios/ltr › should render correctly in an item Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: A snapshot doesn't exist at /home/runner/work/ionic-framework/ionic-framework/core/src/components/label/test/item/item.e2e.ts-snapshots/label-item-ios-ltr-Mobile-Chrome-linux.png. 22 | const item = page.locator('ion-item'); 23 | > 24 | await expect(item).toHaveScreenshot(screenshot(`label-item`)); | ^ 25 | }); 26 | }); 27 | }); at /home/runner/work/ionic-framework/ionic-framework/core/src/components/label/test/item/item.e2e.ts:24:26

Check failure on line 24 in core/src/components/label/test/item/item.e2e.ts

View workflow job for this annotation

GitHub Actions / test-core-screenshot (10, 20)

[Mobile Chrome] › src/components/label/test/item/item.e2e.ts:6:9 › label: in item - ios/ltr › should render correctly in an item

2) [Mobile Chrome] › src/components/label/test/item/item.e2e.ts:6:9 › label: in item - ios/ltr › should render correctly in an item Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: A snapshot doesn't exist at /home/runner/work/ionic-framework/ionic-framework/core/src/components/label/test/item/item.e2e.ts-snapshots/label-item-ios-ltr-Mobile-Chrome-linux.png, writing actual. 22 | const item = page.locator('ion-item'); 23 | > 24 | await expect(item).toHaveScreenshot(screenshot(`label-item`)); | ^ 25 | }); 26 | }); 27 | }); at /home/runner/work/ionic-framework/ionic-framework/core/src/components/label/test/item/item.e2e.ts:24:7

Check failure on line 24 in core/src/components/label/test/item/item.e2e.ts

View workflow job for this annotation

GitHub Actions / test-core-screenshot (10, 20)

[Mobile Chrome] › src/components/label/test/item/item.e2e.ts:6:9 › label: in item - md/ltr › should render correctly in an item

3) [Mobile Chrome] › src/components/label/test/item/item.e2e.ts:6:9 › label: in item - md/ltr › should render correctly in an item Error: A snapshot doesn't exist at /home/runner/work/ionic-framework/ionic-framework/core/src/components/label/test/item/item.e2e.ts-snapshots/label-item-md-ltr-Mobile-Chrome-linux.png. 22 | const item = page.locator('ion-item'); 23 | > 24 | await expect(item).toHaveScreenshot(screenshot(`label-item`)); | ^ 25 | }); 26 | }); 27 | }); at /home/runner/work/ionic-framework/ionic-framework/core/src/components/label/test/item/item.e2e.ts:24:26

Check failure on line 24 in core/src/components/label/test/item/item.e2e.ts

View workflow job for this annotation

GitHub Actions / test-core-screenshot (10, 20)

[Mobile Chrome] › src/components/label/test/item/item.e2e.ts:6:9 › label: in item - md/ltr › should render correctly in an item

3) [Mobile Chrome] › src/components/label/test/item/item.e2e.ts:6:9 › label: in item - md/ltr › should render correctly in an item Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: A snapshot doesn't exist at /home/runner/work/ionic-framework/ionic-framework/core/src/components/label/test/item/item.e2e.ts-snapshots/label-item-md-ltr-Mobile-Chrome-linux.png. 22 | const item = page.locator('ion-item'); 23 | > 24 | await expect(item).toHaveScreenshot(screenshot(`label-item`)); | ^ 25 | }); 26 | }); 27 | }); at /home/runner/work/ionic-framework/ionic-framework/core/src/components/label/test/item/item.e2e.ts:24:26

Check failure on line 24 in core/src/components/label/test/item/item.e2e.ts

View workflow job for this annotation

GitHub Actions / test-core-screenshot (10, 20)

[Mobile Chrome] › src/components/label/test/item/item.e2e.ts:6:9 › label: in item - md/ltr › should render correctly in an item

3) [Mobile Chrome] › src/components/label/test/item/item.e2e.ts:6:9 › label: in item - md/ltr › should render correctly in an item Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: A snapshot doesn't exist at /home/runner/work/ionic-framework/ionic-framework/core/src/components/label/test/item/item.e2e.ts-snapshots/label-item-md-ltr-Mobile-Chrome-linux.png, writing actual. 22 | const item = page.locator('ion-item'); 23 | > 24 | await expect(item).toHaveScreenshot(screenshot(`label-item`)); | ^ 25 | }); 26 | }); 27 | }); at /home/runner/work/ionic-framework/ionic-framework/core/src/components/label/test/item/item.e2e.ts:24:7
});
});
});

0 comments on commit 1b48c21

Please sign in to comment.