Skip to content

Commit 89ab1d7

Browse files
authored
Merge pull request #1455 from IgniteUI/nalipiev/update-wc-test-playwright
feat(wc): update tests to use Playwright
2 parents e497b68 + 5ba55bc commit 89ab1d7

File tree

9 files changed

+56
-39
lines changed

9 files changed

+56
-39
lines changed

packages/cli/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "igniteui-cli",
3-
"version": "14.8.1",
3+
"version": "14.8.2-beta.4",
44
"description": "CLI tool for creating Ignite UI projects",
55
"keywords": [
66
"CLI",
@@ -76,8 +76,8 @@
7676
"all": true
7777
},
7878
"dependencies": {
79-
"@igniteui/angular-templates": "~21.0.1481",
80-
"@igniteui/cli-core": "~14.8.1",
79+
"@igniteui/angular-templates": "~21.0.1482-beta.4",
80+
"@igniteui/cli-core": "~14.8.2-beta.4",
8181
"@inquirer/prompts": "^7.9.0",
8282
"@types/yargs": "^17.0.33",
8383
"chalk": "^5.3.0",

packages/cli/templates/webcomponents/igc-ts/projects/_base/files/__dot__azure/azure-pipelines.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,9 @@ steps:
1919
continueOnError: true
2020
- script: npm run build
2121
displayName: 'Build the project'
22+
- script: npx playwright install chromium-headless-shell
23+
displayName: 'Install Playwright browsers'
2224
- script: npm run test
2325
displayName: 'Run tests'
26+
env:
27+
CI: 'true'

packages/cli/templates/webcomponents/igc-ts/projects/_base/files/__dot__github/workflows/node.js.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,9 @@ jobs:
2929
- run: npm i # replace with 'npm ci' after committing lock file from first install
3030
# - run: npm run lint
3131
- run: npm run build
32+
- name: Install Playwright browsers
33+
run: npx playwright install chromium-headless-shell
3234
- run: npm run test
35+
env:
36+
CI: 'true'
3337

packages/cli/templates/webcomponents/igc-ts/projects/_base/files/package.json

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,23 +26,24 @@
2626
"igniteui-webcomponents": "~6.3.0"
2727
},
2828
"devDependencies": {
29-
"@babel/preset-env": "^7.20.2",
30-
"@typescript-eslint/eslint-plugin": "^8.21.0",
31-
"@typescript-eslint/parser": "^8.21.0",
29+
"@babel/preset-env": "^7.28.3",
30+
"@typescript-eslint/eslint-plugin": "^8.46.0",
31+
"@typescript-eslint/parser": "^8.46.0",
3232
"@web/dev-server": "^0.4.6",
3333
"babel-plugin-template-html-minifier": "^4.1.0",
34-
"concurrently": "^9.1.2",
35-
"deepmerge": "^4.2.2",
34+
"concurrently": "^9.2.1",
35+
"deepmerge": "^4.3.1",
3636
"eslint": "^9.20.0",
37-
"eslint-plugin-lit": "^1.8.2",
37+
"eslint-plugin-lit": "^2.1.1",
3838
"igniteui-cli": "~14.8.0",
39-
"jsdom": "^26.1.0",
40-
"rimraf": "^5.0.10",
41-
"source-map": "^0.7.4",
39+
"playwright": "^1.55.1",
40+
"rimraf": "^6.0.1",
41+
"source-map": "^0.7.6",
4242
"tslib": "^2.8.1",
43-
"vite": "^6.0.10",
44-
"vite-plugin-pwa": "^0.21.1",
45-
"vite-plugin-static-copy": "^2.2.0",
46-
"vitest": "^3.1.3"
43+
"vite": "^7.1.16",
44+
"vite-plugin-pwa": "^1.0.3",
45+
"vite-plugin-static-copy": "^3.1.3",
46+
"vitest": "^3.2.4",
47+
"@vitest/browser": "^3.2.4"
4748
}
4849
}

packages/cli/templates/webcomponents/igc-ts/projects/_base/files/vite.config.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { defineConfig } from 'vite';
1+
import { defineConfig } from 'vitest/config';
22
import { VitePWA } from 'vite-plugin-pwa';
33
import { viteStaticCopy } from 'vite-plugin-static-copy';
44

