pull/4273/head
lianahus 1 year ago committed by yann300
parent 1368023d4c
commit 312638b8cc
  1. 5
      apps/remix-ide-e2e/src/tests/migrateFileSystem.test.ts

@ -34,11 +34,13 @@ module.exports = {
.waitForElementVisible('*[data-id="remixIdeSidePanel"]', 10000) .waitForElementVisible('*[data-id="remixIdeSidePanel"]', 10000)
.waitForElementVisible('div[data-id="filePanelFileExplorerTree"]') .waitForElementVisible('div[data-id="filePanelFileExplorerTree"]')
.openFile('README.txt') .openFile('README.txt')
.waitForElementVisible('*[id="editorView"]', 10000)
.getEditorValue((content) => { .getEditorValue((content) => {
browser.assert.ok(content.includes('Output from script will appear in remix terminal.')) browser.assert.ok(content.includes('Output from script will appear in remix terminal.'))
}) })
.click('*[data-id="treeViewLitreeViewItemcontracts"]') .click('*[data-id="treeViewLitreeViewItemcontracts"]')
.openFile('contracts/1_Storage.sol') .openFile('contracts/1_Storage.sol')
.waitForElementVisible('*[id="editorView"]', 10000)
.getEditorValue((content) => { .getEditorValue((content) => {
browser.assert.ok(content.includes('function retrieve() public view returns (uint256){')) browser.assert.ok(content.includes('function retrieve() public view returns (uint256){'))
}) })
@ -69,7 +71,7 @@ module.exports = {
.waitForElementVisible('*[data-id="remixIdeSidePanel"]', 5000) .waitForElementVisible('*[data-id="remixIdeSidePanel"]', 5000)
.waitForElementVisible('div[data-id="filePanelFileExplorerTree"]') .waitForElementVisible('div[data-id="filePanelFileExplorerTree"]')
.openFile('TEST_README.txt') .openFile('TEST_README.txt')
.pause(6000) .waitForElementVisible('*[id="editorView"]', 10000)
.getEditorValue((content) => { .getEditorValue((content) => {
browser.assert.equal(content, 'TEST README') browser.assert.equal(content, 'TEST README')
}) })
@ -92,6 +94,7 @@ module.exports = {
browser.waitForElementVisible('*[data-id="remixIdeSidePanel"]', 5000) browser.waitForElementVisible('*[data-id="remixIdeSidePanel"]', 5000)
.click('*[data-id="treeViewLitreeViewItemtest_contracts/artifacts"]') .click('*[data-id="treeViewLitreeViewItemtest_contracts/artifacts"]')
.openFile('test_contracts/artifacts/Storage_metadata.json') .openFile('test_contracts/artifacts/Storage_metadata.json')
.waitForElementVisible('*[id="editorView"]', 10000)
.getEditorValue((content) => { .getEditorValue((content) => {
const metadata = JSON.parse(content) const metadata = JSON.parse(content)
browser.assert.equal(metadata.test, 'data') browser.assert.equal(metadata.test, 'data')

Loading…
Cancel
Save