feat(custom-elements): add experimental custom elements build (#22863)

Co-authored-by: Liam DeBeasi <liamdebeasi@icloud.com>
This commit is contained in:
Adam Bradley
2021-02-11 11:08:00 -06:00
committed by GitHub
parent 19d63f6243
commit 0de75afbef
61 changed files with 5430 additions and 7613 deletions

View File

@ -5,7 +5,7 @@ test('segment: colors', async () => {
url: '/src/components/segment/test/colors?ionic:_testing=true'
});
await page.waitFor(250);
await page.waitForTimeout(250);
const compare = await page.compareScreenshot();
expect(compare).toMatchScreenshot();
@ -16,7 +16,7 @@ test('segment:rtl: colors', async () => {
url: '/src/components/segment/test/colors?ionic:_testing=true&rtl=true'
});
await page.waitFor(250);
await page.waitForTimeout(250);
const compare = await page.compareScreenshot();
expect(compare).toMatchScreenshot();

View File

@ -154,7 +154,9 @@
for (var i = 0; i < customIconSegments.length; i++) {
const customIconSegment = customIconSegments[i];
await customIconSegment.componentOnReady();
if (customIconSegment.componentOnReady) {
await customIconSegment.componentOnReady();
}
addIconClass(customIconSegment, customIconSegment.value);
customIconSegment.addEventListener('ionChange', function (ev) {

View File

@ -5,7 +5,7 @@ test('segment: toolbar', async () => {
url: '/src/components/segment/test/toolbar?ionic:_testing=true'
});
await page.waitFor(250);
await page.waitForTimeout(250);
const compare = await page.compareScreenshot();
expect(compare).toMatchScreenshot();
@ -16,7 +16,7 @@ test('segment:rtl: toolbar', async () => {
url: '/src/components/segment/test/toolbar?ionic:_testing=true&rtl=true'
});
await page.waitFor(250);
await page.waitForTimeout(250);
const compare = await page.compareScreenshot();
expect(compare).toMatchScreenshot();