From 6ede747871b5392c43bab89f1ef3f75463791f15 Mon Sep 17 00:00:00 2001 From: Erik Jan de Wit Date: Wed, 20 Mar 2024 14:29:11 +0100 Subject: [PATCH] more waits to stabilize test (#28092) Signed-off-by: Erik Jan de Wit --- .../admin-ui/cypress/downloads/downloads.html | Bin 4680 -> 0 bytes .../e2e/realm_settings_general_tab_test.spec.ts | 8 +++----- 2 files changed, 3 insertions(+), 5 deletions(-) delete mode 100644 js/apps/admin-ui/cypress/downloads/downloads.html diff --git a/js/apps/admin-ui/cypress/downloads/downloads.html b/js/apps/admin-ui/cypress/downloads/downloads.html deleted file mode 100644 index 4e6e883a5f39548b6afb7fccbc6b9fda25d65ef0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4680 zcmZ{nbx;)EyT)PZ5?DZ38l;wz?hufMg$0pVSf%z$EDh4Nbax5TEs|1#gh)yX(kUH+ z^wL*4dcl4P;9UTb4e#J{u zzEumQ?l0Ak|2kLxbolPr(SqIBD^sk(%=TjZyll!NZ}n97xyr3AmX?O*jy%)#JtY#| zHF3qHS9FQ#R~omLYe!nnq(t)Fjs=gMlc~vV5C=2@Yhzs}j8XNzAv~2ug85Tq6OpE= z4cLhyJNap2P!=}p4cWa#v{IB{8@pBJh2jIlQo1G@R*d95%c)CR4;FveBse3(^$v`q zWE0mwQK@pgc#$_}c*!Sg_m3M4J^GuY;n~yi20ON>2;xni@8r|o_I^ls+_9zu*wh#c z9!Kw}0MN!zgPoh}!+hdXnYc!V^U*s8794(f@Ds!^rwS`s z2UP|=(jB{8Qrtioan;3OsEz%tv=n5f<=Jul6`V=!l^D1O&KXhjW;PkP>qRb`cYrkl zI3K)&o%SL6y-&t@#i*ZeN*ZVz;%+15NSw{<3{^McBH*BJTD(<*id$2d6|Bx3#vue> zTY^$#&fn#c0&g-jf2x%miE-j=+B~*@)nQ7+>Ya_!z zqfVDvrj?+S@r~Wf5h>IRMHwxX)r!Xz8$gs=Qo1)LnC{|oYH9aAe| z%|y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8()>OR!68378~jQ&n53_UUr2pIFf7gwd3}_06patL`_Oymcyx|mc#0Iv@7acA zUBF?Qwpq+#KNWa#xw>eAyI%)`X!wjIsCo$2Szf}!juUm?@fh7j>k#5-E_A4-)30EU zK7xD@is-M+k?a^vCa@~(9ZUwH*!&K<-ZiMvFej?D=X^RKA&QarJ*jsY{?+$BYI7E# ztp+6MP2y#d7lU&p$M)di*J(*PRz4FGHU7CYQ{QRCd`?05V0Y67M>dEu?^`TTztXQ; zTwF#HDZA)F^GXfg3o9pYbWBUN@14aoZqLq7K5a_(`-JX2YyhP(2q zb^BGtm}UbKI*ByxOTY!*2?yG4l2FE zUD)5VhK=1>u4gZPD7BZAUK+jk&yAQn<@3ez_^{@k=R5y>?iDZ}g5|hI1O75T55{tW;h By#oLM diff --git a/js/apps/admin-ui/cypress/e2e/realm_settings_general_tab_test.spec.ts b/js/apps/admin-ui/cypress/e2e/realm_settings_general_tab_test.spec.ts index 9d148767aa..bfa760d2de 100644 --- a/js/apps/admin-ui/cypress/e2e/realm_settings_general_tab_test.spec.ts +++ b/js/apps/admin-ui/cypress/e2e/realm_settings_general_tab_test.spec.ts @@ -45,16 +45,14 @@ describe("Realm settings general tab tests", () => { // Enable realm realmSettingsPage.toggleSwitch(`${realmName}-switch`); - masthead.checkNotificationMessage("Realm successfully updated", true); + masthead.checkNotificationMessage("Realm successfully updated"); + sidebarPage.waitForPageLoad(); // Disable realm realmSettingsPage.toggleSwitch(`${realmName}-switch`); realmSettingsPage.disableRealm(); masthead.checkNotificationMessage("Realm successfully updated", true); - - // Sometimes it takes the Keycloak server a while to disable the realm, even though the notification message has been displayed. - // To prevent flaky tests, we wait a second before continuing. - cy.wait(1000); + sidebarPage.waitForPageLoad(); // Re-enable realm realmSettingsPage.toggleSwitch(`${realmName}-switch`);