pull/4525/head
Joseph Izang 9 months ago
parent 6cbf72aa2e
commit e2fc02010a
  1. 19
      apps/remix-ide-e2e/src/tests/vyper_api.test.ts
  2. 1
      libs/remix-ui/vyper-compile-details/src/lib/vyper-compile-details.tsx

@ -41,6 +41,25 @@ module.exports = {
.openFile('examples/auctions/blind_auction.vy')
},
'Context menu click to compile blind_auction should succeed #group1': function (browser: NightwatchBrowser) {
browser.clickLaunchIcon('vyper')
// @ts-ignore
.frame(0)
.click('[data-id="remote-compiler"]')
.click('[data-id="compile"]')
.waitForElementVisible({
selector:'[data-id="compilation-details"]',
timeout: 120000
})
.click('[data-id="compilation-details"]')
.frameParent()
.waitForElementVisible('[data-id="copy-abi"]')
.waitForElementVisible({
selector: "//*[@class='variable-value' and contains(.,'highestBidder')]",
locateStrategy: 'xpath',
})
},
'Compile blind_auction should success #group1': function (browser: NightwatchBrowser) {
browser.clickLaunchIcon('vyper')
// @ts-ignore

@ -11,6 +11,7 @@ interface RemixUiVyperCompileDetailsProps {
export function RemixUiVyperCompileDetails({ payload, theme, themeStyle }: RemixUiVyperCompileDetailsProps) {
const compileResult = payload['compileResult'] ?? {}
console.log('compileResult', compileResult, payload)
const bcode = compileResult.bytecode ? compileResult.bytecode.object : ''
const runtimeBcode = compileResult.runtimeBytecode ? compileResult.runtimeBytecode.object : ''
const ir = compileResult.ir

Loading…
Cancel
Save