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
020a0c35
Commit
020a0c35
authored
Oct 19, 2021
by
ioedeveloper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
execute click command in e2e
parent
7110cac0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
5 deletions
+3
-5
gist.spec.ts
apps/remix-ide-e2e/src/tests/gist.spec.ts
+1
-2
solidityUnittests.spec.ts
apps/remix-ide-e2e/src/tests/solidityUnittests.spec.ts
+1
-2
workspace.test.ts
apps/remix-ide-e2e/src/tests/workspace.test.ts
+1
-1
No files found.
apps/remix-ide-e2e/src/tests/gist.spec.ts
View file @
020a0c35
...
@@ -104,8 +104,7 @@ module.exports = {
...
@@ -104,8 +104,7 @@ module.exports = {
.
waitForElementVisible
(
'*[data-id="fileExplorerNewFilepublishToGist"]'
)
.
waitForElementVisible
(
'*[data-id="fileExplorerNewFilepublishToGist"]'
)
.
click
(
'*[data-id="fileExplorerNewFilepublishToGist"]'
)
.
click
(
'*[data-id="fileExplorerNewFilepublishToGist"]'
)
.
waitForElementVisible
(
'[data-id="fileSystemModalDialogModalFooter-react"] .modal-ok'
)
.
waitForElementVisible
(
'[data-id="fileSystemModalDialogModalFooter-react"] .modal-ok'
)
.
click
(
'[data-id="fileSystemModalDialogModalFooter-react"]'
)
// focus on footer to ensure ok click
.
execute
(
function
()
{
(
document
.
querySelector
(
'[data-id="fileSystemModalDialogModalFooter-react"] .modal-ok'
)
as
HTMLElement
).
click
()
})
.
click
(
'[data-id="fileSystemModalDialogModalFooter-react"] .modal-ok'
)
.
pause
(
10000
)
.
pause
(
10000
)
.
perform
((
done
)
=>
{
.
perform
((
done
)
=>
{
browser
.
getText
(
'[data-id="fileSystemModalDialogModalBody-react"]'
,
(
result
)
=>
{
browser
.
getText
(
'[data-id="fileSystemModalDialogModalBody-react"]'
,
(
result
)
=>
{
...
...
apps/remix-ide-e2e/src/tests/solidityUnittests.spec.ts
View file @
020a0c35
...
@@ -166,7 +166,7 @@ module.exports = {
...
@@ -166,7 +166,7 @@ module.exports = {
// eslint-disable-next-line dot-notation
// eslint-disable-next-line dot-notation
.
execute
(
function
()
{
document
.
querySelector
(
'*[data-id="modalDialogCustomPromptTextCreate"]'
)[
'value'
]
=
'workspace_new'
})
.
execute
(
function
()
{
document
.
querySelector
(
'*[data-id="modalDialogCustomPromptTextCreate"]'
)[
'value'
]
=
'workspace_new'
})
.
waitForElementVisible
(
'*[data-id="fileSystem-modal-footer-ok-react"]'
)
.
waitForElementVisible
(
'*[data-id="fileSystem-modal-footer-ok-react"]'
)
.
click
(
'*[data-id="fileSystem-modal-footer-ok-react"]'
)
.
execute
(
function
()
{
(
document
.
querySelector
(
'[data-id="fileSystem-modal-footer-ok-react"]'
)
as
HTMLElement
).
click
()
}
)
.
waitForElementPresent
(
'*[data-id="workspacesSelect"] option[value="workspace_new"]'
)
.
waitForElementPresent
(
'*[data-id="workspacesSelect"] option[value="workspace_new"]'
)
// end of creating
// end of creating
.
clickLaunchIcon
(
'solidityUnitTesting'
)
.
clickLaunchIcon
(
'solidityUnitTesting'
)
...
@@ -201,7 +201,6 @@ module.exports = {
...
@@ -201,7 +201,6 @@ module.exports = {
if
(
runtimeBrowser
!==
'chrome'
)
{
if
(
runtimeBrowser
!==
'chrome'
)
{
browser
.
clickLaunchIcon
(
'filePanel'
)
browser
.
clickLaunchIcon
(
'filePanel'
)
.
waitForElementVisible
(
'[data-id="treeViewLitreeViewItemtests"]'
)
.
waitForElementVisible
(
'[data-id="treeViewLitreeViewItemtests"]'
)
.
click
(
'[data-id="treeViewLitreeViewItemtests"]'
)
}
}
done
()
done
()
})
})
...
...
apps/remix-ide-e2e/src/tests/workspace.test.ts
View file @
020a0c35
...
@@ -68,7 +68,7 @@ module.exports = {
...
@@ -68,7 +68,7 @@ module.exports = {
// 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="fileSystemModalDialogModalFooter-react"] .modal-ok'
)
.
waitForElementPresent
(
'[data-id="fileSystemModalDialogModalFooter-react"] .modal-ok'
)
.
click
(
'[data-id="fileSystemModalDialogModalFooter-react"] .modal-ok'
)
.
execute
(
function
()
{
(
document
.
querySelector
(
'[data-id="fileSystemModalDialogModalFooter-react"] .modal-ok'
)
as
HTMLElement
).
click
()
}
)
.
waitForElementPresent
(
'*[data-id="workspacesSelect"] option[value="workspace_name_1"]'
)
.
waitForElementPresent
(
'*[data-id="workspacesSelect"] option[value="workspace_name_1"]'
)
.
click
(
'*[data-id="workspacesSelect"] option[value="workspace_name_1"]'
)
.
click
(
'*[data-id="workspacesSelect"] option[value="workspace_name_1"]'
)
.
pause
(
2000
)
.
pause
(
2000
)
...
...
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