Skip to content
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

OBPIH-6683 Add tests for validation on delivered on date in receiving #41

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

kkrawczyk123
Copy link
Collaborator

Add tests for validation on delivered on date in receiving and additionally added tests for save and save and exit after qty input in receiving

);

test.afterEach(async ({ stockMovementShowPage, stockMovementService }) => {
await stockMovementShowPage.goToPage(STOCK_MOVEMENT.id);

Choose a reason for hiding this comment

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

don't we need a null safe here, in case the stock movement has not been created successfully in the beforeEach?
I assume the test would fail, but it would not be the test that failed, but the error saying "cannot read property id of undefined"

src/pages/receiving/steps/CheckStep.ts Outdated Show resolved Hide resolved
src/pages/receiving/steps/CheckStep.ts Outdated Show resolved Hide resolved
src/components/DatePicker.ts Show resolved Hide resolved
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