2
0

🐛 (editor) Improve variables dropdown auto focus

This commit is contained in:
Baptiste Arnaud
2023-01-11 10:53:24 +01:00
parent 4c2eaf9b79
commit b65ffe8c53
9 changed files with 28 additions and 39 deletions

View File

@ -169,5 +169,5 @@ const fillInSpreadsheetInfo = async (page: Page) => {
const createNewVar = async (page: Page, name: string) => {
await page.fill('input[placeholder="Select a variable"] >> nth=-1', name)
await page.click(`text=Create "${name}"`)
await page.getByRole('menuitem', { name: `Create ${name}` }).click()
}