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
ad1270d5
Commit
ad1270d5
authored
Oct 29, 2021
by
bunsenstraat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
accept remember
parent
e5f78059
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
plugin_api.ts
apps/remix-ide-e2e/src/tests/plugin_api.ts
+10
-8
No files found.
apps/remix-ide-e2e/src/tests/plugin_api.ts
View file @
ad1270d5
...
...
@@ -75,16 +75,18 @@ const clickButton = async (browser: NightwatchBrowser, buttonText: string) => {
const
checkForAcceptAndRemember
=
async
function
(
browser
:
NightwatchBrowser
)
{
return
new
Promise
((
resolve
)
=>
{
browser
.
frameParent
().
element
(
'xpath'
,
'//*[@data-id="modalDialogModalBody"]'
,
(
visible
:
any
)
=>
{
if
(
visible
.
status
&&
visible
.
status
===
-
1
)
{
browser
.
frameParent
(()
=>
{
browser
.
pause
(
1000
).
element
(
'xpath'
,
'//*[@data-id="permissionHandlerRememberUnchecked"]'
,
(
visible
:
any
)
=>
{
if
(
visible
.
status
&&
visible
.
status
===
-
1
)
{
// @ts-ignore
browser
.
frame
(
0
,
()
=>
{
resolve
(
true
)
})
}
else
{
browser
.
waitForElementVisible
(
'//*[@id="remember"]'
).
click
(
'//*[@id="remember"]'
).
click
(
'//*[@id="modal-footer-ok"]'
,
()
=>
{
// @ts-ignore
browser
.
frame
(
0
,
()
=>
{
resolve
(
true
)
})
})
}
}
else
{
browser
.
waitForElementVisible
(
'//*[@data-id="permissionHandlerRememberUnchecked"]'
).
click
(
'//*[@data-id="permissionHandlerRememberUnchecked"]'
).
waitForElementVisible
(
'//*[@id="modal-footer-ok"]'
).
click
(
'//*[@id="modal-footer-ok"]'
,
()
=>
{
// @ts-ignore
browser
.
frame
(
0
,
()
=>
{
resolve
(
true
)
})
})
}
})
})
})
}
...
...
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