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
a4e470e2
Unverified
Commit
a4e470e2
authored
Feb 11, 2021
by
yann300
Committed by
GitHub
Feb 11, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #863 from ethereum/watch-e2e
Add negative test for publish to gist with missing gist token.
parents
5ca37ec0
3c7cc06e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
0 deletions
+30
-0
gist.test.ts
apps/remix-ide-e2e/src/tests/gist.test.ts
+23
-0
nodemon.json
nodemon.json
+6
-0
package.json
package.json
+1
-0
No files found.
apps/remix-ide-e2e/src/tests/gist.test.ts
View file @
a4e470e2
...
...
@@ -87,9 +87,32 @@ module.exports = {
.
modalFooterOKClick
()
},
'Display Error Message For Missing Gist Token When Publishing'
:
function
(
browser
:
NightwatchBrowser
)
{
browser
.
waitForElementVisible
(
'*[data-id="remixIdeIconPanel"]'
,
10000
)
.
clickLaunchIcon
(
'settings'
)
.
waitForElementVisible
(
'[data-id="settingsTabRemoveGistToken"]'
)
.
click
(
'[data-id="settingsTabRemoveGistToken"]'
)
.
clickLaunchIcon
(
'fileExplorers'
)
.
waitForElementVisible
(
'*[data-id="fileExplorerNewFilepublishToGist"]'
)
.
click
(
'*[data-id="fileExplorerNewFilepublishToGist"]'
)
.
waitForElementVisible
(
'*[data-id="browserModalDialogContainer-react"]'
)
.
pause
(
2000
)
.
click
(
'.modal-ok'
)
.
pause
(
10000
)
.
getText
(
'[data-id="browserModalDialogModalBody-react"]'
,
(
result
)
=>
{
browser
.
assert
.
ok
(
result
.
value
===
'Remix requires an access token (which includes gists creation permission). Please go to the settings tab to create one.'
,
'Assert failed. Gist token error message not displayed.'
)
})
.
click
(
'[data-id="browser-modal-footer-ok-react"]'
)
},
'Import From Gist For Valid Gist ID'
:
function
(
browser
:
NightwatchBrowser
)
{
browser
.
waitForElementVisible
(
'*[data-id="remixIdeIconPanel"]'
,
10000
)
.
clickLaunchIcon
(
'settings'
)
.
click
(
'*[data-id="settingsTabGenerateContractMetadataLabel"]'
)
.
setValue
(
'[data-id="settingsTabGistAccessToken"]'
,
process
.
env
.
gist_token
)
.
click
(
'[data-id="settingsTabSaveGistToken"]'
)
.
clickLaunchIcon
(
'fileExplorers'
)
.
scrollAndClick
(
'*[data-id="landingPageImportFromGistButton"]'
)
.
waitForElementVisible
(
'*[data-id="modalDialogCustomPromptText"]'
)
...
...
nodemon.json
0 → 100644
View file @
a4e470e2
{
"watch"
:
[
"./apps/remix-ide-e2e/src"
],
"ext"
:
"ts"
,
"exec"
:
"tsc -p apps/remix-ide-e2e/tsconfig.e2e.json"
}
\ No newline at end of file
package.json
View file @
a4e470e2
...
...
@@ -46,6 +46,7 @@
"test:libs"
:
"nx run-many --target=test --projects=remix-analyzer,remix-astwalker,remix-debug,remix-lib,remix-simulator,remix-solidity,remix-tests,remix-url-resolver,remixd"
,
"publish:libs"
:
"npm run build:libs & lerna publish --skip-git & npm run bumpVersion:libs"
,
"build:e2e"
:
"tsc -p apps/remix-ide-e2e/tsconfig.e2e.json"
,
"watch:e2e"
:
"nodemon"
,
"bumpVersion:libs"
:
"gulp & gulp syncLibVersions;"
,
"browsertest"
:
"sleep 5 && npm run nightwatch_local"
,
"csslint"
:
"csslint --ignore=order-alphabetical --errors='errors,duplicate-properties,empty-rules' --exclude-list='apps/remix-ide/src/assets/css/font-awesome.min.css' apps/remix-ide/src/assets/css/"
,
...
...
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