diff --git a/packages/ai/package.json b/packages/ai/package.json index 43c7acf31aad..76fbdf8e31ba 100644 --- a/packages/ai/package.json +++ b/packages/ai/package.json @@ -27,6 +27,7 @@ "bundle": "nps build.bundle", "test": "nps test-cy-ci", "test:cypress": "nps test-cy-ci", + "test:cypress:single": "nps test-cy-single", "test:cypress:open": "nps test-cy-open", "test:ssr": "node -e \"import('./test/ssr/component-imports.js')\"", "create-ui5-element": "wc-create-ui5-element", diff --git a/packages/fiori/package.json b/packages/fiori/package.json index 8e0028468d1d..7bc3276dcad0 100644 --- a/packages/fiori/package.json +++ b/packages/fiori/package.json @@ -43,6 +43,7 @@ "test": "wc-dev test", "test:ssr": "node -e \"import('./test/ssr/component-imports.js')\"", "test:cypress": "nps test-cy-ci", + "test:cypress:single": "nps test-cy-single", "test:cypress:open": "nps test-cy-open", "create-ui5-element": "wc-create-ui5-element", "prepublishOnly": "tsc -b" diff --git a/packages/main/package.json b/packages/main/package.json index db558015803d..7c431fb3efa4 100644 --- a/packages/main/package.json +++ b/packages/main/package.json @@ -32,6 +32,7 @@ "test:cypress:suite-1": "nps test-cy-ci-suite-1", "test:cypress:suite-2": "nps test-cy-ci-suite-2", "test:cypress:open": "nps test-cy-open", + "test:cypress:single": "nps test-cy-single", "test:vitest": "yarn vitest run", "test:ssr": "node -e \"import('./test/ssr/component-imports.js')\"", "create-ui5-element": "wc-create-ui5-element", diff --git a/packages/tools/components-package/nps.js b/packages/tools/components-package/nps.js index 8e3e3793901d..534ef50c7632 100644 --- a/packages/tools/components-package/nps.js +++ b/packages/tools/components-package/nps.js @@ -126,6 +126,7 @@ const getScripts = (options) => { "test-cy-ci-suite-1": `cross-env CYPRESS_COVERAGE=true TEST_SUITE=SUITE1 yarn cypress run --component --browser chrome`, "test-cy-ci-suite-2": `cross-env CYPRESS_COVERAGE=true TEST_SUITE=SUITE2 yarn cypress run --component --browser chrome`, "test-cy-open": `cross-env CYPRESS_COVERAGE=true yarn cypress open --component --browser chrome`, + "test-cy-single": `cross-env yarn cypress run --component --browser chrome --spec ${process.argv[3]}`, "test-suite-1": `node "${LIB}/test-runner/test-runner.js" --suite suite1`, "test-suite-2": `node "${LIB}/test-runner/test-runner.js" --suite suite2`, startWithScope: "nps scope.prepare scope.watchWithBundle",