Skip to content

Commit

Permalink
NXP-32299 : Enable frontend unit tests in CI pipeline checks
Browse files Browse the repository at this point in the history
  • Loading branch information
swarnadipa-dev committed Feb 28, 2024
1 parent 03108e7 commit 886fc36
Show file tree
Hide file tree
Showing 5 changed files with 420 additions and 139 deletions.
11 changes: 11 additions & 0 deletions ci/Jenkinsfiles/build.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,17 @@ pipeline {
steps {
script {
def stages = [:]
stages['Frontend'] = {
container('playwright') {
nxWithGitHubStatus(context: 'utests/frontend') {
dir('nuxeo-retention-web') {
sh 'npm install --no-save playwright'
sh 'npx playwright install --with-deps'
sh 'npm run test'
}
}
}
}
stages['Backend - dev'] = {
container('maven') {
nxWithGitHubStatus(context: 'utests/backend/dev') {
Expand Down
125 changes: 0 additions & 125 deletions nuxeo-retention-web/karma.conf.js

This file was deleted.

24 changes: 10 additions & 14 deletions nuxeo-retention-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,34 +6,30 @@
"license": "Apache-2.0",
"devDependencies": {
"@cucumber/cucumber": "^7.0.0",
"@esm-bundle/chai": "^4.3.4",
"@nuxeo/moment": "^2.24.0-nx.0",
"@nuxeo/nuxeo-web-ui-ftest": "3.0.27-rc.0",
"@nuxeo/testing-helpers": "^3.1.5",
"@open-wc/karma-esm": "^2.16.18",
"@rollup/plugin-node-resolve": "^7.1.3",
"chai": "^5.0.3",
"@web/dev-server-legacy": "^0.1.7",
"@web/test-runner": "^0.13.31",
"@web/test-runner-playwright": "^0.8.10",
"@web/test-runner-saucelabs": "^0.5.0",
"chai": "^5.1.0",
"eslint": "^7.12.1",
"eslint-config-airbnb-base": "^14.2.0",
"eslint-config-prettier": "^6.15.0",
"eslint-plugin-html": "^6.1.0",
"eslint-plugin-import": "^2.22.1",
"husky": "^4.3.0",
"karma": "^6.4.2",
"karma-chrome-launcher": "^3.2.0",
"karma-coverage-istanbul-reporter": "^3.0.3",
"karma-firefox-launcher": "^2.1.2",
"karma-mocha": "^2.0.1",
"karma-mocha-reporter": "^2.2.5",
"karma-sauce-launcher": "^4.3.6",
"karma-sinon-chai": "^2.0.2",
"karma-source-map-support": "^1.4.0",
"karma-static": "^1.0.1",
"lint-staged": "^10.5.1",
"polymer-cli": "^1.9.11",
"prettier": "2.1.2",
"rollup": "^2.33.1",
"rollup-plugin-copy": "^3.3.0",
"rollup-plugin-minify-html-literals": "^1.2.5",
"rollup-plugin-terser": "^7.0.2",
"sinon": "^17.0.1",
"sinon-chai": "^3.7.0"
},
"dependencies": {
Expand Down Expand Up @@ -67,7 +63,7 @@
"format:prettier": "prettier \"**/*.{js,html}\" --write",
"ftest": "cd ftest && nuxeo-web-ui-ftest --screenshots --report --headless",
"ftest:watch": "cd ftest && nuxeo-web-ui-ftest --debug --tags=@watch",
"test": "karma start --coverage",
"test:watch": "karma start --auto-watch=true --single-run=false"
"test": "web-test-runner",
"test:watch": "web-test-runner --watch"
}
}
Loading

0 comments on commit 886fc36

Please sign in to comment.