chore(): sync with main

This commit is contained in:
Liam DeBeasi
2023-02-08 09:44:42 -05:00
189 changed files with 288 additions and 311 deletions

View File

@ -1,6 +1,5 @@
import { expect } from '@playwright/test';
import type { E2EPage } from '@utils/test/playwright';
import { dragElementBy } from '@utils/test/playwright';
/**
* Visual regression tests for picker-column.
@ -14,12 +13,14 @@ export async function testPickerColumn(page: E2EPage, buttonSelector: string, de
await page.click(buttonSelector);
await ionPickerDidPresentSpy.next();
await page.waitForTimeout(100);
await page.waitForChanges();
expect(await page.screenshot()).toMatchSnapshot(
`picker-${description}-column-initial-${page.getSnapshotSettings()}.png`
);
// TODO FW-3403
/*
const columns = page.locator('.picker-opt-selected');
const spy = await page.spyOnEvent('ionPickerColChange');
@ -31,7 +32,7 @@ export async function testPickerColumn(page: E2EPage, buttonSelector: string, de
await dragElementBy(column, page, 0, -100);
await spy.next();
await page.waitForTimeout(100);
await page.waitForChanges();
screenshots.push({
name: `picker-${description}-column-diff-${i}-${page.getSnapshotSettings()}.png`,
@ -42,4 +43,5 @@ export async function testPickerColumn(page: E2EPage, buttonSelector: string, de
for (const screenshot of screenshots) {
expect(screenshot.screenshot).toMatchSnapshot(screenshot.name);
}
*/
}