-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
Lexicon new project tests #1456
Conversation
74a322f
to
a0e4ce9
Compare
d8b6649
to
657d50c
Compare
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.
Didn't look through everything, but I need to stop for today. If the PR is still open on Wednesday I'll keep looking 😁.
657d50c
to
799cc37
Compare
@myieye I will approve this PR if you can fix it up per your comments. If you have ideas how to make the two lines that Hanna marked as flaky, that would be great as well. Thanks! |
I'm marking this as blocked until @myieye can pick this work up. |
39dbf40
to
899038a
Compare
I wasn't able to make the flaky lines fail. So, we'll just wait and see. |
Details on how to run tests using either the Playwright VSCode extension, a make command, or mere commands in the command line.
The flaky tests are * Manager can delete if owner * Can successfully change user\'s password after form submission
E.g. "createUser" causes errors somtimes depending on user state and it's not at all obvious.
13f1b9c
to
02a3999
Compare
I confirmed these tests passed on their run toward staging: https://github.com/sillsdev/web-languageforge/actions/runs/3189085647 |
Description
Summary
These tests test
Details
The following tests have been converted to playwright
Lexicon E2E New Project wizard app
✓ admin can get to wizard
✓ manager can get to wizard
✓ setup: user login and page contains a form
✓ cannot see Back or Next buttons
✓ can create a new project -> Can navigate to new project form and back
✓ can go back to Chooser page -> Can navigate to new project form and back
✓ can select Send and Receive -> Can navigate to Send and Receive form and back
✓ can go back to Chooser page -> Can navigate to Send and Receive form and back
✓ can get back to Send and Receive Credentials page
✓ cannot move on if Password is empty
✓ cannot move on if username is incorrect -> Cannot move on if username is incorrect and can go back to Chooser page, user and password preserved
✓ can go back to Chooser page, user and pass preserved -> Cannot move on if username is incorrect and can go back to Chooser page, user and password preserved
✓ cannot move on if Login is empty
✓ cannot move on if credentials are invalid
✓ can move on when the credentials are valid -> Can move on when the credentials are valid but cannot move further if no project is selected
✓ cannot move on if no project is selected -> Can move on when the credentials are valid but cannot move further if no project is selected
✓ cannot move on if not a manager of the project
✓ can move on when a managed project is selected
✓ can create a new project -> Cannot move on if name is invalid
✓ cannot move on if name is invalid -> Cannot move on if name is invalid
✓ finds the test project already exists
✓ with a cleared name does not show an error but is still invalid
✓ can verify that an unused project name is available
✓ can not edit project code by default
✓ can edit project code when enabled
✓ project code cannot be empty; does not show an error but is still invalid
✓ project code can be one character
✓ project code cannot be uppercase
✓ project code cannot start with a number
✓ project code cannot use non-alphanumeric -> Project code cannot use non-alphanumeric and reverts to default when Edit-project-code is disabled
✓ project code reverts to default when Edit-project-code is disabled -> Project code cannot use non-alphanumeric and reverts to default when Edit-project-code is disabled
The following tests were merged into one large test
Can create project, initial data page with upload & verify data
✓ can create project
✓ cannot see back button and defaults to uploading data -
✓ cannot upload large file
✓ cannot upload jpg
✓ can upload zip file
✓ displays stats
✓ displays non-critical errors
✓ can go to lexicon
✓ create: new empty project -> Create: new empty project & can skip uploading data
✓ can skip uploading data -> Create: new empty project & can skip uploading data
The following tests were merged into one large test
Primary Language page
✓ can go back to initial data page (then forward again)
✓ cannot move on if language is not selected
✓ can select language
✓ can search, select and add language
Deleted tests
✓ can clone project
✓ cannot move on while cloning
For details/remarks regarding the conversion of the tests, refer to the spreadsheet; https://docs.google.com/spreadsheets/d/1w9wjfm-02QHLhv0ObPAKKlqnDWeag379GIXwOcRU4W0/edit#gid=0
Type of Change
Checklist