Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@sguilhen
Copy link
Contributor

…with Organizations enabled

Closes #33064

…with Organizations enabled

Closes keycloak#33064

Signed-off-by: Stefan Guilhen <[email protected]>

it("Should display the default browser flow diagram", () => {
sidebarPage.goToRealm("master");
sidebarPage.goToAuthentication();
Copy link
Contributor Author

@sguilhen sguilhen Sep 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Had to switch to master for this test because when orgs are enabled the default browser flow is changed for every new realm created, so the edges in the diagram connect different executions.

I've tried to add all new diagram connections to the test, but we have two conditional executions in this flow and they have the same text, so cypress complains about multiple elements with the same text.

Using master for this test seemed to me the best way to get the issue fixed, and consequently all PRs unblocked. We can possibly have a separate issue to revisit this test and see if we can change it to take into account the changes to the browser flow introduced by the orgs which are now enabled by default.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Logging an issue will do.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link

@keycloak-github-bot keycloak-github-bot bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unreported flaky test detected, please review

@keycloak-github-bot
Copy link

Unreported flaky test detected

If the flaky tests below are affected by the changes, please review and update the changes accordingly. Otherwise, a maintainer should report the flaky tests prior to merging the PR.

org.keycloak.testsuite.webauthn.WebAuthnIdlessTest#testWebAuthnIDLessLogin

Keycloak CI - WebAuthn IT (chrome)

java.lang.AssertionError: Event expected
	at org.junit.Assert.fail(Assert.java:89)
	at org.junit.Assert.assertTrue(Assert.java:42)
	at org.junit.Assert.assertNotNull(Assert.java:713)
	at org.keycloak.testsuite.AssertEvents.poll(AssertEvents.java:91)
...

Report flaky test

org.keycloak.testsuite.webauthn.registration.passwordless.PwdLessOtherSettingsTest#defaultValues

Keycloak CI - WebAuthn IT (chrome)

java.lang.AssertionError: Expected RegisterPage but was Sign in to test (https://localhost:8543/auth/realms/test/protocol/openid-connect/auth?response_type=code&client_id=test-app&redirect_uri=https%3A%2F%2Flocalhost%3A8543%2Fauth%2Frealms%2Fmaster%2Fapp%2Fauth&state=e615df26-02dd-47ff-a02e-9d300a7cd4a5&scope=openid)
	at org.junit.Assert.fail(Assert.java:89)
	at org.junit.Assert.assertTrue(Assert.java:42)
	at org.keycloak.testsuite.pages.AbstractPage.assertCurrent(AbstractPage.java:47)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
...

Report flaky test

@sguilhen sguilhen marked this pull request as ready for review September 19, 2024 03:20
@sguilhen sguilhen requested review from a team as code owners September 19, 2024 03:20
@sguilhen sguilhen requested review from ahus1 and jonkoops September 19, 2024 03:21
edewit
edewit previously approved these changes Sep 19, 2024
@keycloak-github-bot
Copy link

Unreported flaky test detected

If the flaky tests below are affected by the changes, please review and update the changes accordingly. Otherwise, a maintainer should report the flaky tests prior to merging the PR.

org.keycloak.testsuite.webauthn.WebAuthnIdlessTest#testWebAuthnIDLessLogin

Keycloak CI - WebAuthn IT (chrome)

java.lang.AssertionError: Event expected
	at org.junit.Assert.fail(Assert.java:89)
	at org.junit.Assert.assertTrue(Assert.java:42)
	at org.junit.Assert.assertNotNull(Assert.java:713)
	at org.keycloak.testsuite.AssertEvents.poll(AssertEvents.java:91)
...

Report flaky test

org.keycloak.testsuite.webauthn.registration.passwordless.PwdLessOtherSettingsTest#defaultValues

Keycloak CI - WebAuthn IT (chrome)

java.lang.AssertionError: Expected RegisterPage but was Sign in to test (https://localhost:8543/auth/realms/test/protocol/openid-connect/auth?response_type=code&client_id=test-app&redirect_uri=https%3A%2F%2Flocalhost%3A8543%2Fauth%2Frealms%2Fmaster%2Fapp%2Fauth&state=e615df26-02dd-47ff-a02e-9d300a7cd4a5&scope=openid)
	at org.junit.Assert.fail(Assert.java:89)
	at org.junit.Assert.assertTrue(Assert.java:42)
	at org.keycloak.testsuite.pages.AbstractPage.assertCurrent(AbstractPage.java:47)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
...

Report flaky test

Copy link

@keycloak-github-bot keycloak-github-bot bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unreported flaky test detected, please review

Copy link

@keycloak-github-bot keycloak-github-bot bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unreported flaky test detected, please review

@keycloak-github-bot
Copy link

Unreported flaky test detected

If the flaky tests below are affected by the changes, please review and update the changes accordingly. Otherwise, a maintainer should report the flaky tests prior to merging the PR.

org.keycloak.testsuite.webauthn.WebAuthnIdlessTest#testWebAuthnIDLessLogin

Keycloak CI - WebAuthn IT (chrome)

java.lang.AssertionError: Event expected
	at org.junit.Assert.fail(Assert.java:89)
	at org.junit.Assert.assertTrue(Assert.java:42)
	at org.junit.Assert.assertNotNull(Assert.java:713)
	at org.keycloak.testsuite.AssertEvents.poll(AssertEvents.java:91)
...

Report flaky test

org.keycloak.testsuite.webauthn.registration.passwordless.PwdLessOtherSettingsTest#defaultValues

Keycloak CI - WebAuthn IT (chrome)

java.lang.AssertionError: Expected RegisterPage but was Sign in to test (https://localhost:8543/auth/realms/test/protocol/openid-connect/auth?response_type=code&client_id=test-app&redirect_uri=https%3A%2F%2Flocalhost%3A8543%2Fauth%2Frealms%2Fmaster%2Fapp%2Fauth&state=e615df26-02dd-47ff-a02e-9d300a7cd4a5&scope=openid)
	at org.junit.Assert.fail(Assert.java:89)
	at org.junit.Assert.assertTrue(Assert.java:42)
	at org.keycloak.testsuite.pages.AbstractPage.assertCurrent(AbstractPage.java:47)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
...

Report flaky test

jonkoops
jonkoops previously approved these changes Sep 19, 2024
mhajas
mhajas previously approved these changes Sep 19, 2024
Copy link
Contributor

@mhajas mhajas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fixes @sguilhen and @rmartinc

Copy link

@keycloak-github-bot keycloak-github-bot bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unreported flaky test detected, please review

@keycloak-github-bot
Copy link

Unreported flaky test detected

If the flaky tests below are affected by the changes, please review and update the changes accordingly. Otherwise, a maintainer should report the flaky tests prior to merging the PR.

org.keycloak.testsuite.forms.LevelOfAssuranceFlowTest#testWithOTPAndRecoveryCodesAtLevel2

Keycloak CI - Forms IT (chrome)

java.lang.AssertionError: Event expected
	at org.junit.Assert.fail(Assert.java:89)
	at org.junit.Assert.assertTrue(Assert.java:42)
	at org.junit.Assert.assertNotNull(Assert.java:713)
	at org.keycloak.testsuite.AssertEvents.poll(AssertEvents.java:91)
...

Report flaky test

@jonkoops jonkoops dismissed stale reviews from mhajas and themself via 8bebab6 September 19, 2024 15:45
@jonkoops jonkoops disabled auto-merge September 19, 2024 15:46
@jonkoops jonkoops enabled auto-merge (squash) September 19, 2024 15:52
Copy link
Contributor

@vramik vramik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks everyone!

Copy link
Contributor

@mhajas mhajas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fixes @sguilhen @rmartinc @jonkoops

@jonkoops jonkoops merged commit 42cde0c into keycloak:main Sep 19, 2024
keshavprashantdeshpande pushed a commit to keshavprashantdeshpande/keycloak that referenced this pull request Sep 20, 2024
- Disables the remote operator tests, which will have to be fixed later.
- Fixes the action expired error which occurs when accessing regular registration page with Organizations enabled.
- Fixes a race condition in the test suite causing sporadic failures.

Closes keycloak#33064

Signed-off-by: Stefan Guilhen <[email protected]>
Signed-off-by: rmartinc <[email protected]>
Signed-off-by: Jon Koops <[email protected]>
Co-authored-by: rmartinc <[email protected]>
Co-authored-by: Jon Koops <[email protected]>
rmartinc added a commit to rmartinc/keycloak that referenced this pull request Oct 3, 2024
- Disables the remote operator tests, which will have to be fixed later.
- Fixes the action expired error which occurs when accessing regular registration page with Organizations enabled.
- Fixes a race condition in the test suite causing sporadic failures.

Closes keycloak#33064

Signed-off-by: Stefan Guilhen <[email protected]>
Signed-off-by: rmartinc <[email protected]>
Signed-off-by: Jon Koops <[email protected]>
Co-authored-by: rmartinc <[email protected]>
Co-authored-by: Jon Koops <[email protected]>
mposolda pushed a commit that referenced this pull request Oct 3, 2024
- Disables the remote operator tests, which will have to be fixed later.
- Fixes the action expired error which occurs when accessing regular registration page with Organizations enabled.
- Fixes a race condition in the test suite causing sporadic failures.

Closes #33064

Signed-off-by: Stefan Guilhen <[email protected]>
Signed-off-by: rmartinc <[email protected]>
Signed-off-by: Jon Koops <[email protected]>
Co-authored-by: rmartinc <[email protected]>
Co-authored-by: Jon Koops <[email protected]>
rmartinc added a commit to rmartinc/keycloak that referenced this pull request Oct 4, 2024
- Disables the remote operator tests, which will have to be fixed later.
- Fixes the action expired error which occurs when accessing regular registration page with Organizations enabled.
- Fixes a race condition in the test suite causing sporadic failures.

Closes keycloak#33064

Signed-off-by: Stefan Guilhen <[email protected]>
Signed-off-by: rmartinc <[email protected]>
Signed-off-by: Jon Koops <[email protected]>
Co-authored-by: rmartinc <[email protected]>
Co-authored-by: Jon Koops <[email protected]>
rmartinc added a commit to rmartinc/keycloak that referenced this pull request Oct 4, 2024
- Disables the remote operator tests, which will have to be fixed later.
- Fixes the action expired error which occurs when accessing regular registration page with Organizations enabled.
- Fixes a race condition in the test suite causing sporadic failures.

Closes keycloak#33064

Signed-off-by: Stefan Guilhen <[email protected]>
Signed-off-by: rmartinc <[email protected]>
Signed-off-by: Jon Koops <[email protected]>
Co-authored-by: rmartinc <[email protected]>
Co-authored-by: Jon Koops <[email protected]>
mposolda pushed a commit that referenced this pull request Oct 4, 2024
- Disables the remote operator tests, which will have to be fixed later.
- Fixes the action expired error which occurs when accessing regular registration page with Organizations enabled.
- Fixes a race condition in the test suite causing sporadic failures.

Closes #33064

Signed-off-by: Stefan Guilhen <[email protected]>
Signed-off-by: rmartinc <[email protected]>
Signed-off-by: Jon Koops <[email protected]>
Co-authored-by: rmartinc <[email protected]>
Co-authored-by: Jon Koops <[email protected]>
@sguilhen sguilhen deleted the 33064-registration-error branch October 25, 2024 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Action expired error occurs when accessing regular registration page with Organizations enabled

6 participants