mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 19:57:22 +08:00
test(playwright): update to playwright 1.23 (#25645)
This commit is contained in:
1452
core/package-lock.json
generated
1452
core/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -41,7 +41,7 @@
|
||||
"@ionic/eslint-config": "^0.3.0",
|
||||
"@ionic/prettier-config": "^2.0.0",
|
||||
"@jest/core": "^26.6.3",
|
||||
"@playwright/test": "^1.20.0",
|
||||
"@playwright/test": "^1.23.3",
|
||||
"@rollup/plugin-node-resolve": "^8.4.0",
|
||||
"@rollup/plugin-virtual": "^2.0.3",
|
||||
"@stencil/angular-output-target": "^0.4.0",
|
||||
|
@ -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.');
|
||||
|
@ -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 }) => {
|
||||
|
@ -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');
|
||||
|
||||
|
Reference in New Issue
Block a user