commit
69d2885303
@ -0,0 +1,52 @@ |
||||
'use strict' |
||||
|
||||
import { NightwatchBrowser } from 'nightwatch' |
||||
import init from '../helpers/init' |
||||
import examples from '../examples/example-contracts' |
||||
|
||||
const sources = [ |
||||
{ 'Untitled.sol': { content: examples.ballot.content } } |
||||
] |
||||
|
||||
module.exports = { |
||||
before: function (browser: NightwatchBrowser, done: VoidFunction) { |
||||
init(browser, done) |
||||
}, |
||||
'@sources': function () { |
||||
return sources |
||||
}, |
||||
'Add Ballot': function (browser: NightwatchBrowser) { |
||||
browser |
||||
.addFile('Untitled.sol', sources[0]['Untitled.sol']) |
||||
}, |
||||
'Explain the contract': function (browser: NightwatchBrowser) { |
||||
browser |
||||
.waitForElementVisible('*[data-id="explain-editor"]') |
||||
.click('*[data-id="explain-editor"]') |
||||
.waitForElementVisible('*[data-id="popupPanelPluginsContainer"]') |
||||
.waitForElementVisible('*[data-id="aichat-view"]') |
||||
.waitForElementVisible({ |
||||
locateStrategy: 'xpath', |
||||
selector: '//*[@data-id="aichat-view" and contains(.,"Explain the current code")]' |
||||
}) |
||||
}, |
||||
'close the popup': function (browser: NightwatchBrowser) { |
||||
browser |
||||
.waitForElementVisible('*[data-id="popupPanelToggle"]') |
||||
.click('*[data-id="popupPanelToggle"]') |
||||
.waitForElementNotVisible('*[data-id="popupPanelPluginsContainer"]') |
||||
}, |
||||
'Add a bad contract': function (browser: NightwatchBrowser) { |
||||
browser |
||||
.addFile('Bad.sol', { content: 'errors' }) |
||||
.clickLaunchIcon('solidity') |
||||
.waitForElementVisible('.ask-remix-ai-button') |
||||
.click('.ask-remix-ai-button') |
||||
.waitForElementVisible('*[data-id="popupPanelPluginsContainer"]') |
||||
.waitForElementVisible('*[data-id="aichat-view"]') |
||||
.waitForElementVisible({ |
||||
locateStrategy: 'xpath', |
||||
selector: '//*[@data-id="aichat-view" and contains(.,"Explain the error")]' |
||||
}) |
||||
} |
||||
} |
@ -1,15 +1,11 @@ |
||||
{ |
||||
"version": "v0.56.0", |
||||
"version": "v0.57.0", |
||||
"title": "RELEASE HIGHLIGHTS", |
||||
"highlight1": "Added new 'Contract Verification' plugin to verify contract on multiple platforms", |
||||
"highlight2": "Added new 'Remix Guide' plugin to learn using Remix IDE using videos", |
||||
"highlight3": "Added support for message signing using EIP712", |
||||
"highlight1": "RemixAI, the new Web3 AI Assistant", |
||||
"highlight2": "New Script Configuration plugin", |
||||
"highlight3": "Routescan added to the Contract Verification plugin", |
||||
"highlight4": "", |
||||
"more": "Read More", |
||||
"moreLink": "https://medium.com/remix-ide/remix-release-v0-56-0-574a5774f94c?source=friends_link&sk=af46111d5a9976306e5770ccc468ae28" |
||||
"moreLink": "https://medium.com/remix-ide/remix-release-v0-57-0-3c550f26f2d0?source=friends_link&sk=d713cd9ea5840454d8e8c03dbfb86f93" |
||||
} |
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in new issue