Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
780588d1
Commit
780588d1
authored
Aug 18, 2020
by
ioedeveloper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed failing generalSettings tests
parent
8ad71667
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
26 deletions
+15
-26
generalSettings.test.ts
apps/remix-ide-e2e/src/tests/generalSettings.test.ts
+15
-26
No files found.
apps/remix-ide-e2e/src/tests/generalSettings.test.ts
View file @
780588d1
...
...
@@ -16,19 +16,8 @@ module.exports = {
.
waitForElementContainsText
(
'h6[data-id="sidePanelSwapitTitle"]'
,
'SETTINGS'
)
},
'Should open gitter channel in a new tab when `Gitter Channel Button` is clicked'
:
function
(
browser
:
NightwatchBrowser
)
{
const
runtimeBrowser
=
browser
.
options
.
desiredCapabilities
.
browserName
browser
.
waitForElementVisible
(
'*[data-id="remixIdeSidePanel"]'
)
.
waitForElementVisible
(
'*[data-id="settingsTabGitterChannelButton"]'
,
5000
)
.
click
(
'*[data-id="settingsTabGitterChannelButton"]'
)
.
pause
(
2000
)
.
perform
((
done
)
=>
{
if
(
runtimeBrowser
===
'chrome'
)
{
browser
.
switchBrowserTab
(
1
).
assert
.
urlContains
(
'https://gitter.im/ethereum/remix'
)
}
done
()
})
},
'Should activate `generate contract metadata`'
:
function
(
browser
:
NightwatchBrowser
)
{
browser
.
switchBrowserTab
(
0
)
.
waitForElementVisible
(
'*[data-id="remixIdeSidePanel"]'
,
5000
)
'Should activate `generate contract metadata`'
:
function
(
browser
)
{
browser
.
waitForElementVisible
(
'*[data-id="remixIdeSidePanel"]'
,
5000
)
.
waitForElementVisible
(
'*[data-id="settingsTabGenerateContractMetadata"]'
,
5000
)
.
click
(
'*[data-id="settingsTabGenerateContractMetadata"]'
)
.
click
(
'*[data-id="verticalIconsFileExplorerIcons"]'
)
...
...
@@ -67,7 +56,7 @@ module.exports = {
'Should load dark theme'
:
function
(
browser
:
NightwatchBrowser
)
{
browser
.
waitForElementVisible
(
'*[data-id="verticalIconsKindsettings"]'
,
5000
)
.
click
(
'*[data-id="settingsTabThemeDark"]'
)
.
click
(
'*[data-id="settingsTabTheme
Label
Dark"]'
)
.
pause
(
2000
)
.
checkElementStyle
(
':root'
,
'--primary'
,
remixIdeThemes
.
dark
.
primary
)
.
checkElementStyle
(
':root'
,
'--secondary'
,
remixIdeThemes
.
dark
.
secondary
)
...
...
@@ -79,7 +68,7 @@ module.exports = {
'Should load light theme'
:
function
(
browser
:
NightwatchBrowser
)
{
browser
.
waitForElementVisible
(
'*[data-id="verticalIconsKindsettings"]'
,
5000
)
.
click
(
'*[data-id="settingsTabThemeLight"]'
)
.
click
(
'*[data-id="settingsTabThemeL
abelL
ight"]'
)
.
pause
(
2000
)
.
checkElementStyle
(
':root'
,
'--primary'
,
remixIdeThemes
.
light
.
primary
)
.
checkElementStyle
(
':root'
,
'--secondary'
,
remixIdeThemes
.
light
.
secondary
)
...
...
@@ -91,7 +80,7 @@ module.exports = {
'Should load Cerulean theme'
:
function
(
browser
:
NightwatchBrowser
)
{
browser
.
waitForElementVisible
(
'*[data-id="verticalIconsKindsettings"]'
,
5000
)
.
click
(
'*[data-id="settingsTabThemeCerulean"]'
)
.
click
(
'*[data-id="settingsTabTheme
Label
Cerulean"]'
)
.
pause
(
5000
)
.
checkElementStyle
(
':root'
,
'--primary'
,
remixIdeThemes
.
curelean
.
primary
)
.
checkElementStyle
(
':root'
,
'--secondary'
,
remixIdeThemes
.
curelean
.
secondary
)
...
...
@@ -103,7 +92,7 @@ module.exports = {
'Should load Flatly theme'
:
function
(
browser
:
NightwatchBrowser
)
{
browser
.
waitForElementVisible
(
'*[data-id="verticalIconsKindsettings"]'
,
5000
)
.
click
(
'*[data-id="settingsTabThemeFlatly"]'
)
.
click
(
'*[data-id="settingsTabTheme
Label
Flatly"]'
)
.
pause
(
2000
)
.
checkElementStyle
(
':root'
,
'--primary'
,
remixIdeThemes
.
flatly
.
primary
)
.
checkElementStyle
(
':root'
,
'--secondary'
,
remixIdeThemes
.
flatly
.
secondary
)
...
...
@@ -115,7 +104,7 @@ module.exports = {
'Should load Lumen theme'
:
function
(
browser
:
NightwatchBrowser
)
{
browser
.
waitForElementVisible
(
'*[data-id="verticalIconsKindsettings"]'
,
5000
)
.
click
(
'*[data-id="settingsTabThemeLumen"]'
)
.
click
(
'*[data-id="settingsTabThemeL
abelL
umen"]'
)
.
pause
(
2000
)
.
checkElementStyle
(
':root'
,
'--primary'
,
remixIdeThemes
.
lumen
.
primary
)
.
checkElementStyle
(
':root'
,
'--secondary'
,
remixIdeThemes
.
lumen
.
secondary
)
...
...
@@ -127,7 +116,7 @@ module.exports = {
'Should load Minty theme'
:
function
(
browser
:
NightwatchBrowser
)
{
browser
.
waitForElementVisible
(
'*[data-id="verticalIconsKindsettings"]'
,
5000
)
.
click
(
'*[data-id="settingsTabThemeMinty"]'
)
.
click
(
'*[data-id="settingsTabTheme
Label
Minty"]'
)
.
pause
(
2000
)
.
checkElementStyle
(
':root'
,
'--primary'
,
remixIdeThemes
.
minty
.
primary
)
.
checkElementStyle
(
':root'
,
'--secondary'
,
remixIdeThemes
.
minty
.
secondary
)
...
...
@@ -139,7 +128,7 @@ module.exports = {
'Should load Pulse theme'
:
function
(
browser
:
NightwatchBrowser
)
{
browser
.
waitForElementVisible
(
'*[data-id="verticalIconsKindsettings"]'
,
5000
)
.
click
(
'*[data-id="settingsTabThemePulse"]'
)
.
click
(
'*[data-id="settingsTabTheme
Label
Pulse"]'
)
.
pause
(
2000
)
.
checkElementStyle
(
':root'
,
'--primary'
,
remixIdeThemes
.
pulse
.
primary
)
.
checkElementStyle
(
':root'
,
'--secondary'
,
remixIdeThemes
.
pulse
.
secondary
)
...
...
@@ -151,7 +140,7 @@ module.exports = {
'Should load Sandstone theme'
:
function
(
browser
:
NightwatchBrowser
)
{
browser
.
waitForElementVisible
(
'*[data-id="verticalIconsKindsettings"]'
,
5000
)
.
click
(
'*[data-id="settingsTabThemeSandstone"]'
)
.
click
(
'*[data-id="settingsTabTheme
Label
Sandstone"]'
)
.
pause
(
2000
)
.
checkElementStyle
(
':root'
,
'--primary'
,
remixIdeThemes
.
sandstone
.
primary
)
.
checkElementStyle
(
':root'
,
'--secondary'
,
remixIdeThemes
.
sandstone
.
secondary
)
...
...
@@ -163,7 +152,7 @@ module.exports = {
'Should load Spacelab theme'
:
function
(
browser
:
NightwatchBrowser
)
{
browser
.
waitForElementVisible
(
'*[data-id="verticalIconsKindsettings"]'
,
5000
)
.
click
(
'*[data-id="settingsTabThemeSpacelab"]'
)
.
click
(
'*[data-id="settingsTabTheme
Label
Spacelab"]'
)
.
pause
(
2000
)
.
checkElementStyle
(
':root'
,
'--primary'
,
remixIdeThemes
.
spacelab
.
primary
)
.
checkElementStyle
(
':root'
,
'--secondary'
,
remixIdeThemes
.
spacelab
.
secondary
)
...
...
@@ -175,7 +164,7 @@ module.exports = {
'Should load Yeti theme'
:
function
(
browser
:
NightwatchBrowser
)
{
browser
.
waitForElementVisible
(
'*[data-id="verticalIconsKindsettings"]'
,
5000
)
.
click
(
'*[data-id="settingsTabThemeYeti"]'
)
.
click
(
'*[data-id="settingsTabTheme
Label
Yeti"]'
)
.
pause
(
2000
)
.
checkElementStyle
(
':root'
,
'--primary'
,
remixIdeThemes
.
yeti
.
primary
)
.
checkElementStyle
(
':root'
,
'--secondary'
,
remixIdeThemes
.
yeti
.
secondary
)
...
...
@@ -187,7 +176,7 @@ module.exports = {
'Should load Cyborg theme'
:
function
(
browser
:
NightwatchBrowser
)
{
browser
.
waitForElementVisible
(
'*[data-id="verticalIconsKindsettings"]'
,
5000
)
.
click
(
'*[data-id="settingsTabThemeCyborg"]'
)
.
click
(
'*[data-id="settingsTabTheme
Label
Cyborg"]'
)
.
pause
(
2000
)
.
checkElementStyle
(
':root'
,
'--primary'
,
remixIdeThemes
.
cyborg
.
primary
)
.
checkElementStyle
(
':root'
,
'--secondary'
,
remixIdeThemes
.
cyborg
.
secondary
)
...
...
@@ -199,7 +188,7 @@ module.exports = {
'Should load Darkly theme'
:
function
(
browser
:
NightwatchBrowser
)
{
browser
.
waitForElementVisible
(
'*[data-id="verticalIconsKindsettings"]'
,
5000
)
.
click
(
'*[data-id="settingsTabThemeDarkly"]'
)
.
click
(
'*[data-id="settingsTabTheme
Label
Darkly"]'
)
.
pause
(
2000
)
.
checkElementStyle
(
':root'
,
'--primary'
,
remixIdeThemes
.
darkly
.
primary
)
.
checkElementStyle
(
':root'
,
'--secondary'
,
remixIdeThemes
.
darkly
.
secondary
)
...
...
@@ -211,7 +200,7 @@ module.exports = {
'Should load Superhero theme'
:
function
(
browser
:
NightwatchBrowser
)
{
browser
.
waitForElementVisible
(
'*[data-id="verticalIconsKindsettings"]'
,
5000
)
.
click
(
'*[data-id="settingsTabThemeSuperhero"]'
)
.
click
(
'*[data-id="settingsTabTheme
Label
Superhero"]'
)
.
pause
(
2000
)
.
checkElementStyle
(
':root'
,
'--primary'
,
remixIdeThemes
.
superhero
.
primary
)
.
checkElementStyle
(
':root'
,
'--secondary'
,
remixIdeThemes
.
superhero
.
secondary
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment