feat(e2e): introduce e2e tests for bulk-import plugin#1972
feat(e2e): introduce e2e tests for bulk-import plugin#1972AndrienkoAleksandr wants to merge 33 commits into
Conversation
430da43 to
3e959fc
Compare
3e959fc to
1fb6fa4
Compare
|
New changes are detected. LGTM label has been removed. |
|
/test e2e-ocp-helm |
❌ Failed E2E Tests -
|
|
/hold |
|
/test e2e-ocp-helm |
❌ Failed E2E Tests -
|
|
/test e2e-ocp-helm |
❌ Failed E2E Tests -
|
|
/publish |
|
Publish workflow has completed with failure. Publishing process✅ Finished successfully.
Backstage Compatibility Check✅ All workspaces are compatible with the target Backstage version ( No action required. Metadata Validation❌ Found 2 validation error(s):
|
|
/publish |
|
Publish workflow has completed with success. Publishing process✅ Finished successfully.
Backstage Compatibility Check✅ All workspaces are compatible with the target Backstage version ( No action required. Metadata Validation✅ All metadata files validated successfully. Running e2e tests |
Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
1cc8610 to
1ee6469
Compare
|
/publish |
|
Publish workflow has completed with success. Publishing process✅ Finished successfully.
Backstage Compatibility Check✅ All workspaces are compatible with the target Backstage version ( No action required. Metadata Validation✅ All metadata files validated successfully. Running e2e tests |
|
❌ Error logs from container |
❌ Failed E2E Tests -
|
| }); | ||
|
|
||
| test.beforeEach(async ({ loginHelper, uiHelper, page }) => { | ||
| await loginHelper.loginAsKeycloakUser(); |
There was a problem hiding this comment.
| await loginHelper.loginAsKeycloakUser(); | |
| await loginHelper.loginAsGithubUser(); |
Instead of using Keycloak, why don't you use the native GitHub login helper. I believe it handles the 2fa for you and you shouldn't need the custom github auth code that you have under github-web-session.ts and github-oauth-app-helper.ts.
| await ensureGitHubOAuthAppForRhdh(namespace); | ||
| assertOAuthCredentialsPresent(); | ||
| await rhdh.configure({ | ||
| auth: options.auth ?? "keycloak", |
There was a problem hiding this comment.
| auth: options.auth ?? "keycloak", | |
| auth: options.auth ?? "github", |
Same as the loginAsGithubUser suggestion
| }); | ||
|
|
||
| test.beforeEach(async ({ loginHelper, uiHelper, page }) => { | ||
| await loginAsKeycloakUserBulkImport( |
There was a problem hiding this comment.
Could you not have used a guest user for this? Should be able to just add something like
auth:
environment: development
providers:
guest:
dangerouslyAllowOutsideDevelopment: trueto your app-config. And then just used loginAsGuest. After that you would just need to reject the GitHub pop up and then verify. Should allow you to remove some more of this custom logic
Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
|
|
/test e2e-ocp-helm |
❌ Failed E2E Tests -
|
|
@AndrienkoAleksandr: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
Close on favor #2500 |
| "devDependencies": { | ||
| "@eslint/js": "^9.39.2", | ||
| "@playwright/test": "^1.56.1", | ||
| "@red-hat-developer-hub/e2e-test-utils": "1.1.32", |
There was a problem hiding this comment.
This is a few versions behind (1.1.32) — latest is 1.1.43 and we're aligning everything in #2480. Could you pull that up before this merges?
|
Closing in favor of #2500. Thank you very much, @PatAKnight , for your help! |


What does this pull request do
Fixes: https://issues.redhat.com/browse/RHIDP-9350 and https://redhat.atlassian.net/browse/RHIDP-11360