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

View File

@ -20,7 +20,7 @@ test.describe('action sheet: basic', () => {
await buttonOption.click();
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.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 nextButton = page.locator('ion-datetime .calendar-next-prev ion-button:nth-child(2)');
await expect(nextButton).toBeEnabled();
await expect(prevButton).toBeDisabled();
await expect(nextButton).toHaveJSProperty('disabled', false);
await expect(prevButton).toHaveJSProperty('disabled', true);
await page.evaluate('initDatetimeChangeEvent()');
@ -45,8 +45,8 @@ test.describe('datetime: minmax', () => {
await monthDidChangeSpy.next();
await expect(nextButton).toBeDisabled();
await expect(prevButton).toBeEnabled();
await expect(nextButton).toHaveJSProperty('disabled', true);
await expect(prevButton).toHaveJSProperty('disabled', false);
});
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 }) => {
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('name', 'grape');