diff --git a/apps/remix-ide-e2e/src/commands/addFile.ts b/apps/remix-ide-e2e/src/commands/addFile.ts index 918819640f..f88bc71df4 100644 --- a/apps/remix-ide-e2e/src/commands/addFile.ts +++ b/apps/remix-ide-e2e/src/commands/addFile.ts @@ -19,8 +19,8 @@ function addFile (browser: NightwatchBrowser, name: string, content: NightwatchC .click('li[data-id="treeViewLitreeViewItembrowser/README.txt"]') // focus on root directory .click('.newFile') .pause(2000) - .keys(name) - .keys(browser.Keys.ENTER) + .sendKeys('[data-id="treeViewLitreeViewItembrowser/blank"]', name) + .sendKeys('[data-id="treeViewLitreeViewItembrowser/blank"]', browser.Keys.ENTER) .pause(2000) .waitForElementVisible(`li[data-id="treeViewLitreeViewItembrowser/${name}"]`) .click(`li[data-id="treeViewLitreeViewItembrowser/${name}"]`)