From 6467be217431adb6be5280772994ce63b9502c23 Mon Sep 17 00:00:00 2001 From: rahuljain-dev Date: Thu, 29 Feb 2024 11:08:25 +0530 Subject: [PATCH 1/2] enable ftest back --- ci/Jenkinsfiles/build.groovy | 6 ++---- nuxeo-coldstorage-web/build.xml | 4 ++-- .../ftest/features/step_definitions/coldstorage.js | 1 + nuxeo-coldstorage-web/package.json | 3 +-- pom.xml | 2 +- 5 files changed, 7 insertions(+), 9 deletions(-) diff --git a/ci/Jenkinsfiles/build.groovy b/ci/Jenkinsfiles/build.groovy index fafbb07c..41435a96 100644 --- a/ci/Jenkinsfiles/build.groovy +++ b/ci/Jenkinsfiles/build.groovy @@ -54,7 +54,7 @@ Closure buildUnitTestStage(env) { pipeline { agent { - label 'jenkins-nuxeo-package-lts-2023' + label 'jenkins-nuxeo-package-lts-2023-node-18' } options { buildDiscarder(logRotator(daysToKeepStr: '60', numToKeepStr: '60', artifactNumToKeepStr: '5')) @@ -118,6 +118,7 @@ pipeline { container('playwright') { nxWithGitHubStatus(context: 'utests/frontend') { dir('nuxeo-coldstorage-web') { + sh 'npm install' sh 'npm install --no-save playwright' sh 'npx playwright install --with-deps' sh 'npm run test' @@ -163,8 +164,6 @@ pipeline { } } nxWithGitHubStatus(context: 'ftests') { - echo "Functional tests are disabled (https://jira.nuxeo.com/browse/WEBUI-1260 and https://jira.nuxeo.com/browse/WEBUI-1252)" - /* script { def testNamespace = "${CURRENT_NAMESPACE}-coldstorage-${BRANCH_NAME}-${BUILD_NUMBER}-ftests".replaceAll('\\.', '-').toLowerCase() def nuxeoParentVersion = readMavenPom().getParent().getVersion() @@ -179,7 +178,6 @@ pipeline { } } } - */ } } } diff --git a/nuxeo-coldstorage-web/build.xml b/nuxeo-coldstorage-web/build.xml index 3ec47f06..a50b1141 100644 --- a/nuxeo-coldstorage-web/build.xml +++ b/nuxeo-coldstorage-web/build.xml @@ -25,10 +25,10 @@ limitations under the License. - + - + diff --git a/nuxeo-coldstorage-web/ftest/features/step_definitions/coldstorage.js b/nuxeo-coldstorage-web/ftest/features/step_definitions/coldstorage.js index 3450ba38..b17f9425 100644 --- a/nuxeo-coldstorage-web/ftest/features/step_definitions/coldstorage.js +++ b/nuxeo-coldstorage-web/ftest/features/step_definitions/coldstorage.js @@ -1,4 +1,5 @@ import Nuxeo from 'nuxeo'; +// eslint-disable-next-line import/no-extraneous-dependencies import { When, Then, Before } from '@cucumber/cucumber'; Before(() => { diff --git a/nuxeo-coldstorage-web/package.json b/nuxeo-coldstorage-web/package.json index dc3056f7..f00ceb5c 100644 --- a/nuxeo-coldstorage-web/package.json +++ b/nuxeo-coldstorage-web/package.json @@ -4,8 +4,7 @@ "author": "Nuxeo", "license": "Apache-2.0", "devDependencies": { - "@cucumber/cucumber": "^7.0.0", - "@nuxeo/nuxeo-web-ui-ftest": "~3.1.0-rc.75", + "@nuxeo/nuxeo-web-ui-ftest": "3.1.6-rc.008", "expect-webdriverio": "3.3.1", "@open-wc/eslint-config": "^0.3.0", "@esm-bundle/chai": "^4.1.5", diff --git a/pom.xml b/pom.xml index 3691c080..08be76f8 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ org.nuxeo nuxeo-parent - 2023.4.13 + 2023.4.23 org.nuxeo.coldstorage From bf9a878a9f9f7919440136afadf0e1bc0eb8faab Mon Sep 17 00:00:00 2001 From: rahuljain-dev Date: Mon, 4 Mar 2024 16:15:40 +0530 Subject: [PATCH 2/2] test cucumber issue --- nuxeo-coldstorage-web/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nuxeo-coldstorage-web/package.json b/nuxeo-coldstorage-web/package.json index f00ceb5c..17800cfa 100644 --- a/nuxeo-coldstorage-web/package.json +++ b/nuxeo-coldstorage-web/package.json @@ -4,7 +4,7 @@ "author": "Nuxeo", "license": "Apache-2.0", "devDependencies": { - "@nuxeo/nuxeo-web-ui-ftest": "3.1.6-rc.008", + "@nuxeo/nuxeo-web-ui-ftest": "3.1.6-rc.011", "expect-webdriverio": "3.3.1", "@open-wc/eslint-config": "^0.3.0", "@esm-bundle/chai": "^4.1.5",