diff --git a/core/src/components/card/test/basic/card.e2e.ts b/core/src/components/card/test/basic/card.e2e.ts new file mode 100644 index 0000000000..50689b9d46 --- /dev/null +++ b/core/src/components/card/test/basic/card.e2e.ts @@ -0,0 +1,160 @@ +import { expect } from '@playwright/test'; +import { test } from '@utils/test/playwright'; + +test.describe('card: basic', () => { + test.describe('card: rendering', () => { + test('should not have visual regressions with basic card', async ({ page }) => { + await page.setContent(` + + + Card Subtitle + Card Title + + + + Keep close to Nature's heart... and break clear away, once in awhile, and climb a mountain or spend a week + in the woods. Wash your spirit clean. + + + `); + + const card = page.locator('ion-card'); + expect(await card.screenshot()).toMatchSnapshot(`card-diff-${page.getSnapshotSettings()}.png`); + }); + }); + + test.describe('card: feature rendering', () => { + test.beforeEach(({ skip }) => { + skip.rtl(); + }); + + test('should not have visual regressions with button cards', async ({ page }) => { + await page.setContent(` + + + Card Title + + + + Keep close to Nature's heart... and break clear away, once in awhile, and climb a mountain or spend a week + in the woods. Wash your spirit clean. + + + `); + + const card = page.locator('ion-card'); + expect(await card.screenshot()).toMatchSnapshot(`card-button-${page.getSnapshotSettings()}.png`); + }); + + test('should not have visual regressions with translucent cards', async ({ page, skip }) => { + skip.mode('md', 'Translucent effect is only available in iOS mode.'); + skip.browser('firefox', 'Firefox has some issues rendering translucent effects on Linux.'); + + await page.setContent(` + +
+ +
+ + Subtitle + Title + + + +
+ `); + + const card = page.locator('ion-card'); + expect(await card.screenshot()).toMatchSnapshot(`card-translucent-${page.getSnapshotSettings()}.png`); + }); + + test('should not have visual regressions with disabled card', async ({ page }) => { + await page.setContent(` + + + Card Subtitle + Card Title + + + + Keep close to Nature's heart... and break clear away, once in awhile, and climb a mountain or spend a week + in the woods. Wash your spirit clean. + + + `); + + const card = page.locator('ion-card'); + expect(await card.screenshot()).toMatchSnapshot(`card-disabled-${page.getSnapshotSettings()}.png`); + }); + test('should not have visual regressions with color', async ({ page }) => { + await page.setContent(` + + + Card Subtitle + Card Title + + + + Keep close to Nature's heart... and break clear away, once in awhile, and climb a mountain or spend a week + in the woods. Wash your spirit clean. + + + `); + + const card = page.locator('ion-card'); + expect(await card.screenshot()).toMatchSnapshot(`card-color-${page.getSnapshotSettings()}.png`); + }); + test('headings should have correct size in card', async ({ page }) => { + await page.setContent(` + + +

Heading 1

+

Heading 2

+

Heading 3

+

Heading 4

+
Heading 5
+
Heading 6
+

Paragraph

+
+
+ `); + + const card = page.locator('ion-card'); + expect(await card.screenshot()).toMatchSnapshot(`card-headings-${page.getSnapshotSettings()}.png`); + }); + test('should render even without header or content elements', async ({ page }) => { + await page.setContent(` + + + + + Link Item activated + More + + + + + Link Item + More + + + + + Button Item activated + More + + + + + Button Item + More + + + + `); + + const card = page.locator('ion-card'); + expect(await card.screenshot()).toMatchSnapshot(`card-no-content-or-header-${page.getSnapshotSettings()}.png`); + }); + }); +}); diff --git a/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-button-ios-ltr-Mobile-Chrome-linux.png b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-button-ios-ltr-Mobile-Chrome-linux.png new file mode 100644 index 0000000000..e18fb2b10a Binary files /dev/null and b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-button-ios-ltr-Mobile-Chrome-linux.png differ diff --git a/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-button-ios-ltr-Mobile-Firefox-linux.png b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-button-ios-ltr-Mobile-Firefox-linux.png new file mode 100644 index 0000000000..e10ae727bb Binary files /dev/null and b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-button-ios-ltr-Mobile-Firefox-linux.png differ diff --git a/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-button-ios-ltr-Mobile-Safari-linux.png b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-button-ios-ltr-Mobile-Safari-linux.png new file mode 100644 index 0000000000..ff3db78cb5 Binary files /dev/null and b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-button-ios-ltr-Mobile-Safari-linux.png differ diff --git a/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-button-md-ltr-Mobile-Chrome-linux.png b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-button-md-ltr-Mobile-Chrome-linux.png new file mode 100644 index 0000000000..37798de0e0 Binary files /dev/null and b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-button-md-ltr-Mobile-Chrome-linux.png differ diff --git a/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-button-md-ltr-Mobile-Firefox-linux.png b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-button-md-ltr-Mobile-Firefox-linux.png new file mode 100644 index 0000000000..63b3a93162 Binary files /dev/null and b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-button-md-ltr-Mobile-Firefox-linux.png differ diff --git a/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-button-md-ltr-Mobile-Safari-linux.png b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-button-md-ltr-Mobile-Safari-linux.png new file mode 100644 index 0000000000..345b53f7f5 Binary files /dev/null and b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-button-md-ltr-Mobile-Safari-linux.png differ diff --git a/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-color-ios-ltr-Mobile-Chrome-linux.png b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-color-ios-ltr-Mobile-Chrome-linux.png new file mode 100644 index 0000000000..ef2af5e7ac Binary files /dev/null and b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-color-ios-ltr-Mobile-Chrome-linux.png differ diff --git a/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-color-ios-ltr-Mobile-Firefox-linux.png b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-color-ios-ltr-Mobile-Firefox-linux.png new file mode 100644 index 0000000000..4df0012c3a Binary files /dev/null and b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-color-ios-ltr-Mobile-Firefox-linux.png differ diff --git a/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-color-ios-ltr-Mobile-Safari-linux.png b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-color-ios-ltr-Mobile-Safari-linux.png new file mode 100644 index 0000000000..f5d21d79d7 Binary files /dev/null and b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-color-ios-ltr-Mobile-Safari-linux.png differ diff --git a/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-color-md-ltr-Mobile-Chrome-linux.png b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-color-md-ltr-Mobile-Chrome-linux.png new file mode 100644 index 0000000000..f052882bc2 Binary files /dev/null and b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-color-md-ltr-Mobile-Chrome-linux.png differ diff --git a/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-color-md-ltr-Mobile-Firefox-linux.png b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-color-md-ltr-Mobile-Firefox-linux.png new file mode 100644 index 0000000000..5f4e42fa81 Binary files /dev/null and b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-color-md-ltr-Mobile-Firefox-linux.png differ diff --git a/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-color-md-ltr-Mobile-Safari-linux.png b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-color-md-ltr-Mobile-Safari-linux.png new file mode 100644 index 0000000000..8bd94b605a Binary files /dev/null and b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-color-md-ltr-Mobile-Safari-linux.png differ diff --git a/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-diff-ios-ltr-Mobile-Chrome-linux.png b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-diff-ios-ltr-Mobile-Chrome-linux.png new file mode 100644 index 0000000000..835e9f99cb Binary files /dev/null and b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-diff-ios-ltr-Mobile-Chrome-linux.png differ diff --git a/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-diff-ios-ltr-Mobile-Firefox-linux.png b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-diff-ios-ltr-Mobile-Firefox-linux.png new file mode 100644 index 0000000000..4b87e2dcb8 Binary files /dev/null and b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-diff-ios-ltr-Mobile-Firefox-linux.png differ diff --git a/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-diff-ios-ltr-Mobile-Safari-linux.png b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-diff-ios-ltr-Mobile-Safari-linux.png new file mode 100644 index 0000000000..2275f479aa Binary files /dev/null and b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-diff-ios-ltr-Mobile-Safari-linux.png differ diff --git a/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-diff-ios-rtl-Mobile-Chrome-linux.png b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-diff-ios-rtl-Mobile-Chrome-linux.png new file mode 100644 index 0000000000..90204a3981 Binary files /dev/null and b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-diff-ios-rtl-Mobile-Chrome-linux.png differ diff --git a/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-diff-ios-rtl-Mobile-Firefox-linux.png b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-diff-ios-rtl-Mobile-Firefox-linux.png new file mode 100644 index 0000000000..28ed831122 Binary files /dev/null and b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-diff-ios-rtl-Mobile-Firefox-linux.png differ diff --git a/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-diff-ios-rtl-Mobile-Safari-linux.png b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-diff-ios-rtl-Mobile-Safari-linux.png new file mode 100644 index 0000000000..2d79f4dea5 Binary files /dev/null and b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-diff-ios-rtl-Mobile-Safari-linux.png differ diff --git a/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-diff-md-ltr-Mobile-Chrome-linux.png b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-diff-md-ltr-Mobile-Chrome-linux.png new file mode 100644 index 0000000000..8d85e7b2c2 Binary files /dev/null and b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-diff-md-ltr-Mobile-Chrome-linux.png differ diff --git a/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-diff-md-ltr-Mobile-Firefox-linux.png b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-diff-md-ltr-Mobile-Firefox-linux.png new file mode 100644 index 0000000000..68b6afc0a4 Binary files /dev/null and b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-diff-md-ltr-Mobile-Firefox-linux.png differ diff --git a/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-diff-md-ltr-Mobile-Safari-linux.png b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-diff-md-ltr-Mobile-Safari-linux.png new file mode 100644 index 0000000000..f76c02ad09 Binary files /dev/null and b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-diff-md-ltr-Mobile-Safari-linux.png differ diff --git a/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-diff-md-rtl-Mobile-Chrome-linux.png b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-diff-md-rtl-Mobile-Chrome-linux.png new file mode 100644 index 0000000000..0d541a5eea Binary files /dev/null and b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-diff-md-rtl-Mobile-Chrome-linux.png differ diff --git a/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-diff-md-rtl-Mobile-Firefox-linux.png b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-diff-md-rtl-Mobile-Firefox-linux.png new file mode 100644 index 0000000000..eceb61dc16 Binary files /dev/null and b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-diff-md-rtl-Mobile-Firefox-linux.png differ diff --git a/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-diff-md-rtl-Mobile-Safari-linux.png b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-diff-md-rtl-Mobile-Safari-linux.png new file mode 100644 index 0000000000..28dbf9956f Binary files /dev/null and b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-diff-md-rtl-Mobile-Safari-linux.png differ diff --git a/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-disabled-ios-ltr-Mobile-Chrome-linux.png b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-disabled-ios-ltr-Mobile-Chrome-linux.png new file mode 100644 index 0000000000..c67da5ff8b Binary files /dev/null and b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-disabled-ios-ltr-Mobile-Chrome-linux.png differ diff --git a/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-disabled-ios-ltr-Mobile-Firefox-linux.png b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-disabled-ios-ltr-Mobile-Firefox-linux.png new file mode 100644 index 0000000000..9517e478d5 Binary files /dev/null and b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-disabled-ios-ltr-Mobile-Firefox-linux.png differ diff --git a/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-disabled-ios-ltr-Mobile-Safari-linux.png b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-disabled-ios-ltr-Mobile-Safari-linux.png new file mode 100644 index 0000000000..868d104775 Binary files /dev/null and b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-disabled-ios-ltr-Mobile-Safari-linux.png differ diff --git a/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-disabled-md-ltr-Mobile-Chrome-linux.png b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-disabled-md-ltr-Mobile-Chrome-linux.png new file mode 100644 index 0000000000..b92e4bff2d Binary files /dev/null and b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-disabled-md-ltr-Mobile-Chrome-linux.png differ diff --git a/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-disabled-md-ltr-Mobile-Firefox-linux.png b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-disabled-md-ltr-Mobile-Firefox-linux.png new file mode 100644 index 0000000000..20dd81fcaa Binary files /dev/null and b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-disabled-md-ltr-Mobile-Firefox-linux.png differ diff --git a/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-disabled-md-ltr-Mobile-Safari-linux.png b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-disabled-md-ltr-Mobile-Safari-linux.png new file mode 100644 index 0000000000..4dd3d1482b Binary files /dev/null and b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-disabled-md-ltr-Mobile-Safari-linux.png differ diff --git a/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-headings-ios-ltr-Mobile-Chrome-linux.png b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-headings-ios-ltr-Mobile-Chrome-linux.png new file mode 100644 index 0000000000..1bb3636766 Binary files /dev/null and b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-headings-ios-ltr-Mobile-Chrome-linux.png differ diff --git a/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-headings-ios-ltr-Mobile-Firefox-linux.png b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-headings-ios-ltr-Mobile-Firefox-linux.png new file mode 100644 index 0000000000..8eac9f4231 Binary files /dev/null and b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-headings-ios-ltr-Mobile-Firefox-linux.png differ diff --git a/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-headings-ios-ltr-Mobile-Safari-linux.png b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-headings-ios-ltr-Mobile-Safari-linux.png new file mode 100644 index 0000000000..2a78c40ed4 Binary files /dev/null and b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-headings-ios-ltr-Mobile-Safari-linux.png differ diff --git a/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-headings-md-ltr-Mobile-Chrome-linux.png b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-headings-md-ltr-Mobile-Chrome-linux.png new file mode 100644 index 0000000000..c0dd5684ed Binary files /dev/null and b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-headings-md-ltr-Mobile-Chrome-linux.png differ diff --git a/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-headings-md-ltr-Mobile-Firefox-linux.png b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-headings-md-ltr-Mobile-Firefox-linux.png new file mode 100644 index 0000000000..f83902c414 Binary files /dev/null and b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-headings-md-ltr-Mobile-Firefox-linux.png differ diff --git a/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-headings-md-ltr-Mobile-Safari-linux.png b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-headings-md-ltr-Mobile-Safari-linux.png new file mode 100644 index 0000000000..5c0a66ff15 Binary files /dev/null and b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-headings-md-ltr-Mobile-Safari-linux.png differ diff --git a/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-no-content-or-header-ios-ltr-Mobile-Chrome-linux.png b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-no-content-or-header-ios-ltr-Mobile-Chrome-linux.png new file mode 100644 index 0000000000..be5425b93c Binary files /dev/null and b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-no-content-or-header-ios-ltr-Mobile-Chrome-linux.png differ diff --git a/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-no-content-or-header-ios-ltr-Mobile-Firefox-linux.png b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-no-content-or-header-ios-ltr-Mobile-Firefox-linux.png new file mode 100644 index 0000000000..f32948f406 Binary files /dev/null and b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-no-content-or-header-ios-ltr-Mobile-Firefox-linux.png differ diff --git a/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-no-content-or-header-ios-ltr-Mobile-Safari-linux.png b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-no-content-or-header-ios-ltr-Mobile-Safari-linux.png new file mode 100644 index 0000000000..a0cae7ca5d Binary files /dev/null and b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-no-content-or-header-ios-ltr-Mobile-Safari-linux.png differ diff --git a/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-no-content-or-header-md-ltr-Mobile-Chrome-linux.png b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-no-content-or-header-md-ltr-Mobile-Chrome-linux.png new file mode 100644 index 0000000000..825a57dcfb Binary files /dev/null and b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-no-content-or-header-md-ltr-Mobile-Chrome-linux.png differ diff --git a/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-no-content-or-header-md-ltr-Mobile-Firefox-linux.png b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-no-content-or-header-md-ltr-Mobile-Firefox-linux.png new file mode 100644 index 0000000000..f5c3f93084 Binary files /dev/null and b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-no-content-or-header-md-ltr-Mobile-Firefox-linux.png differ diff --git a/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-no-content-or-header-md-ltr-Mobile-Safari-linux.png b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-no-content-or-header-md-ltr-Mobile-Safari-linux.png new file mode 100644 index 0000000000..d9fde85d61 Binary files /dev/null and b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-no-content-or-header-md-ltr-Mobile-Safari-linux.png differ diff --git a/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-translucent-ios-ltr-Mobile-Chrome-linux.png b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-translucent-ios-ltr-Mobile-Chrome-linux.png new file mode 100644 index 0000000000..b09df7b952 Binary files /dev/null and b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-translucent-ios-ltr-Mobile-Chrome-linux.png differ diff --git a/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-translucent-ios-ltr-Mobile-Safari-linux.png b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-translucent-ios-ltr-Mobile-Safari-linux.png new file mode 100644 index 0000000000..fde6070fcf Binary files /dev/null and b/core/src/components/card/test/basic/card.e2e.ts-snapshots/card-translucent-ios-ltr-Mobile-Safari-linux.png differ diff --git a/core/src/components/card/test/basic/e2e.ts b/core/src/components/card/test/basic/e2e.ts deleted file mode 100644 index e363f5e71e..0000000000 --- a/core/src/components/card/test/basic/e2e.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { newE2EPage } from '@stencil/core/testing'; - -test('card: basic', async () => { - const page = await newE2EPage({ - url: '/src/components/card/test/basic?ionic:_testing=true', - }); - - const compare = await page.compareScreenshot(); - expect(compare).toMatchScreenshot(); -}); diff --git a/core/src/components/card/test/basic/index.html b/core/src/components/card/test/basic/index.html deleted file mode 100644 index 8ce96ebfbe..0000000000 --- a/core/src/components/card/test/basic/index.html +++ /dev/null @@ -1,119 +0,0 @@ - - - - - Card - Basic - - - - - - - - - - - - - Card - Basic - - - - - - - Card Subtitle - Card Title - - - - Keep close to Nature's heart... and break clear away, once in awhile, and climb a mountain or spend a week - in the woods. Wash your spirit clean. - - - - - - - ion-item in a card, icon left, button right - View - - - - This is content, without any paragraph or header tags, within an ion-card-content element. - - - - - - Subtitle - Title - - - - The British use the term "header", but the American term "head-shot" the English simply refuse to adopt. - - - - - - Subtitle - Title - - - - This is content, without any paragraph or header tags, within an ion-card-content element. - - - - - -

