test(playwright): update to playwright 1.23 (#25645)

This commit is contained in:
Liam DeBeasi
2022-07-15 12:22:55 -04:00
committed by GitHub
parent a6f3ae67ab
commit 48ebb9c820
5 changed files with 27 additions and 1439 deletions

1452
core/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -41,7 +41,7 @@
"@ionic/eslint-config": "^0.3.0", "@ionic/eslint-config": "^0.3.0",
"@ionic/prettier-config": "^2.0.0", "@ionic/prettier-config": "^2.0.0",
"@jest/core": "^26.6.3", "@jest/core": "^26.6.3",
"@playwright/test": "^1.20.0", "@playwright/test": "^1.23.3",
"@rollup/plugin-node-resolve": "^8.4.0", "@rollup/plugin-node-resolve": "^8.4.0",
"@rollup/plugin-virtual": "^2.0.3", "@rollup/plugin-virtual": "^2.0.3",
"@stencil/angular-output-target": "^0.4.0", "@stencil/angular-output-target": "^0.4.0",

View File

@ -20,7 +20,7 @@ test.describe('action sheet: basic', () => {
await buttonOption.click(); await buttonOption.click();
await ionActionSheetDidDismiss.next(); await ionActionSheetDidDismiss.next();
expect(ionActionSheetDidDismiss).toHaveReceivedEventDetail({ data: { type: '1' } }); expect(ionActionSheetDidDismiss).toHaveReceivedEventDetail({ data: { type: '1' }, role: undefined });
}); });
test('should return cancel button data', async ({ page }, testInfo) => { test('should return cancel button data', async ({ page }, testInfo) => {
test.skip(testInfo.project.metadata.rtl === true, 'This does not test LTR vs. RTL layout.'); test.skip(testInfo.project.metadata.rtl === true, 'This does not test LTR vs. RTL layout.');

View File

@ -33,8 +33,8 @@ test.describe('datetime: minmax', () => {
const prevButton = page.locator('ion-datetime .calendar-next-prev ion-button:nth-child(1)'); const prevButton = page.locator('ion-datetime .calendar-next-prev ion-button:nth-child(1)');
const nextButton = page.locator('ion-datetime .calendar-next-prev ion-button:nth-child(2)'); const nextButton = page.locator('ion-datetime .calendar-next-prev ion-button:nth-child(2)');
await expect(nextButton).toBeEnabled(); await expect(nextButton).toHaveJSProperty('disabled', false);
await expect(prevButton).toBeDisabled(); await expect(prevButton).toHaveJSProperty('disabled', true);
await page.evaluate('initDatetimeChangeEvent()'); await page.evaluate('initDatetimeChangeEvent()');
@ -45,8 +45,8 @@ test.describe('datetime: minmax', () => {
await monthDidChangeSpy.next(); await monthDidChangeSpy.next();
await expect(nextButton).toBeDisabled(); await expect(nextButton).toHaveJSProperty('disabled', true);
await expect(prevButton).toBeEnabled(); await expect(prevButton).toHaveJSProperty('disabled', false);
}); });
test('datetime: minmax months disabled', async ({ page }) => { test('datetime: minmax months disabled', async ({ page }) => {

View File

@ -65,7 +65,7 @@ test.describe('toggle: basic', () => {
test('should pass properties down to hidden input', async ({ page }) => { test('should pass properties down to hidden input', async ({ page }) => {
const toggle = page.locator('#grapeChecked'); const toggle = page.locator('#grapeChecked');
await expect(toggle).toBeDisabled(); await expect(toggle).toHaveJSProperty('disabled', true);
await expect(toggle).toHaveJSProperty('value', 'grape'); await expect(toggle).toHaveJSProperty('value', 'grape');
await expect(toggle).toHaveJSProperty('name', 'grape'); await expect(toggle).toHaveJSProperty('name', 'grape');