@@ -21,8 +21,15 @@ export default defineConfig({
2121
chunkSizeWarningLimit: 10 * 1024 * 1024 // 10 MB
2222
},
2323
test: {
24-
environment: 'jsdom',
25-
include: ['test/src/app/**/*.test.js']
24+
browser: {
25+
enabled: true,
26+
provider: 'playwright',
27+
instances: [
28+
{
29+
browser: 'chromium'
30+
},
31+
],
32+
},
2633
},
2734
plugins: [
2835
/** Copy static assets */

packages/cli/templates/webcomponents/igc-ts/projects/_base_with_home/files/package.json

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -34,23 +34,24 @@
3434
"typescript": "~5.7.2"
3535
},
3636
"devDependencies": {
37-
"@babel/preset-env": "^7.20.2",
38-
"@typescript-eslint/eslint-plugin": "^8.21.0",
39-
"@typescript-eslint/parser": "^8.21.0",
37+
"@babel/preset-env": "^7.28.3",
38+
"@typescript-eslint/eslint-plugin": "^8.46.0",
39+
"@typescript-eslint/parser": "^8.46.0",
4040
"@web/dev-server": "^0.4.6",
4141
"babel-plugin-template-html-minifier": "^4.1.0",
42-
"concurrently": "^9.1.2",
43-
"deepmerge": "^4.2.2",
42+
"concurrently": "^9.2.1",
43+
"deepmerge": "^4.3.1",
4444
"eslint": "^9.20.0",
45-
"eslint-plugin-lit": "^1.8.2",
46-
"igniteui-cli": "^14.8.0",
47-
"jsdom": "^26.1.0",
48-
"rimraf": "^5.0.10",
49-
"source-map": "^0.7.4",
45+
"eslint-plugin-lit": "^2.1.1",
46+
"igniteui-cli": "~14.8.0",
47+
"playwright": "^1.55.1",
48+
"rimraf": "^6.0.1",
49+
"source-map": "^0.7.6",
5050
"tslib": "^2.8.1",
51-
"vite": "^6.0.10",
52-
"vite-plugin-pwa": "^0.21.1",
53-
"vite-plugin-static-copy": "^2.2.0",
54-
"vitest": "^3.1.3"
51+
"vite": "^7.1.16",
52+
"vite-plugin-pwa": "^1.0.3",
53+
"vite-plugin-static-copy": "^3.1.3",
54+
"vitest": "^3.2.4",
55+
"@vitest/browser": "^3.2.4"
5556
}
5657
}

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@igniteui/cli-core",
3-
"version": "14.8.1",
3+
"version": "14.8.2-beta.4",
44
"description": "Base types and functionality for Ignite UI CLI",
55
"repository": {
66
"type": "git",

packages/igx-templates/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@igniteui/angular-templates",
3-
"version": "21.0.1481",
3+
"version": "21.0.1482-beta.4",
44
"description": "Templates for Ignite UI for Angular projects and components",
55
"repository": {
66
"type": "git",
@@ -12,7 +12,7 @@
1212
"author": "Infragistics",
1313
"license": "MIT",
1414
"dependencies": {
15-
"@igniteui/cli-core": "~14.8.1",
15+
"@igniteui/cli-core": "~14.8.2-beta.4",
1616
"typescript": "~5.5.4"
1717
}
1818
}

packages/ng-schematics/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@igniteui/angular-schematics",
3-
"version": "21.0.1481",
3+
"version": "21.0.1482-beta.4",
44
"description": "Ignite UI for Angular Schematics for ng new and ng generate",
55
"repository": {
66
"type": "git",
@@ -20,8 +20,8 @@
2020
"dependencies": {
2121
"@angular-devkit/core": "^19.0.0",
2222
"@angular-devkit/schematics": "^19.0.0",
23-
"@igniteui/angular-templates": "~21.0.1481",
24-
"@igniteui/cli-core": "~14.8.1",
23+
"@igniteui/angular-templates": "~21.0.1482-beta.4",
24+
"@igniteui/cli-core": "~14.8.2-beta.4",
2525
"@schematics/angular": "~19.0.0",
2626
"minimatch": "^10.0.1",
2727
"rxjs": "^7.8.1"

0 commit comments

Comments
 (0)