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
7b9d5f57
Commit
7b9d5f57
authored
Jul 08, 2021
by
ioedeveloper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change gistid to valid gist ids in e2e
parent
a7e94a92
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
gist.spec.ts
apps/remix-ide-e2e/src/tests/gist.spec.ts
+5
-5
remix-ui-settings.tsx
libs/remix-ui/settings/src/lib/remix-ui-settings.tsx
+3
-3
settingsAction.ts
libs/remix-ui/settings/src/lib/settingsAction.ts
+1
-1
No files found.
apps/remix-ide-e2e/src/tests/gist.spec.ts
View file @
7b9d5f57
...
...
@@ -3,7 +3,7 @@ import { NightwatchBrowser } from 'nightwatch'
import
init
from
'../helpers/init'
const
testData
=
{
validGistId
:
'
1859c97c6e1efc91047d725d5225888e
'
,
validGistId
:
'
02a847917a6a7ecaf4a7e0d4e68715bf
'
,
invalidGistId
:
'6368b389f9302v32902msk2402'
}
// 99266d6da54cc12f37f11586e8171546c7700d67
...
...
@@ -20,7 +20,7 @@ module.exports = {
- switch to a file in the new gist
*/
console
.
log
(
'token'
,
process
.
env
.
gist_token
)
const
gistid
=
'
c15ed7c182a7991ea0a4dea1544fa254
'
const
gistid
=
'
17ac9315bc065a3d95cf8dc1b28d71f8
'
browser
.
refresh
()
.
pause
(
10000
)
...
...
@@ -125,9 +125,9 @@ module.exports = {
.
waitForElementVisible
(
'*[data-id="modalDialogCustomPromptText"]'
)
.
setValue
(
'*[data-id="modalDialogCustomPromptText"]'
,
testData
.
validGistId
)
.
modalFooterOKClick
()
.
openFile
(
`gist-
${
testData
.
validGistId
}
/
ApplicationRegistry
`
)
.
waitForElementVisible
(
`div[title='default_workspace/gist-
${
testData
.
validGistId
}
/
ApplicationRegistry
']`
)
.
assert
.
containsText
(
`div[title='default_workspace/gist-
${
testData
.
validGistId
}
/
ApplicationRegistry'] > span`
,
'ApplicationRegistry
'
)
.
openFile
(
`gist-
${
testData
.
validGistId
}
/
README.txt
`
)
.
waitForElementVisible
(
`div[title='default_workspace/gist-
${
testData
.
validGistId
}
/
README.txt
']`
)
.
assert
.
containsText
(
`div[title='default_workspace/gist-
${
testData
.
validGistId
}
/
README.txt'] > span`
,
'README.txt
'
)
.
end
()
}
}
libs/remix-ui/settings/src/lib/remix-ui-settings.tsx
View file @
7b9d5f57
...
...
@@ -4,7 +4,7 @@ import { CopyToClipboard } from '@remix-ui/clipboard' // eslint-disable-line
import
{
enablePersonalModeText
,
ethereunVMText
,
generateContractMetadataText
,
gitAccessTokenLink
,
gitAccessTokenText
,
gitAccessTokenText2
,
gitAccessTokenTitle
,
matomoAnalytics
,
textDark
,
textSecondary
,
warnText
,
wordWrapText
}
from
'./constants'
import
'./remix-ui-settings.css'
import
{
etherumVM
,
generateContractMetadat
,
personal
,
textWrapEventAction
,
useMatomoAnalytics
,
saveTokenToast
,
removeTokenToast
}
from
'./settingsAction'
import
{
ether
e
umVM
,
generateContractMetadat
,
personal
,
textWrapEventAction
,
useMatomoAnalytics
,
saveTokenToast
,
removeTokenToast
}
from
'./settingsAction'
import
{
initialState
,
toastInitialState
,
toastReducer
,
settingReducer
}
from
'./settingsReducer'
import
{
Toaster
}
from
'@remix-ui/toaster'
// eslint-disable-line
...
...
@@ -41,7 +41,7 @@ export const RemixUiSettings = (props: RemixUiSettingsProps) => {
useEffect
(()
=>
{
const
javascriptVM
=
props
.
config
.
get
(
'settings/always-use-vm'
)
if
((
javascriptVM
===
null
)
||
(
javascriptVM
===
undefined
))
etherumVM
(
props
.
config
,
true
,
dispatch
)
if
((
javascriptVM
===
null
)
||
(
javascriptVM
===
undefined
))
ether
e
umVM
(
props
.
config
,
true
,
dispatch
)
},
[
props
.
config
])
const
onchangeGenerateContractMetadata
=
(
event
)
=>
{
...
...
@@ -49,7 +49,7 @@ export const RemixUiSettings = (props: RemixUiSettingsProps) => {
}
const
onchangeOption
=
(
event
)
=>
{
etherumVM
(
props
.
config
,
event
.
target
.
checked
,
dispatch
)
ether
e
umVM
(
props
.
config
,
event
.
target
.
checked
,
dispatch
)
}
const
textWrapEvent
=
(
event
)
=>
{
...
...
libs/remix-ui/settings/src/lib/settingsAction.ts
View file @
7b9d5f57
...
...
@@ -13,7 +13,7 @@ export const generateContractMetadat = (config, checked, dispatch) => {
dispatch
({
type
:
'contractMetadata'
,
payload
:
{
isChecked
:
checked
,
textClass
:
checked
?
textDark
:
textSecondary
}
})
}
export
const
etherumVM
=
(
config
,
checked
:
boolean
,
dispatch
)
=>
{
export
const
ether
e
umVM
=
(
config
,
checked
:
boolean
,
dispatch
)
=>
{
config
.
set
(
'settings/always-use-vm'
,
checked
)
dispatch
({
type
:
'ethereumVM'
,
payload
:
{
isChecked
:
checked
,
textClass
:
checked
?
textDark
:
textSecondary
}
})
}
...
...
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