mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
fix(core): fix flaky e2e (#6293)
This commit is contained in:
@@ -98,6 +98,9 @@ test('can restore page to a history version', async ({ page }) => {
|
||||
await pushCurrentPageUpdates(page);
|
||||
|
||||
const title = getBlockSuiteEditorTitle(page);
|
||||
|
||||
await title.focus();
|
||||
|
||||
await title.pressSequentially('TEST TITLE', {
|
||||
delay: 50,
|
||||
});
|
||||
@@ -105,7 +108,13 @@ test('can restore page to a history version', async ({ page }) => {
|
||||
// write something and push to history
|
||||
await pushCurrentPageUpdates(page);
|
||||
|
||||
await title.fill('New Title');
|
||||
await title.selectText();
|
||||
|
||||
await title.press('Backspace');
|
||||
|
||||
await title.pressSequentially('New Title', {
|
||||
delay: 50,
|
||||
});
|
||||
|
||||
// click the history button
|
||||
await page.getByTestId('header-dropDownButton').click();
|
||||
|
||||
Reference in New Issue
Block a user