-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #198 from wizeline/update-stencil
Update stencil
- Loading branch information
Showing
52 changed files
with
384 additions
and
2,393 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
design-system/src/components/avatar/__snapshots__/avatar.e2e.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`wz-avatar should render an avatar-component 1`] = `"<wz-avatar xlarge=\\"\\" square=\\"\\" src=\\"https://api.adorable.io/avatars/285/abott@adorable.png\\" class=\\"hydrated\\"><div class=\\"square xlarge\\" style=\\"background-image: url(\\"https;\\"></div></wz-avatar>"`; |
15 changes: 0 additions & 15 deletions
15
design-system/src/components/avatar/__snapshots__/avatar.test.tsx.snap
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { newE2EPage } from '@stencil/core/testing'; | ||
|
||
describe('wz-avatar', () => { | ||
it('should render an avatar-component', async () => { | ||
const page = await newE2EPage(); | ||
await page.setContent( | ||
`<wz-avatar xlarge square src="https://api.adorable.io/avatars/285/abott@adorable.png" />`, | ||
); | ||
const avatar = await page.find('wz-avatar'); | ||
expect(avatar.outerHTML).toMatchSnapshot(); | ||
}); | ||
}); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { newE2EPage } from '@stencil/core/testing'; | ||
|
||
describe('wz-button', () => { | ||
it('should render a button-component', async () => { | ||
const page = await newE2EPage(); | ||
await page.setContent( | ||
'<wz-button>Hello, my name is Marty McFly</wz-button>', | ||
); | ||
const button = await page.find('wz-button'); | ||
|
||
expect(button.innerText).toEqual('Hello, my name is Marty McFly'); | ||
}); | ||
}); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { newE2EPage } from '@stencil/core/testing'; | ||
|
||
describe('wz-checkbox', () => { | ||
it('should render a checkbox-component', async () => { | ||
const page = await newE2EPage(); | ||
await page.setContent('<wz-checkbox></wz-checkbox>'); | ||
const checkbox = await page.find('wz-checkbox'); | ||
const checked = await checkbox.getProperty('checked'); | ||
expect(checked).toBeFalsy(); | ||
}); | ||
}); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { newE2EPage } from '@stencil/core/testing'; | ||
|
||
describe('wz-error', () => { | ||
it('should render a error-component', async () => { | ||
const page = await newE2EPage(); | ||
await page.setContent('<wz-error>Hello, my name is Marty McFly</wz-error>'); | ||
const error = await page.find('wz-error'); | ||
expect(error.innerText).toBe('Hello, my name is Marty McFly'); | ||
}); | ||
}); |
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
design-system/src/components/formerror/__snapshots__/formerror.test.tsx.snap
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { newE2EPage } from '@stencil/core/testing'; | ||
|
||
describe('wz-formerror', () => { | ||
it('renders form error', async () => { | ||
const page = await newE2EPage(); | ||
await page.setContent("<wz-form-error error='Uh, oh'>Something</wz-input>"); | ||
const errorText = await page.find('wz-error'); | ||
expect(errorText.innerText).toEqual('Uh, oh'); | ||
}); | ||
}); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { newE2EPage } from '@stencil/core/testing'; | ||
|
||
describe('wz-heading', () => { | ||
it('should render a heading-component', async () => { | ||
const page = await newE2EPage(); | ||
await page.setContent( | ||
'<wz-heading>Hello, my name is Marty McFly</wz-heading>', | ||
); | ||
const link = await page.find('wz-heading'); | ||
expect(link.innerText).toEqual('Hello, my name is Marty McFly'); | ||
}); | ||
}); |
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
design-system/src/components/icon/__snapshots__/icon.e2e.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`wz-icon renders icon 1`] = `"<wz-icon icon=\\"clear\\" class=\\"hydrated\\"><div class=\\"icon-container medium\\"><icon-clear class=\\"hydrated\\"><svg viewbox=\\"0 0 24 24\\"><path d=\\"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\\"></path><path d=\\"M0 0h24v24H0z\\" fill=\\"none\\"></path></svg></icon-clear></div></wz-icon>"`; |
15 changes: 0 additions & 15 deletions
15
design-system/src/components/icon/__snapshots__/icon.test.tsx.snap
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { newE2EPage } from '@stencil/core/testing'; | ||
|
||
describe('wz-icon', () => { | ||
it('renders icon', async () => { | ||
const page = await newE2EPage(); | ||
await page.setContent('<wz-icon icon="clear" />'); | ||
const icon = await page.find('wz-icon'); | ||
expect(icon.outerHTML).toMatchSnapshot(); | ||
}); | ||
}); |
This file was deleted.
Oops, something went wrong.
37 changes: 0 additions & 37 deletions
37
design-system/src/components/input/__snapshots__/input.test.tsx.snap
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { newE2EPage } from '@stencil/core/testing'; | ||
|
||
describe('wz-input', () => { | ||
it('should render a input-component', async () => { | ||
const page = await newE2EPage(); | ||
await page.setContent( | ||
"<wz-input value='Hello, my name is Marty McFly'></wz-input>", | ||
); | ||
const input = await page.find('wz-input'); | ||
const value = await input.getProperty('value'); | ||
expect(value).toEqual('Hello, my name is Marty McFly'); | ||
}); | ||
|
||
it('renders disabled', async () => { | ||
const page = await newE2EPage(); | ||
await page.setContent('<wz-input disabled></wz-input>'); | ||
const input = await page.find('wz-input'); | ||
const disabled = await input.getProperty('disabled'); | ||
expect(disabled).toBeTruthy(); | ||
}); | ||
}); |
Oops, something went wrong.