From caa696a0ebc2697a73ed9714dfc0eb3f9ab77472 Mon Sep 17 00:00:00 2001 From: filip mertens Date: Wed, 13 Oct 2021 20:10:15 +0200 Subject: [PATCH] compilerversion --- .../src/local-plugin/tests/plugin-api.test.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/apps/remix-ide-e2e/src/local-plugin/tests/plugin-api.test.ts b/apps/remix-ide-e2e/src/local-plugin/tests/plugin-api.test.ts index 342bcf844c..9f723f0f82 100644 --- a/apps/remix-ide-e2e/src/local-plugin/tests/plugin-api.test.ts +++ b/apps/remix-ide-e2e/src/local-plugin/tests/plugin-api.test.ts @@ -16,6 +16,16 @@ interface dataIdSelectorInterface extends Selector { select(id: string): Promise } +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 installPlugin = async (t: TestController, profile: Profile & LocationProfile & ExternalProfile) => { @@ -54,6 +64,8 @@ test('install plugin', async t => { await t.click(Selector('Button').withText('Sure')) } await t.click('.introjs-skipbutton') + // await ClickLaunchIcon(t, 'solidity') + // await setCompilerVersion(t, 'builtin') await installPlugin(t, localPluginData) })