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 login-screen.spec.js to oauth2 #1792

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

Conversation

mshima
Copy link
Member

@mshima mshima commented Jun 6, 2024

No description provided.

@mraible
Copy link
Contributor

mraible commented Jun 6, 2024

This might be failing because OAuth login is not currently working. #1518

@@ -15,9 +15,16 @@ describe('Login Screen Tests', () => {

it('should show an alert on log in failure', async () => {
await navigateToLoginScreen();
<%_ if (authenticationTypeOauth2) { _%>
Copy link
Contributor

Choose a reason for hiding this comment

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

This looks like JWT logic rather than OAuth logic.

@mraible
Copy link
Contributor

mraible commented Jun 8, 2024

I don't think this will work because loginAsUser() in utils expects to enter a username and password whereas with OAuth you'll be entering a username and password on a redirect screen and the inputs IDs will be different.

@mshima
Copy link
Member Author

mshima commented Jun 9, 2024

I don't think this will work because loginAsUser() in utils expects to enter a username and password whereas with OAuth you'll be entering a username and password on a redirect screen and the inputs IDs will be different.

loginAsUser needs to be reimplemented as well.
In any case oauth2 doesn’t seem to be possible with simulators.
I will take a look in expo-web.

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.

2 participants