Heading 1

-

Heading 2

-

Heading 3

-

Heading 4

-
Heading 5
-
Heading 6
-

Paragraph

-
-
- - - - - - Link Item activated - More - - - - - Link Item - More - - - - - Button Item activated - More - - - - - Button Item - More - - - -
-
- - - diff --git a/core/src/components/card/test/button/index.html b/core/src/components/card/test/button/index.html deleted file mode 100644 index ed187ef1e4..0000000000 --- a/core/src/components/card/test/button/index.html +++ /dev/null @@ -1,88 +0,0 @@ - - - - - Card - Basic - - - - - - - - - - - - - Card - Button - - - - - - - Subtitle - Button Card - - - This is content, inside of a card with a button attribute. - - - - - Anchor Card - - - This is content, inside of a card with a href attribute. - - - - - Subtitle - Button Card - - - This is content, inside of a card with a button attribute. - - - - - Anchor Card - - - This is content, inside of a card with a href attribute. - - - -
- -
- - - Subtitle - Title - - - This button should have a background. -
- - - - -
-
- - - diff --git a/core/src/components/card/test/standalone/e2e.ts b/core/src/components/card/test/standalone/e2e.ts deleted file mode 100644 index ff4e1e7634..0000000000 --- a/core/src/components/card/test/standalone/e2e.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { newE2EPage } from '@stencil/core/testing'; - -test('card: standalone', async () => { - const page = await newE2EPage({ - url: '/src/components/card/test/standalone?ionic:_testing=true', - }); - - const compare = await page.compareScreenshot(); - expect(compare).toMatchScreenshot(); -}); diff --git a/core/src/components/card/test/standalone/index.html b/core/src/components/card/test/standalone/index.html deleted file mode 100644 index fe9e317b2d..0000000000 --- a/core/src/components/card/test/standalone/index.html +++ /dev/null @@ -1,103 +0,0 @@ - - - - - Card - Standalone - - - - - - - - - - - - This is just your basic card with some text to boot. Like it? Keep scrolling... - - - - - - Subtitle - Title - - - The British use the term "header". - - - - - - Subtitle - Title - - - The British use the term "header". - - - - - Subtitle - Title - - - The British use the term "header". - - - - - Subtitle - Title - - - The British use the term "header". - - - - - Subtitle - Title - - - The British use the term "header". - - - - - Subtitle - Title - - - The British use the term "header". - - - - - diff --git a/core/src/components/card/test/translucent/index.html b/core/src/components/card/test/translucent/index.html deleted file mode 100644 index f9d96c028d..0000000000 --- a/core/src/components/card/test/translucent/index.html +++ /dev/null @@ -1,219 +0,0 @@ - - - - - Card - Basic - - - - - - - - - - - - - Card - Basic - - - - - - - This is just your basic card with some text to boot. Like it? Keep scrolling... - - - - - - Subtitle - Title - - - - The British use the term "header", but the American term "head-shot" the English simply refuse to adopt. - - - - -
- -
- - Subtitle - Title - - - -
- - -
- -
- - Subtitle - Title - - - - The British use the term "header", but the American term "head-shot" the English simply refuse to adopt. - -
- - -
- -
- - - Subtitle - Title - - - - The British use the term "header", but the American term "head-shot" the English simply refuse to adopt. - -
- - - - Card Title Goes Here -

- Keep close to Nature's heart... and break clear away, once in awhile, and climb a mountain. I am within a - paragraph element. -

-
- - - - - - - Star - - - - - - Activated - - - - -
- - - Explore Nearby - - - - - Shopping - - - - - Hospital - - - - - Cafe - - - - - Dog Park - - - - - Pub - - - - - Space - - - - - - - - - -

Card With An Inset Picture

-

Isn't it beautiful

-
- -
- -
- - -

Hello. I am a paragraph.

-
- - - - - - - Favorite - - - - - - Listen - - - - 11h ago - - - -
- - -
- -
- - ion-card[no-margin] This card was breaking the border radius. - - - - - - - Favorite - - - - - - - Listen - - - - - - Share - - - - -
-
-
- -