Skip to content

Commit

Permalink
(chocolatey#410) Update paths for Playwright Imports
Browse files Browse the repository at this point in the history
This updates the paths to imports done in
Playwright tests to reflect the correct location.
  • Loading branch information
st3phhays committed Jun 13, 2024
1 parent 368fc0f commit 57c0786
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -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 '../../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, packageCounts, packagingSelect } from './util';

test('test-add-on-packaging', async ({ page }) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -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 }) => {
Expand Down
2 changes: 1 addition & 1 deletion playwright/tests/pricing-calculator/included-items.spec.ts
Original file line number Diff line number Diff line change
@@ -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 }) => {
Expand Down
2 changes: 1 addition & 1 deletion playwright/tests/pricing-calculator/price.spec.ts
Original file line number Diff line number Diff line change
@@ -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 }) => {
Expand Down
2 changes: 1 addition & 1 deletion playwright/tests/pricing-calculator/support-types.spec.ts
Original file line number Diff line number Diff line change
@@ -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 }) => {
Expand Down
10 changes: 0 additions & 10 deletions playwright/tsconfig.json

This file was deleted.

0 comments on commit 57c0786

Please sign in to comment.