Fixing cypress failure.
This commit is contained in:
parent
e98f9a9e94
commit
3e38bea3d6
|
@ -68,26 +68,24 @@
|
|||
},
|
||||
]
|
||||
|
||||
let steps = []
|
||||
function buildStep(component) {
|
||||
return {
|
||||
component,
|
||||
errors,
|
||||
}
|
||||
}
|
||||
|
||||
// steps need to be initialized for cypress from the get go
|
||||
let steps = [buildStep(API), buildStep(Info), buildStep(User)]
|
||||
|
||||
onMount(async () => {
|
||||
let hostingInfo = await hostingStore.actions.fetch()
|
||||
steps = []
|
||||
// only validate API key for Cloud
|
||||
if (hostingInfo.type === "cloud") {
|
||||
steps.push({
|
||||
component: API,
|
||||
errors,
|
||||
})
|
||||
// re-init the steps based on whether self hosting or cloud hosted
|
||||
if (hostingInfo.type === "self") {
|
||||
steps = [buildStep(Info), buildStep(User)]
|
||||
} else {
|
||||
steps = [buildStep(API), buildStep(Info), buildStep(User)]
|
||||
}
|
||||
steps.push({
|
||||
component: Info,
|
||||
errors,
|
||||
})
|
||||
steps.push({
|
||||
component: User,
|
||||
errors,
|
||||
})
|
||||
})
|
||||
|
||||
if (hasKey) {
|
||||
|
|
|
@ -7262,10 +7262,10 @@ supports-color@^7.1.0:
|
|||
dependencies:
|
||||
has-flag "^4.0.0"
|
||||
|
||||
svelte@^3.29.4:
|
||||
version "3.29.4"
|
||||
resolved "https://registry.yarnpkg.com/svelte/-/svelte-3.29.4.tgz#d0f80cb58109ef52963855c23496f7153bb2eb7e"
|
||||
integrity sha512-oW0fGHlyFFMvzRtIvOs84b0fOc0gmZNQcL5Is3hxuTpvaYX3pfd8oHy4KnOvbq4Ca6SG6AHdRMk7OhApTo0NqA==
|
||||
svelte@^3.30.0:
|
||||
version "3.31.2"
|
||||
resolved "https://registry.yarnpkg.com/svelte/-/svelte-3.31.2.tgz#d2ddf6cacbb95e4cc3796207510b660a25586324"
|
||||
integrity sha512-TxZGrXzX2ggFH3BIKY5fmbeMdJuZrMIMDYPMX6R9255bueuYIuVaBQSLUeY2oD7W4IdeqRZiAVGCjDw2POKBRA==
|
||||
|
||||
symbol-tree@^3.2.2:
|
||||
version "3.2.4"
|
||||
|
|
Loading…
Reference in New Issue