Skip to content

Commit

Permalink
fix(test): use fill instead of select-all shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
andelf committed Dec 30, 2022
1 parent 94d75b8 commit fdfac2b
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions e2e-tests/page-rename.spec.ts
Expand Up @@ -7,15 +7,9 @@ import { IsMac, createPage, randomLowerString, newBlock, newInnerBlock, randomSt
***/

async function rename_page(page: Page, new_name: string) {
let selectAll = 'Control+a'
if (IsMac) {
selectAll = 'Meta+a'
}

await page.click('.ls-page-title .page-title')
await page.waitForSelector('input[type="text"]')
await page.keyboard.press(selectAll)
await page.keyboard.press('Backspace')
await page.fill('input[type="text"]', '')
await page.type('.title input', new_name)
await page.keyboard.press('Enter')
await page.click('.ui__confirm-modal button')
Expand Down

0 comments on commit fdfac2b

Please sign in to comment.