mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-18 10:31:50 +08:00
chore: bump playwright (#13947)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Updated Playwright test tooling to 1.58.2 across the repository and test packages. * **Tests** * Improved end-to-end robustness: replaced fragile timing/coordinate logic with element-based interactions, added polling/retry checks for flaky asserts and async state, and simplified input/rename flows to reduce test flakiness. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -417,12 +417,19 @@ test('Create a new page with special characters in the title and search for this
|
||||
await clickNewPageButton(page);
|
||||
await getBlockSuiteEditorTitle(page).click();
|
||||
await getBlockSuiteEditorTitle(page).fill(specialTitle);
|
||||
await page.keyboard.press('Enter');
|
||||
await expect(getBlockSuiteEditorTitle(page)).toContainText(specialTitle);
|
||||
await openQuickSearchByShortcut(page);
|
||||
|
||||
await insertInputText(page, specialTitle);
|
||||
await page.waitForTimeout(1000);
|
||||
|
||||
await assertResultList(page, [specialTitle, specialTitle]);
|
||||
await expect
|
||||
.poll(async () => {
|
||||
const labels = await page
|
||||
.locator('[cmdk-item] [data-testid=cmdk-label]')
|
||||
.allInnerTexts();
|
||||
return labels.some(label => label.split('\n').includes(specialTitle));
|
||||
})
|
||||
.toBe(true);
|
||||
await page.keyboard.press('Enter');
|
||||
await page.waitForTimeout(1000);
|
||||
await assertTitle(page, specialTitle);
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
"@affine-test/kit": "workspace:*",
|
||||
"@affine-tools/cli": "workspace:*",
|
||||
"@affine-tools/utils": "workspace:*",
|
||||
"@playwright/test": "=1.52.0",
|
||||
"@playwright/test": "=1.58.2",
|
||||
"webpack": "^5.102.1"
|
||||
},
|
||||
"version": "0.26.3"
|
||||
|
||||
Reference in New Issue
Block a user