Skip to content

Commit f8e2d2e

Browse files
committed
OBPIH-6969 Fix incorrectly assigned product
1 parent 28d5723 commit f8e2d2e

35 files changed

Lines changed: 60 additions & 1 deletion

src/tests/inbound/createInbound/createInbound.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ test.describe('Create inbound stock movement', () => {
2323
supplierLocationService,
2424
mainLocationService,
2525
}) => {
26+
productService.setProduct('1');
2627
const PRODUCT_ONE = await productService.getProduct();
2728
productService.setProduct('2');
2829
const PRODUCT_TWO = await productService.getProduct();
@@ -197,6 +198,7 @@ test.describe('Values persistance between steps', () => {
197198
mainLocationService,
198199
supplierLocationService,
199200
}) => {
201+
productService.setProduct('1');
200202
const PRODUCT_ONE = await productService.getProduct();
201203
productService.setProduct('2');
202204
const PRODUCT_TWO = await productService.getProduct();

src/tests/inbound/createInbound/downloadDocsFromSendPage.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ test.describe('Download documents from inbound send page', () => {
2020
mainUserService,
2121
supplierLocationService,
2222
}) => {
23+
productService.setProduct('1');
2324
const PRODUCT_ONE = await productService.getProduct();
2425
USER = await mainUserService.getUser();
2526
ORIGIN = await supplierLocationService.getLocation();

src/tests/inbound/createInbound/exportItems.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ test.describe('Export all incoming items', () => {
2121
const USER = await mainUserService.getUser();
2222
const TODAY = getToday();
2323

24+
productService.setProduct('1');
2425
const PRODUCT_ONE = await productService.getProduct();
2526
productService.setProduct('2');
2627
const PRODUCT_TWO = await productService.getProduct();

src/tests/inbound/createInbound/fieldValidation.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ test.beforeEach(
1616
createInboundPage,
1717
supplierLocationService,
1818
}) => {
19+
productService.setProduct('1');
1920
const PRODUCT_ONE = await productService.getProduct();
2021
USER = await mainUserService.getUser();
2122
ORIGIN = await supplierLocationService.getLocation();

src/tests/inbound/createInbound/inboundStatusChanges.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ test.describe('Status changes for inbound sm on view sm and inbound list page',
2222
mainUserService,
2323
supplierLocationService,
2424
}) => {
25+
productService.setProduct('1');
2526
const PRODUCT_ONE = await productService.getProduct();
2627
productService.setProduct('2');
2728
const PRODUCT_TWO = await productService.getProduct();

src/tests/inbound/createInbound/itemTemplate.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ test.describe('Export items template on inbound add items page', () => {
8686
await createInboundPage.addItemsStep.isLoaded();
8787
});
8888

89+
productService.setProduct('1');
8990
const PRODUCT_ONE = await productService.getProduct();
9091
productService.setProduct('2');
9192
const PRODUCT_TWO = await productService.getProduct();
@@ -197,6 +198,7 @@ test.describe('Import template with data', () => {
197198
workbooks.push(downloadedTemplateFile);
198199
});
199200

201+
productService.setProduct('1');
200202
const PRODUCT_ONE = await productService.getProduct();
201203
productService.setProduct('2');
202204
const PRODUCT_TWO = await productService.getProduct();
@@ -271,6 +273,7 @@ test.describe('Import template with data', () => {
271273
});
272274

273275
await test.step('Add items to table', async () => {
276+
productService.setProduct('1');
274277
const PRODUCT_ONE = await productService.getProduct();
275278
const USER = await mainUserService.getUser();
276279

@@ -364,6 +367,7 @@ test.describe('Import template with data', () => {
364367

365368
let ROW: CreateInboundAddItemsTableEntity;
366369
await test.step('Add items to table', async () => {
370+
productService.setProduct('1');
367371
const PRODUCT_ONE = await productService.getProduct();
368372
const USER = await mainUserService.getUser();
369373

src/tests/inbound/createInbound/packLevels.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ test.beforeEach(
1313
createInboundPage,
1414
supplierLocationService,
1515
}) => {
16+
productService.setProduct('1');
1617
const PRODUCT_ONE = await productService.getProduct();
1718
const USER = await mainUserService.getUser();
1819
const ORIGIN = await supplierLocationService.getLocation();

src/tests/inbound/createInbound/saveAndExit.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ test.beforeEach(
1313
createInboundPage,
1414
supplierLocationService,
1515
}) => {
16+
productService.setProduct('1');
1617
const PRODUCT_ONE = await productService.getProduct();
1718
const USER = await mainUserService.getUser();
1819
const ORIGIN = await supplierLocationService.getLocation();

src/tests/inbound/createInbound/selectPersonInRequestedBy.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ test.describe('Select person in requested by', () => {
2424
personsListPage,
2525
createPersonPage,
2626
}) => {
27+
productService.setProduct('1');
2728
const PRODUCT_ONE = await productService.getProduct();
2829
ORIGIN = await supplierLocationService.getLocation();
2930

src/tests/inbound/createInbound/switchLocations.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ test.describe('Switching location on inbound stock movement', () => {
1515
createInboundPage,
1616
supplierLocationService,
1717
}) => {
18+
productService.setProduct('1');
1819
const PRODUCT_ONE = await productService.getProduct();
1920
const USER = await mainUserService.getUser();
2021
const ORIGIN = await supplierLocationService.getLocation();

0 commit comments

Comments
 (0)