-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
fix(ui): update ui e2e tests #14619
Conversation
Signed-off-by: ebuildy <tdecaux@petalmd.com>
I was actually thinking a unit test like this. Didn't even realize we had selenium tests. But this is awesome too. :-D |
There was a problem hiding this 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'}); |
There was a problem hiding this comment.
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.
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. |
Thanks @ebuildy |
Signed-off-by: ebuildy <tdecaux@petalmd.com>
Signed-off-by: ebuildy <tdecaux@petalmd.com> Signed-off-by: Adrian Aneci <aneci@adobe.com>
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:
ARGOCD_NAMESPACE
config, because app name now is prefixed by app definition namespace(btw I was very happy to meet selenium again!)