Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: allow signing in as non-admin users in e2e tests#15892

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
aslilac merged 11 commits intomainfromlilac/dont-share-e2e-auth
Dec 19, 2024

Conversation

aslilac
Copy link
Member

@aslilacaslilac commentedDec 17, 2024
edited
Loading

Closescoder/internal#168

Gets rid of the "global state" authentication, and adds alogin helper which should be called at the beginning of each test. This means that not every test needs to authenticated as admin, and we can even have tests that encompass multiple permission levels.

We also now create more than just the single admin user during setup, so that we can have a set of users to pick from as appropriate.

@aslilacaslilacforce-pushed thelilac/dont-share-e2e-auth branch from6abe5f6 to0dbd385CompareDecember 18, 2024 19:24
@aslilacaslilac changed the titlechore: allow signing in as different user per-testchore: allow signing in as non-admin users in e2e testsDec 18, 2024
@aslilacaslilac marked this pull request as ready for reviewDecember 18, 2024 21:06
@jaaydenh
Copy link
Contributor

@aslilac could you add a description to the PR to provider more information about the goal of this PR? From what I can tell, its adds a helper so that the login can happen but its always using the admin user credentials from constants.ts. So is this enabling future changes?

Copy link
Contributor

@jaaydenhjaaydenh left a comment

Choose a reason for hiding this comment

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

LGTM

@aslilacaslilac merged commit962608c intomainDec 19, 2024
29 checks passed
@aslilacaslilac deleted the lilac/dont-share-e2e-auth branchDecember 19, 2024 23:16
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsDec 19, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@jaaydenhjaaydenhjaaydenh approved these changes

Assignees

@aslilacaslilac

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

tests(e2e): run tests with multiple permission levels where appropriate
2 participants
@aslilac@jaaydenh

[8]ページ先頭

©2009-2025 Movatter.jp