Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

frontend: fix auth issue with cypress headless mode #1766

Closed
ivakoleva opened this issue Mar 21, 2023 · 0 comments
Closed

frontend: fix auth issue with cypress headless mode #1766

ivakoleva opened this issue Mar 21, 2023 · 0 comments
Labels
area/frontend Related to changes in the folder projects/frontend for details about ui please see readme bug Something isn't working

Comments

@ivakoleva
Copy link
Contributor

Describe the bug
Running frontend e2e tests in headless (default) mode results in 401 Unauthorised. For example, see https://gitlab.com/vmware-analytics/versatile-data-kit/-/jobs/3965681426
Issues with headless mode come up a lot. Workaround to unblock is running in headed mode, the downside is (relatively substantially) more resources are consumed on rendering the browser.

Steps To Reproduce
Toggle the e2e script to run in headless (default) by removing --headed option. See https://github.com/vmware/versatile-data-kit/blob/main/projects/frontend/data-pipelines/gui/package.json#L19

Expected behavior
Successful auth is expected 2xx, instead of 401 Unauthorized responses.

Screenshots
N/A

Version (please complete the following information):
N/A

Additional context
N/A

@ivakoleva ivakoleva added bug Something isn't working area/frontend Related to changes in the folder projects/frontend for details about ui please see readme labels Mar 21, 2023
ivakoleva added a commit that referenced this issue Mar 21, 2023
An OAuth application had to be provisioned with CSP STG. Needed to wire
the e2e tests execution to verify code changes.

Provisioned the OAuth application, and configured the client ID.
Added a script to run the e2e tests, and a gitlab ci task to run it.
Added also unit test coverage to gitlab artifacts per frontend
component.
Added to artifacts also data-pipelines e2e reports.
Added issue on continuously failing explore page search tests fix:
#1764
Added issue on headless mode fix:
#1766
Updated the VEP-1507 on e2e testing during CI.

Testing done: authenticated successfully with starting the application
locally, backed by our CI/CD control-service instance.

Signed-off-by: ivakoleva <[email protected]>
ivakoleva added a commit that referenced this issue Mar 22, 2023
An OAuth application had to be provisioned with CSP STG. Needed to wire
the e2e tests execution to verify code changes.

Provisioned the OAuth application, and configured the client ID.
Added a script to run the e2e tests, and a gitlab ci task to run it.
Added also unit test coverage to gitlab artifacts per frontend
component.
Added to artifacts also data-pipelines e2e reports.
Added issue on continuously failing explore page search tests fix:
#1764
Added issue on headless mode fix:
#1766
Updated the VEP-1507 on e2e testing during CI.

Testing done: authenticated successfully with starting the application
locally, backed by our CI/CD control-service instance.

Signed-off-by: ivakoleva <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/frontend Related to changes in the folder projects/frontend for details about ui please see readme bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant