From 658ec8301ce7328349eb89aef0f6c87fd14d1a34 Mon Sep 17 00:00:00 2001 From: Dean Date: Fri, 19 Aug 2022 14:33:51 +0100 Subject: [PATCH] Added missing cypress hooks --- .../src/pages/builder/portal/manage/auth/index.svelte | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/builder/src/pages/builder/portal/manage/auth/index.svelte b/packages/builder/src/pages/builder/portal/manage/auth/index.svelte index 56aff57da3..b1006ad294 100644 --- a/packages/builder/src/pages/builder/portal/manage/auth/index.svelte +++ b/packages/builder/src/pages/builder/portal/manage/auth/index.svelte @@ -147,7 +147,6 @@ async function save(docs) { let calls = [] - // Only if the user has provided an image, upload it if (image) { let data = new FormData() @@ -159,7 +158,6 @@ }) ) } - docs.forEach(element => { // Delete unsupported fields delete element.createdAt @@ -201,7 +199,6 @@ } } }) - if (calls.length) { Promise.all(calls) .then(data => { @@ -362,6 +359,7 @@ size="s" cta on:click={() => save([providers.oidc])} + dataCy={"oidc-save"} > Save @@ -379,6 +377,7 @@ bind:value={providers.oidc.config.configs[0][field.name]} readonly={field.readonly} placeholder={field.placeholder} + dataCy={field.name} /> {/each} @@ -426,6 +425,7 @@ on:click={() => { providers.oidc.config.configs[0]["scopes"] = [...defaultScopes] }} + dataCy={"restore-oidc-default-scopes"} > Restore Defaults @@ -441,6 +441,7 @@