-
-
Notifications
You must be signed in to change notification settings - Fork 0
OBPIH-7532: Add test to change locations on putaway pages #68
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
Conversation
|
|
||
| get emptyPutawayList() { | ||
| return this.page | ||
| .locator('.empty fade center') |
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.
Isn't there a better selector than those coming from Bootstrap?
| } | ||
|
|
||
| get orderNumber() { | ||
| return this.row.getByTestId('order-number-0'); |
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.
Is the -0 working? The idea of that was that the number at the end is the row number
| } | ||
|
|
||
| get receivingBin() { | ||
| return this.row.getByTestId('cell-undefined-undefined'); |
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.
this -undefined-undefined data-testid should be fixed 😢
| await test.step('Change location to another depot', async () => { | ||
| await navbar.locationChooserButton.click(); | ||
| await locationChooser | ||
| .getOrganization(depotLocation.organization?.name as string) |
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.
Why is it cast to a string? I think here we should be sure that the name is not null, so the type casting shouldn't be required
| await test.step('Return to main location', async () => { | ||
| await authService.changeLocation(AppConfig.instance.locations.main.id); | ||
| }); |
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.
Shouldn't you somehow check if that redirect works?
Added test for changing location on create putaway page and assert its content and change location on list putaway page