Skip to content

OBPIH-6952 Add test for asserting receiving bin location is created#45

Merged
awalkowiak merged 5 commits intomainfrom
OBPIH-6952
Feb 11, 2025
Merged

OBPIH-6952 Add test for asserting receiving bin location is created#45
awalkowiak merged 5 commits intomainfrom
OBPIH-6952

Conversation

@kkrawczyk123
Copy link
Collaborator

Add test for asserting receiving bin location is created

});

await test.step('Assert Bin location is not created yet', async () => {
const receivingBin = 'R-' + STOCK_MOVEMENT.identifier;
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it would be worth to move R- to a global const or even an environment variable, because this is configurable, and once changed on the OB system config, you'd need to update it everywhere.

Copy link
Contributor

Choose a reason for hiding this comment

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

@kkrawczyk123 I think you can add it to the .env file, and load it in the AppConfig or LocationConfig, and there you can load it from the env with a fallback to R-

@awalkowiak awalkowiak merged commit 7daa39f into main Feb 11, 2025
1 check passed
@awalkowiak awalkowiak deleted the OBPIH-6952 branch February 11, 2025 16:36
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