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

Add tauri e2e test for auth on Linux #968

Closed
Tracked by #983
pierremtb opened this issue Nov 1, 2023 · 2 comments
Closed
Tracked by #983

Add tauri e2e test for auth on Linux #968

pierremtb opened this issue Nov 1, 2023 · 2 comments
Assignees
Labels

Comments

@pierremtb
Copy link
Collaborator

From TODO at https://github.com/KittyCAD/modeling-app/blob/main/e2e/tauri/specs/signin.e2e.js#L9

We're able to programmatically click on the Sign In button now which opens the URL externally, now we have to find a way to catch that, authorize, and check that the apps moves to the user home page.

@pierremtb pierremtb self-assigned this Nov 1, 2023
@pierremtb pierremtb added the e2e label Nov 2, 2023
pierremtb added a commit that referenced this issue Nov 9, 2023
@pierremtb
Copy link
Collaborator Author

pierremtb commented Nov 9, 2023

Need to find a way to use the token in secrets when the app queries https://api.kittycad.io/oauth2/device/verify?user_code=CODE-0000 in the external browser

@pierremtb
Copy link
Collaborator Author

Alright from reading api-deux tests and sending manual curls with the api token to https://api.kittycad.io/oauth2/device/verify and https://api.kittycad.io/oauth2/device/confirm I was able to get the e2e driven app authenticated! Now just have to automate this in e2e/tauri/specs/signin.e2e.js

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant