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
929f21d0
Commit
929f21d0
authored
Sep 08, 2021
by
davidzagi93@gmail.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added waitForElementToPresent in workspace test
parent
1d770cd9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
workspace.test.ts
apps/remix-ide-e2e/src/tests/workspace.test.ts
+6
-5
No files found.
apps/remix-ide-e2e/src/tests/workspace.test.ts
View file @
929f21d0
...
@@ -51,8 +51,8 @@ module.exports = {
...
@@ -51,8 +51,8 @@ module.exports = {
.
waitForElementVisible
(
'*[data-id="modalDialogCustomPromptTextCreate"]'
)
.
waitForElementVisible
(
'*[data-id="modalDialogCustomPromptTextCreate"]'
)
// eslint-disable-next-line dot-notation
// eslint-disable-next-line dot-notation
.
execute
(
function
()
{
document
.
querySelector
(
'*[data-id="modalDialogCustomPromptTextCreate"]'
)[
'value'
]
=
'workspace_name_1'
})
.
execute
(
function
()
{
document
.
querySelector
(
'*[data-id="modalDialogCustomPromptTextCreate"]'
)[
'value'
]
=
'workspace_name_1'
})
.
waitForElementPresent
(
'
span[data-id="workspacesModalDialog-modal-footer-ok
-react"] .modal-ok'
)
.
waitForElementPresent
(
'
*[data-id="workspacesModalDialogModalDialogModalFooter
-react"] .modal-ok'
)
.
click
(
'
span[data-id="workspacesModalDialog-modal-footer-ok
-react"] .modal-ok'
)
.
click
(
'
*[data-id="workspacesModalDialogModalDialogModalFooter
-react"] .modal-ok'
)
.
waitForElementVisible
(
'*[data-id="treeViewLitreeViewItemtests"]'
)
.
waitForElementVisible
(
'*[data-id="treeViewLitreeViewItemtests"]'
)
.
pause
(
1000
)
.
pause
(
1000
)
.
waitForElementNotPresent
(
'*[data-id="treeViewLitreeViewItemtest.sol"]'
)
.
waitForElementNotPresent
(
'*[data-id="treeViewLitreeViewItemtest.sol"]'
)
...
@@ -67,8 +67,9 @@ module.exports = {
...
@@ -67,8 +67,9 @@ module.exports = {
.
waitForElementVisible
(
'*[data-id="modalDialogCustomPromptTextRename"]'
)
.
waitForElementVisible
(
'*[data-id="modalDialogCustomPromptTextRename"]'
)
// eslint-disable-next-line dot-notation
// eslint-disable-next-line dot-notation
.
execute
(
function
()
{
document
.
querySelector
(
'*[data-id="modalDialogCustomPromptTextRename"]'
)[
'value'
]
=
'workspace_name_renamed'
})
.
execute
(
function
()
{
document
.
querySelector
(
'*[data-id="modalDialogCustomPromptTextRename"]'
)[
'value'
]
=
'workspace_name_renamed'
})
.
waitForElementPresent
(
'*[data-id="workspacesModalDialogModalDialogModalFooter-react"] .modal-ok'
)
// span[data-id="workspacesModalDialog-modal-footer-ok-react"]
.
click
(
'*[data-id="workspacesModalDialogModalDialogModalFooter-react"] .modal-ok'
)
.
waitForElementPresent
(
'span[data-id="workspacesModalDialog-modal-footer-ok-react"]'
)
.
click
(
'span[data-id="workspacesModalDialog-modal-footer-ok-react"]'
)
.
click
(
'*[data-id="workspacesSelect"] option[value="workspace_name_1"]'
)
.
click
(
'*[data-id="workspacesSelect"] option[value="workspace_name_1"]'
)
.
pause
(
1000
)
.
pause
(
1000
)
.
waitForElementNotPresent
(
'*[data-id="treeViewLitreeViewItemtest.sol"]'
)
.
waitForElementNotPresent
(
'*[data-id="treeViewLitreeViewItemtest.sol"]'
)
...
@@ -80,7 +81,7 @@ module.exports = {
...
@@ -80,7 +81,7 @@ module.exports = {
browser
browser
.
click
(
'*[data-id="workspacesSelect"] option[value="workspace_name_1"]'
)
.
click
(
'*[data-id="workspacesSelect"] option[value="workspace_name_1"]'
)
.
click
(
'*[data-id="workspaceDelete"]'
)
// delete workspace_name_1
.
click
(
'*[data-id="workspaceDelete"]'
)
// delete workspace_name_1
.
waitForElementVisible
(
'
*[data-id="workspacesModalDialogModalDialogModalFooter-react"] .modal-ok
'
)
.
waitForElementVisible
(
'
span[data-id="workspacesModalDialog-modal-footer-ok-react"]
'
)
.
click
(
'*[data-id="workspacesModalDialogModalDialogModalFooter-react"] .modal-ok'
)
.
click
(
'*[data-id="workspacesModalDialogModalDialogModalFooter-react"] .modal-ok'
)
.
waitForElementNotPresent
(
'*[data-id="workspacesSelect"] option[value="workspace_name_1"]'
)
.
waitForElementNotPresent
(
'*[data-id="workspacesSelect"] option[value="workspace_name_1"]'
)
.
end
()
.
end
()
...
...
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