|
|
@ -1,7 +1,6 @@ |
|
|
|
'use strict' |
|
|
|
'use strict' |
|
|
|
import { NightwatchBrowser } from 'nightwatch' |
|
|
|
import { NightwatchBrowser } from 'nightwatch' |
|
|
|
import init from '../helpers/init' |
|
|
|
import init from '../helpers/init' |
|
|
|
import sauce from './sauce' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const testData = { |
|
|
|
const testData = { |
|
|
|
pluginName: 'remixIde', |
|
|
|
pluginName: 'remixIde', |
|
|
@ -45,23 +44,23 @@ module.exports = { |
|
|
|
.click('*[data-id="pluginManagerComponentPluginManager"]') |
|
|
|
.click('*[data-id="pluginManagerComponentPluginManager"]') |
|
|
|
.scrollAndClick('*[data-id="pluginManagerComponentActivateButtondebugger"]') |
|
|
|
.scrollAndClick('*[data-id="pluginManagerComponentActivateButtondebugger"]') |
|
|
|
.pause(2000) |
|
|
|
.pause(2000) |
|
|
|
.waitForElementVisible('*[data-id="pluginManagerComponentDeactivateButtondebugger"]') |
|
|
|
.waitForElementVisible('*[data-id="pluginManagerComponentDeactivateButtondebugger"]', 60000) |
|
|
|
.scrollAndClick('*[data-id="pluginManagerComponentActivateButtonvyper"]') |
|
|
|
.scrollAndClick('*[data-id="pluginManagerComponentActivateButtonvyper"]') |
|
|
|
.waitForElementVisible('*[data-id="pluginManagerComponentDeactivateButtonvyper"]') |
|
|
|
.waitForElementVisible('*[data-id="pluginManagerComponentDeactivateButtonvyper"]', 60000) |
|
|
|
.scrollAndClick('*[data-id="pluginManagerComponentActivateButtonZoKrates"]') |
|
|
|
.scrollAndClick('*[data-id="pluginManagerComponentActivateButtonZoKrates"]') |
|
|
|
.waitForElementVisible('*[data-id="pluginManagerComponentDeactivateButtonZoKrates"]') |
|
|
|
.waitForElementVisible('*[data-id="pluginManagerComponentDeactivateButtonZoKrates"]', 60000) |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
'Should deactivate plugins': function (browser: NightwatchBrowser) { |
|
|
|
'Should deactivate plugins': function (browser: NightwatchBrowser) { |
|
|
|
browser.waitForElementVisible('*[data-id="pluginManagerComponentPluginManager"]') |
|
|
|
browser.waitForElementVisible('*[data-id="pluginManagerComponentPluginManager"]') |
|
|
|
.click('*[data-id="pluginManagerComponentPluginManager"]') |
|
|
|
.click('*[data-id="pluginManagerComponentPluginManager"]') |
|
|
|
.waitForElementVisible('*[data-id="pluginManagerComponentDeactivateButtondebugger"]') |
|
|
|
.waitForElementVisible('*[data-id="pluginManagerComponentDeactivateButtondebugger"]', 60000) |
|
|
|
.pause(2000) |
|
|
|
.pause(2000) |
|
|
|
.scrollAndClick('*[data-id="pluginManagerComponentDeactivateButtondebugger"]') |
|
|
|
.scrollAndClick('*[data-id="pluginManagerComponentDeactivateButtondebugger"]') |
|
|
|
.waitForElementVisible('*[data-id="pluginManagerComponentActivateButtondebugger"]') |
|
|
|
.waitForElementVisible('*[data-id="pluginManagerComponentActivateButtondebugger"]', 60000) |
|
|
|
.waitForElementVisible('*[data-id="pluginManagerComponentDeactivateButtonvyper"]') |
|
|
|
.waitForElementVisible('*[data-id="pluginManagerComponentDeactivateButtonvyper"]', 60000) |
|
|
|
.scrollAndClick('*[data-id="pluginManagerComponentDeactivateButtonvyper"]') |
|
|
|
.scrollAndClick('*[data-id="pluginManagerComponentDeactivateButtonvyper"]') |
|
|
|
.waitForElementVisible('*[data-id="pluginManagerComponentActivateButtonvyper"]') |
|
|
|
.waitForElementVisible('*[data-id="pluginManagerComponentActivateButtonvyper"]', 60000) |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
/* |
|
|
|
/* |
|
|
@ -115,7 +114,7 @@ module.exports = { |
|
|
|
.click('*[data-id="localPluginRadioButtonsidePanel"]') |
|
|
|
.click('*[data-id="localPluginRadioButtonsidePanel"]') |
|
|
|
.click('*[data-id="modalDialogModalFooter"]') |
|
|
|
.click('*[data-id="modalDialogModalFooter"]') |
|
|
|
.modalFooterOKClick() |
|
|
|
.modalFooterOKClick() |
|
|
|
.waitForElementVisible('*[data-id="pluginManagerComponentDeactivateButtonremixIde"]') |
|
|
|
.waitForElementVisible('*[data-id="pluginManagerComponentDeactivateButtonremixIde"]', 60000) |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
'Should display error message for creating already existing plugin': function (browser: NightwatchBrowser) { |
|
|
|
'Should display error message for creating already existing plugin': function (browser: NightwatchBrowser) { |
|
|
@ -153,7 +152,5 @@ module.exports = { |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
.end() |
|
|
|
.end() |
|
|
|
}, |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
tearDown: sauce |
|
|
|
|
|
|
|
} |
|
|
|
} |