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
941d0b63
Unverified
Commit
941d0b63
authored
Jun 24, 2021
by
yann300
Committed by
GitHub
Jun 24, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stop publish to gist e2e (#1327)
parent
3ddba574
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
8 deletions
+15
-8
fileExplorer.test.ts
apps/remix-ide-e2e/src/tests/fileExplorer.test.ts
+1
-1
gist.spec.ts
apps/remix-ide-e2e/src/tests/gist.spec.ts
+14
-7
No files found.
apps/remix-ide-e2e/src/tests/fileExplorer.test.ts
View file @
941d0b63
...
@@ -74,7 +74,7 @@ module.exports = {
...
@@ -74,7 +74,7 @@ module.exports = {
.
waitForElementNotPresent
(
'*[data-id="treeViewLitreeViewItemBrowser_E2E_Tests"]'
)
.
waitForElementNotPresent
(
'*[data-id="treeViewLitreeViewItemBrowser_E2E_Tests"]'
)
},
},
'Should publish all explorer files to github gist'
:
function
(
browser
:
NightwatchBrowser
)
{
'Should publish all explorer files to github gist'
:
''
+
function
(
browser
:
NightwatchBrowser
)
{
const
runtimeBrowser
=
browser
.
options
.
desiredCapabilities
.
browserName
const
runtimeBrowser
=
browser
.
options
.
desiredCapabilities
.
browserName
browser
.
refresh
()
browser
.
refresh
()
...
...
apps/remix-ide-e2e/src/tests/gist.spec.ts
View file @
941d0b63
...
@@ -20,7 +20,7 @@ module.exports = {
...
@@ -20,7 +20,7 @@ module.exports = {
- switch to a file in the new gist
- switch to a file in the new gist
*/
*/
console
.
log
(
'token'
,
process
.
env
.
gist_token
)
console
.
log
(
'token'
,
process
.
env
.
gist_token
)
const
gistid
=
'c15ed7c182a7991ea0a4dea1544fa254'
browser
browser
.
refresh
()
.
refresh
()
.
pause
(
10000
)
.
pause
(
10000
)
...
@@ -34,12 +34,18 @@ module.exports = {
...
@@ -34,12 +34,18 @@ module.exports = {
.
sendKeys
(
'*[data-id$="/blank"] .remixui_items'
,
browser
.
Keys
.
ENTER
)
.
sendKeys
(
'*[data-id$="/blank"] .remixui_items'
,
browser
.
Keys
.
ENTER
)
.
waitForElementVisible
(
'*[data-id="treeViewLitreeViewItemBrowser_Tests"]'
)
.
waitForElementVisible
(
'*[data-id="treeViewLitreeViewItemBrowser_Tests"]'
)
.
addFile
(
'File.sol'
,
{
content
:
''
})
.
addFile
(
'File.sol'
,
{
content
:
''
})
.
click
(
'*[data-id="fileExplorerNewFilepublishToGist"]'
)
.
executeScript
(
`remix.loadgist('
${
gistid
}
')`
)
.
pause
(
2000
)
// .perform((done) => { if (runtimeBrowser === 'chrome') { browser.openFile('gists') } done() })
.
waitForElementVisible
(
'*[data-id="default_workspaceModalDialogContainer-react"]'
)
.
waitForElementVisible
(
`[data-id="treeViewLitreeViewItemgist-
${
gistid
}
"]`
)
.
click
(
'*[data-id="default_workspaceModalDialogContainer-react"] .modal-ok'
)
.
click
(
`[data-id="treeViewLitreeViewItemgist-
${
gistid
}
"]`
)
.
pause
(
10000
)
.
openFile
(
`gist-
${
gistid
}
/README.txt`
)
.
getText
(
'[data-id="default_workspaceModalDialogModalBody-react"]'
,
(
result
)
=>
{
// Remix publish to gist
/* .click('*[data-id="fileExplorerNewFilepublishToGist"]')
.pause(2000)
.waitForElementVisible('*[data-id="default_workspaceModalDialogContainer-react"]')
.click('*[data-id="default_workspaceModalDialogContainer-react"] .modal-ok')
.pause(10000)
.getText('[data-id="default_workspaceModalDialogModalBody-react"]', (result) => {
console.log(result)
console.log(result)
const value = typeof result.value === 'string' ? result.value : null
const value = typeof result.value === 'string' ? result.value : null
const reg = /gist.github.com\/([^.]+)/
const reg = /gist.github.com\/([^.]+)/
...
@@ -59,6 +65,7 @@ module.exports = {
...
@@ -59,6 +65,7 @@ module.exports = {
.openFile(`gist-${gistid}/README.txt`)
.openFile(`gist-${gistid}/README.txt`)
}
}
})
})
*/
},
},
'Load Gist Modal'
:
function
(
browser
:
NightwatchBrowser
)
{
'Load Gist Modal'
:
function
(
browser
:
NightwatchBrowser
)
{
...
...
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