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
fe7357e1
Commit
fe7357e1
authored
Dec 09, 2020
by
aniket-engg
Committed by
Aniket
Dec 11, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
editor tests fixed
parent
7727cfde
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
editor.test.ts
apps/remix-ide-e2e/src/tests/editor.test.ts
+12
-10
No files found.
apps/remix-ide-e2e/src/tests/editor.test.ts
View file @
fe7357e1
...
@@ -14,7 +14,7 @@ module.exports = {
...
@@ -14,7 +14,7 @@ module.exports = {
browser
.
waitForElementVisible
(
'div[data-id="mainPanelPluginsContainer"]'
)
browser
.
waitForElementVisible
(
'div[data-id="mainPanelPluginsContainer"]'
)
.
clickLaunchIcon
(
'fileExplorers'
)
.
clickLaunchIcon
(
'fileExplorers'
)
.
waitForElementVisible
(
'div[data-id="filePanelFileExplorerTree"]'
)
.
waitForElementVisible
(
'div[data-id="filePanelFileExplorerTree"]'
)
.
click
(
'*[data-id="treeView
Toggle
browser/contracts"]'
)
.
click
(
'*[data-id="treeView
Li
browser/contracts"]'
)
.
openFile
(
'browser/contracts/1_Storage.sol'
)
.
openFile
(
'browser/contracts/1_Storage.sol'
)
.
waitForElementVisible
(
'*[data-id="editorInput"]'
)
.
waitForElementVisible
(
'*[data-id="editorInput"]'
)
.
checkElementStyle
(
'*[data-id="editorInput"]'
,
'font-size'
,
'12px'
)
.
checkElementStyle
(
'*[data-id="editorInput"]'
,
'font-size'
,
'12px'
)
...
@@ -31,14 +31,14 @@ module.exports = {
...
@@ -31,14 +31,14 @@ module.exports = {
.
checkElementStyle
(
'*[data-id="editorInput"]'
,
'font-size'
,
'12px'
)
.
checkElementStyle
(
'*[data-id="editorInput"]'
,
'font-size'
,
'12px'
)
},
},
'Should display compile error in editor'
:
function
(
browser
:
NightwatchBrowser
)
{
//
'Should display compile error in editor': function (browser: NightwatchBrowser) {
browser
.
waitForElementVisible
(
'*[data-id="editorInput"]'
)
//
browser.waitForElementVisible('*[data-id="editorInput"]')
.
waitForElementVisible
(
'*[class="ace_content"]'
)
//
.waitForElementVisible('*[class="ace_content"]')
.
click
(
'*[class="ace_content"]'
)
//
.click('*[class="ace_content"]')
.
sendKeys
(
'*[class="ace_text-input"]'
,
'error'
)
//
.sendKeys('*[class="ace_text-input"]', 'error')
.
pause
(
2000
)
//
.pause(2000)
.
waitForElementVisible
(
'.ace_error'
)
//
.waitForElementVisible('.ace_error')
},
//
},
'Should minimize and maximize codeblock in editor'
:
function
(
browser
:
NightwatchBrowser
)
{
'Should minimize and maximize codeblock in editor'
:
function
(
browser
:
NightwatchBrowser
)
{
browser
.
waitForElementVisible
(
'*[data-id="editorInput"]'
)
browser
.
waitForElementVisible
(
'*[data-id="editorInput"]'
)
...
@@ -100,9 +100,11 @@ module.exports = {
...
@@ -100,9 +100,11 @@ module.exports = {
.
click
(
'li[key="browser/removeSourcehighlightScript.js"]'
)
.
click
(
'li[key="browser/removeSourcehighlightScript.js"]'
)
.
pause
(
2000
)
.
pause
(
2000
)
.
executeScript
(
'remix.exeCurrent()'
)
.
executeScript
(
'remix.exeCurrent()'
)
.
waitForElementVisible
(
'li[key="browser/contracts"]'
)
.
click
(
'li[key="browser/contracts"]'
)
// files don't appear, so we click twice to get the files
.
click
(
'li[key="browser/contracts"]'
)
.
waitForElementVisible
(
'li[key="browser/contracts/3_Ballot.sol"]'
)
.
waitForElementVisible
(
'li[key="browser/contracts/3_Ballot.sol"]'
)
.
click
(
'li[key="browser/contracts/3_Ballot.sol"]'
)
.
click
(
'li[key="browser/contracts/3_Ballot.sol"]'
)
.
pause
(
2000
)
.
waitForElementNotPresent
(
'.highlightLine32'
)
.
waitForElementNotPresent
(
'.highlightLine32'
)
.
checkElementStyle
(
'.highlightLine40'
,
'background-color'
,
'rgb(8, 108, 181)'
)
.
checkElementStyle
(
'.highlightLine40'
,
'background-color'
,
'rgb(8, 108, 181)'
)
.
checkElementStyle
(
'.highlightLine50'
,
'background-color'
,
'rgb(8, 108, 181)'
)
.
checkElementStyle
(
'.highlightLine50'
,
'background-color'
,
'rgb(8, 108, 181)'
)
...
...
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