@@ -77,8 +77,7 @@ test.describe('Export items template on inbound add items page', () => {
7777
7878 test ( 'Downloaded template should contain all added items' , async ( {
7979 createInboundPage,
80- mainProductService,
81- otherProductService,
80+ productService,
8281 mainUserService,
8382 } ) => {
8483 await test . step ( 'Go to inbound list page' , async ( ) => {
@@ -87,8 +86,9 @@ test.describe('Export items template on inbound add items page', () => {
8786 await createInboundPage . addItemsStep . isLoaded ( ) ;
8887 } ) ;
8988
90- const PRODUCT_ONE = await mainProductService . getProduct ( ) ;
91- const PRODUCT_TWO = await otherProductService . getProduct ( ) ;
89+ const PRODUCT_ONE = await productService . getProduct ( ) ;
90+ productService . setProduct ( '2' ) ;
91+ const PRODUCT_TWO = await productService . getProduct ( ) ;
9292 const USER = await mainUserService . getUser ( ) ;
9393
9494 const ROWS = [
@@ -178,8 +178,7 @@ test.describe('Import template with data', () => {
178178
179179 test ( 'Import filled template on an empty table' , async ( {
180180 createInboundPage,
181- mainProductService,
182- otherProductService,
181+ productService,
183182 mainUserService,
184183 } ) => {
185184 await test . step ( 'Go to inbound list page' , async ( ) => {
@@ -198,8 +197,9 @@ test.describe('Import template with data', () => {
198197 workbooks . push ( downloadedTemplateFile ) ;
199198 } ) ;
200199
201- const PRODUCT_ONE = await mainProductService . getProduct ( ) ;
202- const PRODUCT_TWO = await otherProductService . getProduct ( ) ;
200+ const PRODUCT_ONE = await productService . getProduct ( ) ;
201+ productService . setProduct ( '2' ) ;
202+ const PRODUCT_TWO = await productService . getProduct ( ) ;
203203 const USER = await mainUserService . getUser ( ) ;
204204
205205 const ROWS = [
@@ -259,8 +259,7 @@ test.describe('Import template with data', () => {
259259
260260 test . skip ( 'Update existing values with template import' , async ( {
261261 createInboundPage,
262- otherProductService,
263- mainProductService,
262+ productService,
264263 altUserService,
265264 mainUserService,
266265 } ) => {
@@ -272,7 +271,7 @@ test.describe('Import template with data', () => {
272271 } ) ;
273272
274273 await test . step ( 'Add items to table' , async ( ) => {
275- const PRODUCT_ONE = await mainProductService . getProduct ( ) ;
274+ const PRODUCT_ONE = await productService . getProduct ( ) ;
276275 const USER = await mainUserService . getUser ( ) ;
277276
278277 const ROWS = [
@@ -307,7 +306,8 @@ test.describe('Import template with data', () => {
307306 parsedDocumentData = downloadedTemplateFile . sheetToJSON ( ) ;
308307 } ) ;
309308
310- const PRODUCT_TWO = await otherProductService . getProduct ( ) ;
309+ productService . setProduct ( '2' ) ;
310+ const PRODUCT_TWO = await productService . getProduct ( ) ;
311311 const ALT_USER = await altUserService . getUser ( ) ;
312312
313313 const NEW_ROW = {
@@ -352,8 +352,7 @@ test.describe('Import template with data', () => {
352352
353353 test ( 'Add new row to with existing items in the table' , async ( {
354354 createInboundPage,
355- otherProductService,
356- mainProductService,
355+ productService,
357356 altUserService,
358357 mainUserService,
359358 } ) => {
@@ -365,7 +364,7 @@ test.describe('Import template with data', () => {
365364
366365 let ROW : CreateInboundAddItemsTableEntity ;
367366 await test . step ( 'Add items to table' , async ( ) => {
368- const PRODUCT_ONE = await mainProductService . getProduct ( ) ;
367+ const PRODUCT_ONE = await productService . getProduct ( ) ;
369368 const USER = await mainUserService . getUser ( ) ;
370369
371370 ROW = {
@@ -397,7 +396,8 @@ test.describe('Import template with data', () => {
397396 parsedDocumentData = downloadedTemplateFile . sheetToJSON ( ) ;
398397 } ) ;
399398
400- const PRODUCT_TWO = await otherProductService . getProduct ( ) ;
399+ productService . setProduct ( '2' )
400+ const PRODUCT_TWO = await productService . getProduct ( ) ;
401401 const ALT_USER = await altUserService . getUser ( ) ;
402402
403403 const NEW_ROW = {
0 commit comments