Fixing cypress failure.

This commit is contained in:
Michael Drury 2021-01-06 21:25:52 +00:00
parent b6e5658f4e
commit ae76780345
2 changed files with 18 additions and 20 deletions

View File

@ -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 () => { onMount(async () => {
let hostingInfo = await hostingStore.actions.fetch() let hostingInfo = await hostingStore.actions.fetch()
steps = [] // re-init the steps based on whether self hosting or cloud hosted
// only validate API key for Cloud if (hostingInfo.type === "self") {
if (hostingInfo.type === "cloud") { steps = [buildStep(Info), buildStep(User)]
steps.push({ } else {
component: API, steps = [buildStep(API), buildStep(Info), buildStep(User)]
errors,
})
} }
steps.push({
component: Info,
errors,
})
steps.push({
component: User,
errors,
})
}) })
if (hasKey) { if (hasKey) {

View File

@ -7262,10 +7262,10 @@ supports-color@^7.1.0:
dependencies: dependencies:
has-flag "^4.0.0" has-flag "^4.0.0"
svelte@^3.29.4: svelte@^3.30.0:
version "3.29.4" version "3.31.2"
resolved "https://registry.yarnpkg.com/svelte/-/svelte-3.29.4.tgz#d0f80cb58109ef52963855c23496f7153bb2eb7e" resolved "https://registry.yarnpkg.com/svelte/-/svelte-3.31.2.tgz#d2ddf6cacbb95e4cc3796207510b660a25586324"
integrity sha512-oW0fGHlyFFMvzRtIvOs84b0fOc0gmZNQcL5Is3hxuTpvaYX3pfd8oHy4KnOvbq4Ca6SG6AHdRMk7OhApTo0NqA== integrity sha512-TxZGrXzX2ggFH3BIKY5fmbeMdJuZrMIMDYPMX6R9255bueuYIuVaBQSLUeY2oD7W4IdeqRZiAVGCjDw2POKBRA==
symbol-tree@^3.2.2: symbol-tree@^3.2.2:
version "3.2.4" version "3.2.4"