Skip to content

OBPIH-7920 Putaway - add comment to putaway#95

Open
kkrawczyk123 wants to merge 6 commits into
mainfrom
OBPIH-7920
Open

OBPIH-7920 Putaway - add comment to putaway#95
kkrawczyk123 wants to merge 6 commits into
mainfrom
OBPIH-7920

Conversation

@kkrawczyk123

Copy link
Copy Markdown
Collaborator

added:

  • test for adding comments to putaway
  • new pages and elements
  • fixed typo in the button's name

@kkrawczyk123 kkrawczyk123 requested a review from alannadolny July 1, 2026 10:30
Comment on lines +51 to +61
get commentContent() {
return this.row.getByRole('cell').nth(2);
}

get recipientContent() {
return this.row.getByRole('cell').nth(0);
}

get senderContent() {
return this.row.getByRole('cell').nth(1);
}

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.

Why not just comment, recipient and sender?

}

get recipientDropdown() {
return this.page.locator('#recipient_id_chosen .chosen-single');

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.

:(

}

get recipientOptions() {
return this.page.locator('#recipient_id_chosen .chosen-results li');

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.

:(


get orderNumberValue() {
return this.page.locator(
'[data-testid=\'wizardTitle\'] > div > span:nth-of-type(2)'

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.

:(((((((((((((((((((( Can you make something like byDataTestId and then check if this container has a child?

Comment on lines +167 to +170
await expect(putawayDetailsPage.badgeCount).toHaveAttribute(
'data-count',
'1'
);

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.

What's that?

Comment on lines +320 to +323
putawayListPage.table.rowByOrderNumber(
`${putawayOrderIdentifier}`.toString().trim()
).orderNumber
).toContainText(`${putawayOrderIdentifier}`);

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.

You can assign the duplicated value to a const and then assert it shorter.

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