Skip to content

OBPIH-8025 adjust receiving tests to new receiving ui - #104

Open
kkrawczyk123 wants to merge 3 commits into
mainfrom
OBPIH-8025
Open

kkrawczyk123 wants to merge 3 commits into
mainfrom
OBPIH-8025

Conversation

@kkrawczyk123

Copy link
Copy Markdown
Collaborator
  • update selectors for receiving pages
  • fix for putaway candidate leftover
  • adjust receiving tests to new receiving ui

Comment thread src/api/PutawayService.ts
Comment on lines +33 to +39
/**
Recalculates product_availability for a location from the transaction
ledger. Putaway candidates are read from product_availability rather than
the ledger directly, so a candidate can go stale (stuck at a quantity the
ledger no longer backs) after a shipment gets rolled back and deleted;
this is the app's own admin action for reconciling it.
*/

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The comment is about putaways, and the service is related to putaways, but the method should be generic. It's not only for putaways, so it should be in a different file, with a more generic comment

Comment on lines +35 to +37
return this.shimpentInformation.locator(
'.item-details__field:has-text("Origin:") .item-details__value'
);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

we should change that

Comment on lines +349 to +350
await expect(receivingPage.receivingStep.autosaveStatus).toContainText(
'Your work is auto-saved'

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

i think the autosaveStatus can have assertions inside methods, I mean:
await receivingPage.receivingStep.autosaveStatus.isSaved()
etc.

This branch has not been deployed

No deployments
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