|
|
@ -11,8 +11,7 @@ module.exports = { |
|
|
|
.maximizeWindow() |
|
|
|
.maximizeWindow() |
|
|
|
.waitForElementVisible('*[data-id="skipbackup-btn"]', 5000) |
|
|
|
.waitForElementVisible('*[data-id="skipbackup-btn"]', 5000) |
|
|
|
.click('*[data-id="skipbackup-btn"]') |
|
|
|
.click('*[data-id="skipbackup-btn"]') |
|
|
|
.waitForElementVisible('[id="remixTourSkipbtn"]') |
|
|
|
.waitForElementVisible('*[data-id="remixIdeSidePanel"]', 10000) |
|
|
|
.click('[id="remixTourSkipbtn"]') |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
'Should load the testmigration url and refresh and still have test data #group7': function (browser: NightwatchBrowser) { |
|
|
|
'Should load the testmigration url and refresh and still have test data #group7': function (browser: NightwatchBrowser) { |
|
|
|
browser.url('http://127.0.0.1:8080?e2e_testmigration=true') |
|
|
|
browser.url('http://127.0.0.1:8080?e2e_testmigration=true') |
|
|
@ -21,8 +20,8 @@ module.exports = { |
|
|
|
.maximizeWindow() |
|
|
|
.maximizeWindow() |
|
|
|
.waitForElementVisible('*[data-id="skipbackup-btn"]', 5000) |
|
|
|
.waitForElementVisible('*[data-id="skipbackup-btn"]', 5000) |
|
|
|
.click('*[data-id="skipbackup-btn"]') |
|
|
|
.click('*[data-id="skipbackup-btn"]') |
|
|
|
.waitForElementVisible('[id="remixTourSkipbtn"]') |
|
|
|
.waitForElementVisible('*[data-id="remixIdeSidePanel"]', 10000) |
|
|
|
.click('[id="remixTourSkipbtn"]').refreshPage() |
|
|
|
.refreshPage() |
|
|
|
}, |
|
|
|
}, |
|
|
|
'should have indexedDB storage in terminal #group1 #group7': function (browser: NightwatchBrowser) { |
|
|
|
'should have indexedDB storage in terminal #group1 #group7': function (browser: NightwatchBrowser) { |
|
|
|
browser.assert.containsText('*[data-id="terminalJournal"]', 'indexedDB') |
|
|
|
browser.assert.containsText('*[data-id="terminalJournal"]', 'indexedDB') |
|
|
@ -32,9 +31,7 @@ module.exports = { |
|
|
|
.pause(6000) |
|
|
|
.pause(6000) |
|
|
|
.switchBrowserTab(0) |
|
|
|
.switchBrowserTab(0) |
|
|
|
.maximizeWindow() |
|
|
|
.maximizeWindow() |
|
|
|
.waitForElementVisible('[id="remixTourSkipbtn"]') |
|
|
|
.waitForElementVisible('*[data-id="remixIdeSidePanel"]', 10000) |
|
|
|
.click('[id="remixTourSkipbtn"]') |
|
|
|
|
|
|
|
.waitForElementVisible('*[data-id="remixIdeSidePanel"]', 5000) |
|
|
|
|
|
|
|
.waitForElementVisible('div[data-id="filePanelFileExplorerTree"]') |
|
|
|
.waitForElementVisible('div[data-id="filePanelFileExplorerTree"]') |
|
|
|
.openFile('README.txt') |
|
|
|
.openFile('README.txt') |
|
|
|
.getEditorValue((content) => { |
|
|
|
.getEditorValue((content) => { |
|
|
@ -53,8 +50,7 @@ module.exports = { |
|
|
|
.maximizeWindow() |
|
|
|
.maximizeWindow() |
|
|
|
.waitForElementVisible('*[data-id="skipbackup-btn"]', 5000) |
|
|
|
.waitForElementVisible('*[data-id="skipbackup-btn"]', 5000) |
|
|
|
.click('*[data-id="skipbackup-btn"]') |
|
|
|
.click('*[data-id="skipbackup-btn"]') |
|
|
|
.waitForElementVisible('[id="remixTourSkipbtn"]') |
|
|
|
.waitForElementVisible('*[data-id="remixIdeSidePanel"]', 10000) |
|
|
|
.click('[id="remixTourSkipbtn"]') |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
'Should generate error in migration by deleting indexedDB and falling back to local storage with test #group5': function (browser: NightwatchBrowser) { |
|
|
|
'Should generate error in migration by deleting indexedDB and falling back to local storage with test #group5': function (browser: NightwatchBrowser) { |
|
|
|
browser.url('http://127.0.0.1:8080?e2e_testmigration=true') |
|
|
|
browser.url('http://127.0.0.1:8080?e2e_testmigration=true') |
|
|
@ -63,8 +59,7 @@ module.exports = { |
|
|
|
.maximizeWindow().execute(('delete window.indexedDB')) |
|
|
|
.maximizeWindow().execute(('delete window.indexedDB')) |
|
|
|
.waitForElementVisible('*[data-id="skipbackup-btn"]', 5000) |
|
|
|
.waitForElementVisible('*[data-id="skipbackup-btn"]', 5000) |
|
|
|
.click('*[data-id="skipbackup-btn"]') |
|
|
|
.click('*[data-id="skipbackup-btn"]') |
|
|
|
.waitForElementVisible('[id="remixTourSkipbtn"]') |
|
|
|
.waitForElementVisible('*[data-id="remixIdeSidePanel"]', 10000) |
|
|
|
.click('[id="remixTourSkipbtn"]') |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
'should have localstorage storage in terminal #group2 #group3 #group5': function (browser: NightwatchBrowser) { |
|
|
|
'should have localstorage storage in terminal #group2 #group3 #group5': function (browser: NightwatchBrowser) { |
|
|
|
browser.assert.containsText('*[data-id="terminalJournal"]', 'localstorage') |
|
|
|
browser.assert.containsText('*[data-id="terminalJournal"]', 'localstorage') |
|
|
@ -74,6 +69,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) |
|
|
|
.getEditorValue((content) => { |
|
|
|
.getEditorValue((content) => { |
|
|
|
browser.assert.equal(content, 'TEST README') |
|
|
|
browser.assert.equal(content, 'TEST README') |
|
|
|
}) |
|
|
|
}) |
|
|
|