Commit 7aeb5a75 authored by filip mertens's avatar filip mertens

compilerversion

parent a6341f36
...@@ -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)
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment