Skip to content

Conversation

@kkrawczyk123
Copy link
Collaborator

Added test for changing location on create putaway page and assert its content and change location on list putaway page


get emptyPutawayList() {
return this.page
.locator('.empty fade center')
Copy link
Collaborator

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');
Copy link
Collaborator

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');
Copy link
Collaborator

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)
Copy link
Collaborator

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

Comment on lines +187 to +189
await test.step('Return to main location', async () => {
await authService.changeLocation(AppConfig.instance.locations.main.id);
});
Copy link
Collaborator

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?

@alannadolny alannadolny merged commit f00d68a into main Dec 19, 2025
1 check failed
@alannadolny alannadolny deleted the OBPIH-7532 branch December 19, 2025 15:46
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.

3 participants