Skip to content

Commit 59ee5ba

Browse files
committed
OBPIH-6969 Fix incorrectly assigned product
1 parent b4544e8 commit 59ee5ba

29 files changed

+36
-0
lines changed

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();
@@ -194,6 +195,7 @@ test.describe('Values persistance between steps', () => {
194195
mainLocationService,
195196
supplierLocationService,
196197
}) => {
198+
productService.setProduct('1');
197199
const PRODUCT_ONE = await productService.getProduct();
198200
productService.setProduct('2');
199201
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
@@ -26,6 +26,7 @@ test.describe('Status changes for inbound sm on view sm and inbound list page',
2626
mainUserService,
2727
supplierLocationService,
2828
}) => {
29+
productService.setProduct('1');
2930
const PRODUCT_ONE = await productService.getProduct();
3031
productService.setProduct('2');
3132
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
@@ -83,6 +83,7 @@ test.describe('Export items template on inbound add items page', () => {
8383
await createInboundPage.addItemsStep.isLoaded();
8484
});
8585

86+
productService.setProduct('1');
8687
const PRODUCT_ONE = await productService.getProduct();
8788
productService.setProduct('2');
8889
const PRODUCT_TWO = await productService.getProduct();
@@ -192,6 +193,7 @@ test.describe('Import template with data', () => {
192193
workbooks.push(downloadedTemplateFile);
193194
});
194195

196+
productService.setProduct('1');
195197
const PRODUCT_ONE = await productService.getProduct();
196198
productService.setProduct('2');
197199
const PRODUCT_TWO = await productService.getProduct();
@@ -264,6 +266,7 @@ test.describe('Import template with data', () => {
264266
});
265267

266268
await test.step('Add items to table', async () => {
269+
productService.setProduct('1');
267270
const PRODUCT_ONE = await productService.getProduct();
268271
const USER = await mainUserService.getUser();
269272

@@ -356,6 +359,7 @@ test.describe('Import template with data', () => {
356359

357360
let ROW: CreateInboundAddItemsTableEntity;
358361
await test.step('Add items to table', async () => {
362+
productService.setProduct('1');
359363
const PRODUCT_ONE = await productService.getProduct();
360364
const USER = await mainUserService.getUser();
361365

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)