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

fix(ui): update ui e2e tests #14619

Merged
merged 2 commits into from
Nov 28, 2024
Merged

fix(ui): update ui e2e tests #14619

merged 2 commits into from
Nov 28, 2024

Conversation

ebuildy
Copy link
Contributor

@ebuildy ebuildy commented Jul 20, 2023

From my PR about UI #14376 , @crenshaw-dev asked me to add an ui e2e test.

I found it broken because UI code have changed (className etc...), so I wrote this PR to make ui e2e test work.

Need #14216 to work.

Changes:

  • fix CSS class names
  • add login step, configurable via env var, to login with username and password
  • add ARGOCD_NAMESPACE config, because app name now is prefixed by app definition namespace
  • fix lint errors

(btw I was very happy to meet selenium again!)

Signed-off-by: ebuildy <tdecaux@petalmd.com>
@crenshaw-dev
Copy link
Member

I was actually thinking a unit test like this. Didn't even realize we had selenium tests. But this is awesome too. :-D

Copy link
Contributor

@keithchong keithchong left a comment

Choose a reason for hiding this comment

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

@ebuildy , LGTM. Sorry about the long delay. Could you rebase this? I'll merge this right away after the CI checks are green.

@@ -1,11 +1,14 @@
require('dotenv').config({path: __dirname + '/.env'});
require('dotenv').config({path: __dirname + '/../.env'});
Copy link
Contributor

Choose a reason for hiding this comment

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

If we run the scripts defined in the package.json, the .env file gets copied over to the out folder and so it will be in current directory. But this will work too.

@ebuildy ebuildy requested a review from a team as a code owner November 27, 2024 11:29
Copy link

codecov bot commented Nov 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 55.02%. Comparing base (9a14d7f) to head (81857b8).
Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #14619      +/-   ##
==========================================
- Coverage   55.07%   55.02%   -0.05%     
==========================================
  Files         324      324              
  Lines       55466    55466              
==========================================
- Hits        30547    30521      -26     
- Misses      22303    22328      +25     
- Partials     2616     2617       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@keithchong keithchong merged commit e31aebe into argoproj:master Nov 28, 2024
27 checks passed
@keithchong
Copy link
Contributor

Thanks @ebuildy

dvcanton pushed a commit to dvcanton/argo-cd that referenced this pull request Dec 2, 2024
Signed-off-by: ebuildy <tdecaux@petalmd.com>
adriananeci pushed a commit to adriananeci/argo-cd that referenced this pull request Dec 4, 2024
Signed-off-by: ebuildy <tdecaux@petalmd.com>
Signed-off-by: Adrian Aneci <aneci@adobe.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants