From f6632d9a0ea689054f74a6fc51bea41cc2a0f39c Mon Sep 17 00:00:00 2001 From: yann300 Date: Wed, 16 Mar 2022 12:17:23 +0100 Subject: [PATCH] use scrollAndClick --- apps/remix-ide-e2e/src/tests/generalSettings.test.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/remix-ide-e2e/src/tests/generalSettings.test.ts b/apps/remix-ide-e2e/src/tests/generalSettings.test.ts index f36d042950..ca54678a7b 100644 --- a/apps/remix-ide-e2e/src/tests/generalSettings.test.ts +++ b/apps/remix-ide-e2e/src/tests/generalSettings.test.ts @@ -65,7 +65,7 @@ module.exports = { 'Should load dark theme ': function (browser: NightwatchBrowser) { browser.waitForElementVisible('*[data-id="verticalIconsKindsettings"]', 5000) - .click('*[data-id="settingsTabThemeLabelDark"]') + .scrollAndClick('*[data-id="settingsTabThemeLabelDark"]') .pause(2000) .checkElementStyle(':root', '--primary', remixIdeThemes.dark.primary) .checkElementStyle(':root', '--secondary', remixIdeThemes.dark.secondary) @@ -77,7 +77,7 @@ module.exports = { 'Should load light theme ': function (browser: NightwatchBrowser) { browser.waitForElementVisible('*[data-id="verticalIconsKindsettings"]', 5000) - .click('*[data-id="settingsTabThemeLabelLight"]') + .scrollAndClick('*[data-id="settingsTabThemeLabelLight"]') .pause(2000) .checkElementStyle(':root', '--primary', remixIdeThemes.light.primary) .checkElementStyle(':root', '--secondary', remixIdeThemes.light.secondary) @@ -89,7 +89,7 @@ module.exports = { 'Should load Cerulean theme ': function (browser: NightwatchBrowser) { browser.waitForElementVisible('*[data-id="verticalIconsKindsettings"]', 5000) - .click('*[data-id="settingsTabThemeLabelCerulean"]') + .scrollAndClick('*[data-id="settingsTabThemeLabelCerulean"]') .pause(5000) .checkElementStyle(':root', '--primary', remixIdeThemes.curelean.primary) .checkElementStyle(':root', '--secondary', remixIdeThemes.curelean.secondary) @@ -101,7 +101,7 @@ module.exports = { 'Should load Flatly theme ': function (browser: NightwatchBrowser) { browser.waitForElementVisible('*[data-id="verticalIconsKindsettings"]', 5000) - .click('*[data-id="settingsTabThemeLabelFlatly"]') + .scrollAndClick('*[data-id="settingsTabThemeLabelFlatly"]') .pause(2000) .checkElementStyle(':root', '--primary', remixIdeThemes.flatly.primary) .checkElementStyle(':root', '--secondary', remixIdeThemes.flatly.secondary) @@ -113,7 +113,7 @@ module.exports = { 'Should load Spacelab theme ': function (browser) { browser.waitForElementVisible('*[data-id="verticalIconsKindsettings"]', 5000) - .click('*[data-id="settingsTabThemeLabelSpacelab"]') + .scrollAndClick('*[data-id="settingsTabThemeLabelSpacelab"]') .pause(2000) .checkElementStyle(':root', '--primary', remixIdeThemes.spacelab.primary) .checkElementStyle(':root', '--secondary', remixIdeThemes.spacelab.secondary) @@ -125,7 +125,7 @@ module.exports = { 'Should load Cyborg theme ': function (browser) { browser.waitForElementVisible('*[data-id="verticalIconsKindsettings"]', 5000) - .click('*[data-id="settingsTabThemeLabelCyborg"]') + .scrollAndClick('*[data-id="settingsTabThemeLabelCyborg"]') .pause(2000) .checkElementStyle(':root', '--primary', remixIdeThemes.cyborg.primary) .checkElementStyle(':root', '--secondary', remixIdeThemes.cyborg.secondary)