-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
feat: Support auth0 provider in cypress tests #1121
Conversation
To run cypress tests with
|
I tried to install this with
This fails with the following error:
Next, I tried the JDL I use for a lot of my demos:
This works. If I try to start the Docker containers with a shortcut I have, it fails.
My shortcut:
I started Keycloak, the app with
Maybe the slowness is caused by my M1? |
Thanks @mraible for your time.
It also didn't work on my local setup. It fails for various reasons (initially due to previous symbolic links created by the
Yeah, that's an issue as it doesn't declare a Post entity and tries to use that in relationships. I will raise a ticket to track this issue.
Yes, we don't generate those
I can also see same failure on local. That's not related to OAuth and is due to a specific datatype. I will raise a separate ticket to track this issue as well. |
Do you see the slowness? I can try in my Intel MBP tomorrow (Tuesday MDT) to see if I can reproduce. |
I didn't measure the exact time on the M1 MacBook, but it's slower than my Intel Linux laptop. On Linux, the same e2e tests complete within 2 minutes
|
I tried running tests on my Intel Mac today.
It did complete much faster (2 min. 57 s.). I did have to click "Quit" a number of times because Chrome thought it was still downloading stuff. If I try to create the same app with JHipster 7.8.1 (
One minor difference I noticed is the Svelte blueprint creates a |
I generally execute tests with I will not compare speed with main generator as we do things differently and also test suite is much broader than the main ( Svelte blueprint style uses tabs over spaces (across code) 😄 |
I tried running e2e tests after configuring my Svelte app to use Auth0. I only defined two environment variables:
Tests worked up until I tried running e2e tests against Auth0 using the same app (generated with the main generator) and all tests pass. The Quit dialog did popup once. I like that the main generator only requires you to define two variables ( These values override the credentials for admin users and regular users. I'm guessing you changed this for this blueprint because you wanted more fine-grained control? |
In main generator, we don't test flows with Further, we do use cypress |
These are all valid points. I think my main concern is I can't run As far as variable names, I think it's good to use uppercase so it's less confusing. Since |
sure, lets wait for e2e issue to be resolved. I have updated CI tests to use the JDL causing issue. I will create a separate issue to track the change in variable names. |
9b9a4c5
to
e75292c
Compare
@mraible , can you please test to verify the e2e fix? |
Looks good! If I generate an app with
If I switch it to use Auth0, most of the tests pass.
|
I tried again with Auth0 and this time all tests pass!
|
@vishal423 : approved |
Closes #892
auth0
OIDC provider in cypress e2e tests