Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
f00f91bf
Commit
f00f91bf
authored
Apr 30, 2020
by
ioedeveloper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Switched from Ropsten testnet to Goerli testnet
parent
bbde84f2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
11 deletions
+10
-11
.env
.env
+3
-3
runAndDeploy.js
test-browser/tests/runAndDeploy.js
+7
-8
No files found.
.env
View file @
f00f91bf
gist_token = <token>
gist_token = <token>
account_passphrase = <passphrase>
account_passphrase = explain uniform adapt basic blue onion rebel pull rice erase volcano couple
account_password = <password>
account_password = remix_is_cool
\ No newline at end of file
\ No newline at end of file
test-browser/tests/runAndDeploy.js
View file @
f00f91bf
...
@@ -17,7 +17,6 @@ module.exports = {
...
@@ -17,7 +17,6 @@ module.exports = {
'Should load run and deploy tab'
:
function
(
browser
)
{
'Should load run and deploy tab'
:
function
(
browser
)
{
browser
.
waitForElementPresent
(
'*[data-id="remixIdeSidePanel"]'
)
browser
.
waitForElementPresent
(
'*[data-id="remixIdeSidePanel"]'
)
.
pause
(
3000
)
.
clickLaunchIcon
(
'udapp'
)
.
clickLaunchIcon
(
'udapp'
)
.
waitForElementPresent
(
'*[data-id="sidePanelSwapitTitle"]'
)
.
waitForElementPresent
(
'*[data-id="sidePanelSwapitTitle"]'
)
.
assert
.
containsText
(
'*[data-id="sidePanelSwapitTitle"]'
,
'DEPLOY & RUN TRANSACTIONS'
)
.
assert
.
containsText
(
'*[data-id="sidePanelSwapitTitle"]'
,
'DEPLOY & RUN TRANSACTIONS'
)
...
@@ -67,11 +66,11 @@ module.exports = {
...
@@ -67,11 +66,11 @@ module.exports = {
})
})
},
},
'Should connect to
Ropsten
Test Network using MetaMask'
:
function
(
browser
)
{
'Should connect to
Goerli
Test Network using MetaMask'
:
function
(
browser
)
{
browser
.
waitForElementPresent
(
'*[data-id="remixIdeSidePanel"]'
)
browser
.
waitForElementPresent
(
'*[data-id="remixIdeSidePanel"]'
)
.
setupMetamask
(
passphrase
,
password
)
.
setupMetamask
(
passphrase
,
password
)
.
click
(
'.network-indicator__down-arrow'
)
.
click
(
'.network-indicator__down-arrow'
)
.
useXpath
().
click
(
"//span[text()='
Ropsten
Test Network']"
)
.
useXpath
().
click
(
"//span[text()='
Goerli
Test Network']"
)
.
useCss
().
switchBrowserTab
(
0
)
.
useCss
().
switchBrowserTab
(
0
)
.
refresh
()
.
refresh
()
.
waitForElementVisible
(
'*[data-id="remixIdeIconPanel"]'
,
10000
)
.
waitForElementVisible
(
'*[data-id="remixIdeIconPanel"]'
,
10000
)
...
@@ -81,14 +80,14 @@ module.exports = {
...
@@ -81,14 +80,14 @@ module.exports = {
.
waitForElementPresent
(
'*[data-id="settingsSelectEnvOptions"]'
)
.
waitForElementPresent
(
'*[data-id="settingsSelectEnvOptions"]'
)
.
click
(
'*[data-id="settingsSelectEnvOptions"] option[id="injected-mode"]'
)
.
click
(
'*[data-id="settingsSelectEnvOptions"] option[id="injected-mode"]'
)
.
waitForElementPresent
(
'*[data-id="settingsNetworkEnv"]'
)
.
waitForElementPresent
(
'*[data-id="settingsNetworkEnv"]'
)
.
assert
.
containsText
(
'*[data-id="settingsNetworkEnv"]'
,
'
Ropsten (3
) network'
)
.
assert
.
containsText
(
'*[data-id="settingsNetworkEnv"]'
,
'
Goerli (5
) network'
)
.
switchBrowserTab
(
2
)
.
switchBrowserTab
(
2
)
.
waitForElementPresent
(
'.page-container__footer-button:nth-of-type(2)'
)
.
waitForElementPresent
(
'.page-container__footer-button:nth-of-type(2)'
)
.
click
(
'.page-container__footer-button:nth-of-type(2)'
)
.
click
(
'.page-container__footer-button:nth-of-type(2)'
)
.
switchBrowserTab
(
0
)
.
switchBrowserTab
(
0
)
},
},
'Should deploy contract on
Ropsten
Test Network using MetaMask'
:
function
(
browser
)
{
'Should deploy contract on
Goerli
Test Network using MetaMask'
:
function
(
browser
)
{
browser
.
waitForElementPresent
(
'*[data-id="runTabSelectAccount"] option'
)
browser
.
waitForElementPresent
(
'*[data-id="runTabSelectAccount"] option'
)
.
clickLaunchIcon
(
'fileExplorers'
)
.
clickLaunchIcon
(
'fileExplorers'
)
.
switchFile
(
'browser/Greet.sol'
)
.
switchFile
(
'browser/Greet.sol'
)
...
@@ -101,11 +100,11 @@ module.exports = {
...
@@ -101,11 +100,11 @@ module.exports = {
.
waitForElementPresent
(
'.page-container__footer-button:nth-of-type(2)'
)
.
waitForElementPresent
(
'.page-container__footer-button:nth-of-type(2)'
)
.
click
(
'.page-container__footer-button:nth-of-type(2)'
)
.
click
(
'.page-container__footer-button:nth-of-type(2)'
)
.
waitForElementPresent
(
'.transaction-status--submitted'
)
.
waitForElementPresent
(
'.transaction-status--submitted'
)
.
pause
(
6
0000
)
.
pause
(
3
0000
)
.
switchBrowserTab
(
0
)
.
switchBrowserTab
(
0
)
},
},
'Should run low level interaction (fallback function) on
Ropsten
Test Network using MetaMask'
:
function
(
browser
)
{
'Should run low level interaction (fallback function) on
Goerli
Test Network using MetaMask'
:
function
(
browser
)
{
browser
.
waitForElementPresent
(
'*[data-id="remixIdeSidePanel"]'
)
browser
.
waitForElementPresent
(
'*[data-id="remixIdeSidePanel"]'
)
.
waitForElementPresent
(
'*[data-id="universalDappUiTitleExpander"]'
)
.
waitForElementPresent
(
'*[data-id="universalDappUiTitleExpander"]'
)
.
click
(
'*[data-id="universalDappUiTitleExpander"]'
)
.
click
(
'*[data-id="universalDappUiTitleExpander"]'
)
...
@@ -117,7 +116,7 @@ module.exports = {
...
@@ -117,7 +116,7 @@ module.exports = {
.
waitForElementPresent
(
'.page-container__footer-button:nth-of-type(2)'
)
.
waitForElementPresent
(
'.page-container__footer-button:nth-of-type(2)'
)
.
click
(
'.page-container__footer-button:nth-of-type(2)'
)
.
click
(
'.page-container__footer-button:nth-of-type(2)'
)
.
waitForElementPresent
(
'.transaction-status--submitted'
)
.
waitForElementPresent
(
'.transaction-status--submitted'
)
.
pause
(
6
0000
)
.
pause
(
3
0000
)
.
switchBrowserTab
(
0
)
.
switchBrowserTab
(
0
)
},
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment