fix e2e tests

pull/4525/head
Joseph Izang 9 months ago
parent e2fc02010a
commit ef73a56817
  1. 11
      apps/remix-ide-e2e/src/tests/vyper_api.test.ts
  2. 2
      apps/remix-ide/src/remixAppManager.js

@ -42,11 +42,14 @@ module.exports = {
}, },
'Context menu click to compile blind_auction should succeed #group1': function (browser: NightwatchBrowser) { 'Context menu click to compile blind_auction should succeed #group1': function (browser: NightwatchBrowser) {
browser.clickLaunchIcon('vyper') browser
.click('*[data-id="treeViewLitreeViewItemexamples/auctions/blind_auction.vy"]')
.rightClick('*[data-id="treeViewLitreeViewItemexamples/auctions/blind_auction.vy"]')
.waitForElementPresent('[data-id="contextMenuItemvyper"]')
.click('[data-id="contextMenuItemvyper"]')
.clickLaunchIcon('vyper')
// @ts-ignore // @ts-ignore
.frame(0) .frame(0)
.click('[data-id="remote-compiler"]')
.click('[data-id="compile"]')
.waitForElementVisible({ .waitForElementVisible({
selector:'[data-id="compilation-details"]', selector:'[data-id="compilation-details"]',
timeout: 120000 timeout: 120000
@ -61,7 +64,7 @@ module.exports = {
}, },
'Compile blind_auction should success #group1': function (browser: NightwatchBrowser) { 'Compile blind_auction should success #group1': function (browser: NightwatchBrowser) {
browser.clickLaunchIcon('vyper') browser
// @ts-ignore // @ts-ignore
.frame(0) .frame(0)
.click('[data-id="remote-compiler"]') .click('[data-id="remote-compiler"]')

@ -334,7 +334,7 @@ export class RemixAppManager extends PluginManager {
await this.call('filePanel', 'registerContextMenuItem', { await this.call('filePanel', 'registerContextMenuItem', {
id: 'vyper', id: 'vyper',
name: 'vyperCompileCustomAction', name: 'vyperCompileCustomAction',
label: 'Compile vyper', label: 'Compile for Vyper',
type: [], type: [],
extension: ['.vy'], extension: ['.vy'],
path: [], path: [],

Loading…
Cancel
Save