From 1685a3004159f19440c5c901ee922f2fab55bfe0 Mon Sep 17 00:00:00 2001 From: Brandy Carney Date: Wed, 10 Oct 2018 10:34:54 -0500 Subject: [PATCH] test(note): update test to include e2e screenshot files --- core/src/components/note/note.scss | 1 - core/src/components/note/test/basic/e2e.ts | 10 ++++++++++ core/src/components/note/test/standalone/e2e.ts | 10 ++++++++++ core/src/components/note/test/standalone/index.html | 9 +++++---- 4 files changed, 25 insertions(+), 5 deletions(-) create mode 100644 core/src/components/note/test/basic/e2e.ts create mode 100644 core/src/components/note/test/standalone/e2e.ts diff --git a/core/src/components/note/note.scss b/core/src/components/note/note.scss index dacbaaffc8..ba65f71591 100644 --- a/core/src/components/note/note.scss +++ b/core/src/components/note/note.scss @@ -7,7 +7,6 @@ /** * @prop --color: Color of the note */ - color: var(--color); font-family: $font-family-base; diff --git a/core/src/components/note/test/basic/e2e.ts b/core/src/components/note/test/basic/e2e.ts new file mode 100644 index 0000000000..cdb9b85c26 --- /dev/null +++ b/core/src/components/note/test/basic/e2e.ts @@ -0,0 +1,10 @@ +import { newE2EPage } from '@stencil/core/testing'; + +it('note: basic', async () => { + const page = await newE2EPage({ + url: '/src/components/note/test/basic?ionic:_testing=true' + }); + + const compare = await page.compareScreenshot(); + expect(compare).toMatchScreenshot(); +}); diff --git a/core/src/components/note/test/standalone/e2e.ts b/core/src/components/note/test/standalone/e2e.ts new file mode 100644 index 0000000000..4aff5c1805 --- /dev/null +++ b/core/src/components/note/test/standalone/e2e.ts @@ -0,0 +1,10 @@ +import { newE2EPage } from '@stencil/core/testing'; + +it('note: standalone', async () => { + const page = await newE2EPage({ + url: '/src/components/note/test/standalone?ionic:_testing=true' + }); + + const compare = await page.compareScreenshot(); + expect(compare).toMatchScreenshot(); +}); diff --git a/core/src/components/note/test/standalone/index.html b/core/src/components/note/test/standalone/index.html index 02cb0a96ba..52edd808ce 100644 --- a/core/src/components/note/test/standalone/index.html +++ b/core/src/components/note/test/standalone/index.html @@ -11,13 +11,14 @@ - +

Default

Default Note - +

Custom

Custom Note + Custom Secondary Note - +

Colors

Primary Note Secondary Note Tertiary Note @@ -28,7 +29,7 @@ Medium Note Dark Note - +

Notes in a List

Note (End)