From d93bb3cc3695a70547a197535b2dbcc8746db21c Mon Sep 17 00:00:00 2001 From: Stephanie Hays Date: Thu, 13 Jun 2024 13:24:59 -0500 Subject: [PATCH] (#410) Update paths for Playwright Imports This updates the paths to imports done in Playwright tests to reflect the correct location. --- .../tests/pricing-calculator/add-on-packages.spec.ts | 2 +- .../pricing-calculator/add-on-standard-support.spec.ts | 2 +- .../tests/pricing-calculator/included-items.spec.ts | 2 +- playwright/tests/pricing-calculator/price.spec.ts | 2 +- .../tests/pricing-calculator/support-types.spec.ts | 2 +- playwright/tsconfig.json | 10 ---------- 6 files changed, 5 insertions(+), 15 deletions(-) delete mode 100644 playwright/tsconfig.json diff --git a/playwright/tests/pricing-calculator/add-on-packages.spec.ts b/playwright/tests/pricing-calculator/add-on-packages.spec.ts index f1e76e7f..22da5e99 100644 --- a/playwright/tests/pricing-calculator/add-on-packages.spec.ts +++ b/playwright/tests/pricing-calculator/add-on-packages.spec.ts @@ -1,7 +1,7 @@ import { test, expect } from '@playwright/test'; // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore -import { c4bAddOnPrice } from 'choco-theme/js/src/ts/util/pricing-calculator'; // This is ignored since this is the correct location after it is imported into the repository by gulp +import { c4bAddOnPrice } from '../../../choco-theme/js/src/ts/util/pricing-calculator'; // This is ignored since this is the correct location after it is imported into the repository by gulp import { addOnContainer, packageCounts, packagingSelect } from './util'; test('test-add-on-packaging', async ({ page }) => { diff --git a/playwright/tests/pricing-calculator/add-on-standard-support.spec.ts b/playwright/tests/pricing-calculator/add-on-standard-support.spec.ts index 1c5754f7..90919598 100644 --- a/playwright/tests/pricing-calculator/add-on-standard-support.spec.ts +++ b/playwright/tests/pricing-calculator/add-on-standard-support.spec.ts @@ -1,7 +1,7 @@ import { test, expect } from '@playwright/test'; // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore -import { c4bSupportNodes, c4bAddOnPrice } from 'choco-theme/js/src/ts/util/pricing-calculator'; // This is ignored since this is the correct location after it is imported into the repository by gulp +import { c4bSupportNodes, c4bAddOnPrice } from '../../node_modules/choco-theme/js/src/ts/util/pricing-calculator'; // This is ignored since this is the correct location after it is imported into the repository by gulp import { addOnContainer, communitySupportCheckboxBtn, numberInput, standardSupportCheckboxBtn } from './util'; test('test-add-on-standard-support', async ({ page }) => { diff --git a/playwright/tests/pricing-calculator/included-items.spec.ts b/playwright/tests/pricing-calculator/included-items.spec.ts index 3167e255..b53be6c9 100644 --- a/playwright/tests/pricing-calculator/included-items.spec.ts +++ b/playwright/tests/pricing-calculator/included-items.spec.ts @@ -1,7 +1,7 @@ import { test, expect } from '@playwright/test'; // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore -import { c4bIncludedItems } from 'choco-theme/js/src/ts/util/pricing-calculator'; // This is ignored since this is the correct location after it is imported into the repository by gulp +import { c4bIncludedItems } from '../../node_modules/choco-theme/js/src/ts/util/pricing-calculator'; // This is ignored since this is the correct location after it is imported into the repository by gulp import { addOnContainer, numberInput, premiumSupportCheckboxBtn } from './util'; test('test-included-items', async ({ page }) => { diff --git a/playwright/tests/pricing-calculator/price.spec.ts b/playwright/tests/pricing-calculator/price.spec.ts index bd4e0046..c9619ca6 100644 --- a/playwright/tests/pricing-calculator/price.spec.ts +++ b/playwright/tests/pricing-calculator/price.spec.ts @@ -1,7 +1,7 @@ import { test, expect } from '@playwright/test'; // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore -import { c4bStandardSubscription, c4bPremiumSubscription, c4bAddOnPrice, C4bSubscription } from 'choco-theme/js/src/ts/util/pricing-calculator'; // This is ignored since this is the correct location after it is imported into the repository by gulp +import { c4bStandardSubscription, c4bPremiumSubscription, c4bAddOnPrice, C4bSubscription } from '../../node_modules/choco-theme/js/src/ts/util/pricing-calculator'; // This is ignored since this is the correct location after it is imported into the repository by gulp import { numberInput, packageCounts, packagingSelect, premiumSupportCheckboxBtn, standardSupportCheckboxBtn } from './util'; test('test-price', async ({ page }) => { diff --git a/playwright/tests/pricing-calculator/support-types.spec.ts b/playwright/tests/pricing-calculator/support-types.spec.ts index 36209aaa..d1365662 100644 --- a/playwright/tests/pricing-calculator/support-types.spec.ts +++ b/playwright/tests/pricing-calculator/support-types.spec.ts @@ -1,7 +1,7 @@ import { test, expect } from '@playwright/test'; // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore -import { c4bSupportNodes } from 'choco-theme/js/src/ts/util/pricing-calculator'; // This is ignored since this is the correct location after it is imported into the repository by gulp +import { c4bSupportNodes } from '../../node_modules/choco-theme/js/src/ts/util/pricing-calculator'; // This is ignored since this is the correct location after it is imported into the repository by gulp import { numberInput } from './util'; test('test-support-types', async ({ page }) => { diff --git a/playwright/tsconfig.json b/playwright/tsconfig.json deleted file mode 100644 index 85f356a7..00000000 --- a/playwright/tsconfig.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "compilerOptions": { - "noImplicitAny": true, - "removeComments": true, - "preserveConstEnums": true, - "target": "ESNext", - "module": "commonjs", - "moduleResolution": "Node" - } -}