From f6cb90a7bd1940f122141d32c9f74595896c9034 Mon Sep 17 00:00:00 2001 From: Dmytro Asieiev Date: Fri, 29 Mar 2024 11:43:39 +0300 Subject: [PATCH 1/2] Added additional quotes by dynamic fixtures. --- .../dynamic-return-creation.json | 38 ++++++++++++++++++- .../types/backoffice/return-management.ts | 4 +- 2 files changed, 37 insertions(+), 5 deletions(-) diff --git a/cypress/fixtures/suite/backoffice/return-management/dynamic-return-creation.json b/cypress/fixtures/suite/backoffice/return-management/dynamic-return-creation.json index b92bf7ca..38345780 100644 --- a/cypress/fixtures/suite/backoffice/return-management/dynamic-return-creation.json +++ b/cypress/fixtures/suite/backoffice/return-management/dynamic-return-creation.json @@ -97,7 +97,6 @@ { "type": "helper", "name": "havePersistentQuote", - "key": "quote1", "arguments": [ { "customer": "#customer", @@ -116,7 +115,42 @@ { "type": "helper", "name": "havePersistentQuote", - "key": "quote2", + "arguments": [ + { + "customer": "#customer", + "items": [ + { + "sku": "#product.sku", + "abstractSku": "#product.abstract_sku", + "name": "#product.name", + "quantity": 1, + "unitPrice": 30000 + } + ] + } + ] + }, + { + "type": "helper", + "name": "havePersistentQuote", + "arguments": [ + { + "customer": "#customer", + "items": [ + { + "sku": "#product.sku", + "abstractSku": "#product.abstract_sku", + "name": "#product.name", + "quantity": 1, + "unitPrice": 30000 + } + ] + } + ] + }, + { + "type": "helper", + "name": "havePersistentQuote", "arguments": [ { "customer": "#customer", diff --git a/cypress/support/types/backoffice/return-management.ts b/cypress/support/types/backoffice/return-management.ts index 218918ae..7d58a034 100644 --- a/cypress/support/types/backoffice/return-management.ts +++ b/cypress/support/types/backoffice/return-management.ts @@ -1,12 +1,10 @@ -import { Address, Customer, Product, Quote, User } from './shared'; +import { Address, Customer, Product, User } from './shared'; export interface ReturnCreationDynamicFixtures { rootUser: User; customer: Customer; address: Address; product: Product; - quote1: Quote; - quote2: Quote; } export interface ReturnManagementStaticFixtures { From 482150669b75f70b3a2501c65a1b506dafad357c Mon Sep 17 00:00:00 2001 From: Dmytro Asieiev Date: Fri, 29 Mar 2024 11:50:03 +0300 Subject: [PATCH 2/2] Removed deprecated package. --- package-lock.json | 12 +----------- package.json | 2 +- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/package-lock.json b/package-lock.json index f5ceb481..55f96e02 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,10 +11,10 @@ "devDependencies": { "@cypress/grep": "^4.0.1", "@faker-js/faker": "^8.3.1", - "@types/dotenv": "^8.2.0", "@typescript-eslint/eslint-plugin": "^6.21.0", "@typescript-eslint/parser": "^6.13.1", "cypress": "^13.7.1", + "dotenv": "^16.4.5", "eslint": "^8.57.0", "eslint-plugin-cypress": "^2.15.1", "inversify": "^6.0.2", @@ -877,16 +877,6 @@ "node": ">= 8" } }, - "node_modules/@types/dotenv": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/@types/dotenv/-/dotenv-8.2.0.tgz", - "integrity": "sha512-ylSC9GhfRH7m1EUXBXofhgx4lUWmFeQDINW5oLuS+gxWdfUeW4zJdeVTYVkexEW+e2VUvlZR2kGnGGipAWR7kw==", - "deprecated": "This is a stub types definition. dotenv provides its own type definitions, so you do not need this installed.", - "dev": true, - "dependencies": { - "dotenv": "*" - } - }, "node_modules/@types/json-schema": { "version": "7.0.15", "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", diff --git a/package.json b/package.json index 1896e6d3..614ea6cc 100644 --- a/package.json +++ b/package.json @@ -29,10 +29,10 @@ "devDependencies": { "@cypress/grep": "^4.0.1", "@faker-js/faker": "^8.3.1", - "@types/dotenv": "^8.2.0", "@typescript-eslint/eslint-plugin": "^6.21.0", "@typescript-eslint/parser": "^6.13.1", "cypress": "^13.7.1", + "dotenv": "^16.4.5", "eslint": "^8.57.0", "eslint-plugin-cypress": "^2.15.1", "inversify": "^6.0.2",