Commit 129c5ceb authored by lianahus's avatar lianahus

style of header

parent 8500806c
...@@ -7,6 +7,8 @@ export default function (browser: NightwatchBrowser, callback: VoidFunction, url ...@@ -7,6 +7,8 @@ export default function (browser: NightwatchBrowser, callback: VoidFunction, url
.url(url || 'http://127.0.0.1:8080') .url(url || 'http://127.0.0.1:8080')
.pause(5000) .pause(5000)
.switchBrowserTab(0) .switchBrowserTab(0)
.waitForElementVisible('[id="remixTourSkipbtn"]')
.click('[id="remixTourSkipbtn"]')
.fullscreenWindow(() => { .fullscreenWindow(() => {
if (preloadPlugins) { if (preloadPlugins) {
initModules(browser, () => { initModules(browser, () => {
......
...@@ -114,7 +114,7 @@ module.exports = { ...@@ -114,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"]', 60000) .waitForElementVisible('*[data-id="pluginManagerComponentDeactivateButtonremixIde"]', 100000)
}, },
'Should display error message for creating already existing plugin': function (browser: NightwatchBrowser) { 'Should display error message for creating already existing plugin': function (browser: NightwatchBrowser) {
......
...@@ -22,6 +22,7 @@ module.exports = { ...@@ -22,6 +22,7 @@ module.exports = {
'Checks vertical icons panel contex menu deactivate': function (browser: NightwatchBrowser) { 'Checks vertical icons panel contex menu deactivate': function (browser: NightwatchBrowser) {
browser.waitForElementVisible('div[data-id="remixIdeIconPanel"]', 10000) browser.waitForElementVisible('div[data-id="remixIdeIconPanel"]', 10000)
.waitForElementVisible('*[data-id="verticalIconsKinddebugger"]', 7000) .waitForElementVisible('*[data-id="verticalIconsKinddebugger"]', 7000)
.pause(5000)
.rightClick('[data-id="verticalIconsKinddebugger"]') .rightClick('[data-id="verticalIconsKinddebugger"]')
.click('*[id="menuitemdeactivate"]') .click('*[id="menuitemdeactivate"]')
.click('*[data-id="verticalIconsKindsettings"]') .click('*[data-id="verticalIconsKindsettings"]')
......
...@@ -18,7 +18,7 @@ export class WalkthroughService { ...@@ -18,7 +18,7 @@ export class WalkthroughService {
{ {
element: document.querySelector('#compileIcons'), element: document.querySelector('#compileIcons'),
title: 'Solidity Compiler', title: 'Solidity Compiler',
intro: 'Having selected a .sol file in the File Explorers(the icon above), compile it with the Solidity Compiler.', intro: 'Having selected a .sol file in the File Explorers (the icon above), compile it with the Solidity Compiler.',
tooltipClass: 'bg-light text-dark', tooltipClass: 'bg-light text-dark',
position: 'right' position: 'right'
}, },
...@@ -28,16 +28,22 @@ export class WalkthroughService { ...@@ -28,16 +28,22 @@ export class WalkthroughService {
intro: 'Choose a chain, deploy a contract and play with your functions.', intro: 'Choose a chain, deploy a contract and play with your functions.',
tooltipClass: 'bg-light text-dark', tooltipClass: 'bg-light text-dark',
position: 'right' position: 'right'
},
{
title: 'The plugins world',
element: document.querySelector('#settingsIcons'),
intro: 'Explore more plugins and manage permissions.',
tooltipClass: 'bg-light text-dark',
position: 'right',
doneLabel: 'Done!'
} }
] ]
}).onafterchange((targetElement) => {
const header = document.getElementsByClassName('introjs-tooltip-header')[0]
if (header) {
header.classList.add('d-flex')
header.classList.add('justify-content-between')
header.classList.add('text-nowrap')
header.classList.add('pr-0')
}
const skipbutton = document.getElementsByClassName('introjs-skipbutton')[0]
if (skipbutton) {
skipbutton.classList.add('ml-3')
skipbutton.classList.add('text-decoration-none')
skipbutton.id = 'remixTourSkipbtn'
}
}).start() }).start()
localStorage.setItem('hadTour_initial', true) localStorage.setItem('hadTour_initial', true)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment