new file creation e2e

pull/2943/head
Aniket-Engg 2 years ago
parent 9f165bf05f
commit 81af656ac7
  1. 6
      apps/remix-ide-e2e/src/tests/homeTab.test.ts

@ -12,6 +12,12 @@ describe('HomeTab e2e test', function () {
browser browser
.waitForElementVisible('*[data-id="homeTabNewFile"]') .waitForElementVisible('*[data-id="homeTabNewFile"]')
.click('*[data-id="homeTabNewFile"]') .click('*[data-id="homeTabNewFile"]')
// click again to make it work
.click('*[data-id="homeTabNewFile"]')
.waitForElementVisible('li[data-id="treeViewLitreeViewItem//blank"]')
.sendKeys('li[data-id="treeViewLitreeViewItem//blank"]', 'newTestFile')
.sendKeys('li[data-id="treeViewLitreeViewItem//blank"]', browser.Keys.ENTER)
.waitForElementVisible('li[data-id="treeViewLitreeViewItemnewTestFile.sol"]')
}) })
after(browser => browser.end()); after(browser => browser.end());

Loading…
Cancel
Save