Added missing cypress hooks
This commit is contained in:
parent
a1609c0bde
commit
de437c3cb8
1 changed files with 4 additions and 3 deletions
|
@ -147,7 +147,6 @@
|
||||||
|
|
||||||
async function save(docs) {
|
async function save(docs) {
|
||||||
let calls = []
|
let calls = []
|
||||||
|
|
||||||
// Only if the user has provided an image, upload it
|
// Only if the user has provided an image, upload it
|
||||||
if (image) {
|
if (image) {
|
||||||
let data = new FormData()
|
let data = new FormData()
|
||||||
|
@ -159,7 +158,6 @@
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
docs.forEach(element => {
|
docs.forEach(element => {
|
||||||
// Delete unsupported fields
|
// Delete unsupported fields
|
||||||
delete element.createdAt
|
delete element.createdAt
|
||||||
|
@ -201,7 +199,6 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
if (calls.length) {
|
if (calls.length) {
|
||||||
Promise.all(calls)
|
Promise.all(calls)
|
||||||
.then(data => {
|
.then(data => {
|
||||||
|
@ -362,6 +359,7 @@
|
||||||
size="s"
|
size="s"
|
||||||
cta
|
cta
|
||||||
on:click={() => save([providers.oidc])}
|
on:click={() => save([providers.oidc])}
|
||||||
|
dataCy={"oidc-save"}
|
||||||
>
|
>
|
||||||
Save
|
Save
|
||||||
</Button>
|
</Button>
|
||||||
|
@ -379,6 +377,7 @@
|
||||||
bind:value={providers.oidc.config.configs[0][field.name]}
|
bind:value={providers.oidc.config.configs[0][field.name]}
|
||||||
readonly={field.readonly}
|
readonly={field.readonly}
|
||||||
placeholder={field.placeholder}
|
placeholder={field.placeholder}
|
||||||
|
dataCy={field.name}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
{/each}
|
{/each}
|
||||||
|
@ -426,6 +425,7 @@
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
providers.oidc.config.configs[0]["scopes"] = [...defaultScopes]
|
providers.oidc.config.configs[0]["scopes"] = [...defaultScopes]
|
||||||
}}
|
}}
|
||||||
|
dataCy={"restore-oidc-default-scopes"}
|
||||||
>
|
>
|
||||||
Restore Defaults
|
Restore Defaults
|
||||||
</Button>
|
</Button>
|
||||||
|
@ -441,6 +441,7 @@
|
||||||
<span class="add-new">
|
<span class="add-new">
|
||||||
<Label size="L">{"Auth Scopes"}</Label>
|
<Label size="L">{"Auth Scopes"}</Label>
|
||||||
<Input
|
<Input
|
||||||
|
dataCy={"new-scope-input"}
|
||||||
error={scopesFields[0].error}
|
error={scopesFields[0].error}
|
||||||
placeholder={"New Scope"}
|
placeholder={"New Scope"}
|
||||||
bind:value={scopesFields[0].inputText}
|
bind:value={scopesFields[0].inputText}
|
||||||
|
|
Loading…
Reference in a new issue