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
7aeb5a75
Commit
7aeb5a75
authored
Oct 13, 2021
by
filip mertens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compilerversion
parent
a6341f36
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
plugin-api.test.ts
apps/remix-ide-e2e/src/local-plugin/tests/plugin-api.test.ts
+12
-0
No files found.
apps/remix-ide-e2e/src/local-plugin/tests/plugin-api.test.ts
View file @
7aeb5a75
...
@@ -16,6 +16,16 @@ interface dataIdSelectorInterface extends Selector {
...
@@ -16,6 +16,16 @@ interface dataIdSelectorInterface extends Selector {
select
(
id
:
string
):
Promise
<
any
>
select
(
id
:
string
):
Promise
<
any
>
}
}
const
setCompilerVersion
=
async
(
t
:
TestController
,
version
:
string
)
=>
{
const
citySelect
=
Selector
(
'#versionSelector'
)
const
cityOption
=
citySelect
.
find
(
'option'
)
await
t
.
click
(
citySelect
).
click
(
cityOption
.
withAttribute
(
'value'
,
'builtin'
))
}
const
ClickLaunchIcon
=
async
(
t
:
TestController
,
icon
:
string
)
=>
{
await
t
.
click
(
'#icon-panel div[plugin="'
+
icon
+
'"]'
)
// .click('#icon-panel div[plugin="' + icon + '"]')
}
const
dataIdSelector
=
async
(
id
:
string
)
=>
{
return
Selector
(
`[data-id="
${
id
}
"]`
)
}
const
dataIdSelector
=
async
(
id
:
string
)
=>
{
return
Selector
(
`[data-id="
${
id
}
"]`
)
}
const
installPlugin
=
async
(
t
:
TestController
,
profile
:
Profile
&
LocationProfile
&
ExternalProfile
)
=>
{
const
installPlugin
=
async
(
t
:
TestController
,
profile
:
Profile
&
LocationProfile
&
ExternalProfile
)
=>
{
...
@@ -54,6 +64,8 @@ test('install plugin', async t => {
...
@@ -54,6 +64,8 @@ test('install plugin', async t => {
await
t
.
click
(
Selector
(
'Button'
).
withText
(
'Sure'
))
await
t
.
click
(
Selector
(
'Button'
).
withText
(
'Sure'
))
}
}
await
t
.
click
(
'.introjs-skipbutton'
)
await
t
.
click
(
'.introjs-skipbutton'
)
// await ClickLaunchIcon(t, 'solidity')
// await setCompilerVersion(t, 'builtin')
await
installPlugin
(
t
,
localPluginData
)
await
installPlugin
(
t
,
localPluginData
)
})
})
...
...
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