From af0e0c122968d6ed4655d1cb8e8ddf1c80a0326a Mon Sep 17 00:00:00 2001 From: Krystof Stekovic Date: Thu, 9 Oct 2025 10:18:03 +0200 Subject: [PATCH 1/2] Update dependencies, NodeJS and Cypress --- .eslintignore | 2 - .eslintrc.cjs | 24 --------- .../manual-test-matrix-workflow.yaml | 10 ++-- .../workflows/on-pull-request-workflow.yaml | 7 ++- .../reusable-build-project-workflow.yaml | 6 +-- .../scheduled-run-all-tests-workflow.yaml | 10 ++-- README.md | 40 +++++++++----- .../cypress.config.ts => cypress.config.ts | 48 +++++++++-------- eslint.config.mjs | 31 +++++++++++ package.json | 53 +++++++++++-------- packages/resources/src/index.ts | 4 +- .../cypress/support/containers-utils.ts | 5 +- packages/testsuite/cypress/support/e2e.ts | 8 +-- .../testsuite/cypress/support/form-editing.ts | 36 +++++-------- .../testsuite/cypress/support/navigation.ts | 1 - .../cypress/support/resource-utils.ts | 2 +- .../testsuite/cypress/support/test-utils.ts | 1 - .../cypress/support/verification-utils.ts | 2 +- packages/testsuite/open-cypress.ts | 6 ++- packages/testsuite/package.json | 15 +----- packages/testsuite/run-e2e-tests.ts | 11 +++- ...porter-config.json => reporter-config.json | 2 +- tsconfig.eslint.json | 3 +- 23 files changed, 171 insertions(+), 156 deletions(-) delete mode 100644 .eslintignore delete mode 100644 .eslintrc.cjs rename packages/testsuite/cypress.config.ts => cypress.config.ts (90%) create mode 100644 eslint.config.mjs rename packages/testsuite/reporter-config.json => reporter-config.json (78%) diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index 650d01789..000000000 --- a/.eslintignore +++ /dev/null @@ -1,2 +0,0 @@ -*.js -dist \ No newline at end of file diff --git a/.eslintrc.cjs b/.eslintrc.cjs deleted file mode 100644 index ed78aad6c..000000000 --- a/.eslintrc.cjs +++ /dev/null @@ -1,24 +0,0 @@ -module.exports = { - root: true, - parser: "@typescript-eslint/parser", - parserOptions: { - tsconfigRootDir: __dirname, - project: ["./tsconfig.eslint.json", "./packages/*/tsconfig.json"], - }, - plugins: ["@typescript-eslint"], - extends: [ - "eslint:recommended", - "plugin:@typescript-eslint/recommended", - "plugin:@typescript-eslint/recommended-requiring-type-checking", - "prettier", - ], - rules: { - "@typescript-eslint/no-floating-promises": [ - "error", - { - ignoreIIFE: true, - }, - ], - "@typescript-eslint/no-namespace": "off", - }, -}; diff --git a/.github/workflows/manual-test-matrix-workflow.yaml b/.github/workflows/manual-test-matrix-workflow.yaml index 00f2bec93..94c18905f 100644 --- a/.github/workflows/manual-test-matrix-workflow.yaml +++ b/.github/workflows/manual-test-matrix-workflow.yaml @@ -50,7 +50,7 @@ jobs: - name: "Setup NodeJS" uses: actions/setup-node@v4 with: - node-version: "16" + node-version: "22" - name: "Setup JDK" uses: actions/setup-java@v4 with: @@ -71,7 +71,7 @@ jobs: - name: "Run compile" run: "npm run compile" - name: "Run test(s)" - run: "cd packages/testsuite && npm test -- --browser=firefox --specs=cypress/e2e/${{ matrix.specs }}" + run: "npm run test:compiled -- --browser=firefox --specs=packages/testsuite/cypress/e2e/${{ matrix.specs }}" - name: "Archive test report(s) and video(s)" if: ${{ !cancelled() }} uses: actions/upload-artifact@v4 @@ -91,13 +91,13 @@ jobs: - name: "Setup NodeJS" uses: actions/setup-node@v4 with: - node-version: "16" + node-version: "22" - name: "Install necessary tools" run: npm install -g copyfiles gh-pages@3.0.0 mochawesome-merge mochawesome-report-generator - name: "Generate Mochawesome Report" - run: mochawesome-merge "./*-artifacts/results/cypress/e2e/*.json" > mochawesome.json + run: mochawesome-merge "./*-artifacts/results/packages/testsuite/cypress/e2e/*.json" > mochawesome.json - name: "Copy video assets" - run: copyfiles -u 3 "./*-artifacts/cypress/videos/*.mp4" mochawesome-report/assets/videos + run: copyfiles -u 3 "./*-artifacts/packages/testsuite/cypress/videos/*.mp4" mochawesome-report/assets/videos - name: "Create GH Pages content" run: marge mochawesome.json -f index.html - name: "Get time info" diff --git a/.github/workflows/on-pull-request-workflow.yaml b/.github/workflows/on-pull-request-workflow.yaml index fa5ebcc6d..e7c2d6f5d 100644 --- a/.github/workflows/on-pull-request-workflow.yaml +++ b/.github/workflows/on-pull-request-workflow.yaml @@ -14,7 +14,7 @@ jobs: - name: "Setup NodeJS" uses: actions/setup-node@v4 with: - node-version: "16" + node-version: "22" - name: "Setup JDK" uses: actions/setup-java@v4 with: @@ -36,6 +36,5 @@ jobs: - name: "Run tests of modified files" if: steps.changed-files-specific.outputs.any_changed == 'true' run: | - cd packages/testsuite - SPECS=$(echo ${{ steps.changed-files-specific.outputs.all_changed_files }} | sed "s|packages/testsuite/||g") - KEYCLOAK_IMAGE=quay.io/keycloak/keycloak:24.0 npm run test-compiled -- --browser=chrome --specs=$SPECS + SPECS="${{ steps.changed-files-specific.outputs.all_changed_files }}" + KEYCLOAK_IMAGE=quay.io/keycloak/keycloak:24.0 npm run test -- --browser=chrome --specs=$SPECS diff --git a/.github/workflows/reusable-build-project-workflow.yaml b/.github/workflows/reusable-build-project-workflow.yaml index 01198d10d..e12373873 100644 --- a/.github/workflows/reusable-build-project-workflow.yaml +++ b/.github/workflows/reusable-build-project-workflow.yaml @@ -16,7 +16,7 @@ jobs: - name: "Setup NodeJS" uses: actions/setup-node@v4 with: - node-version: "16" + node-version: "22" - name: "Setup JDK" uses: actions/setup-java@v4 with: @@ -36,7 +36,7 @@ jobs: run: "npm run compile" - name: "Run all tests" if: "${{ github.event.inputs.spec == '' }}" - run: "cd packages/testsuite && npm test" + run: "npm run test:compiled" - name: "Run specific test" if: "${{ github.event.inputs.spec != '' }}" - run: "cd packages/testsuite && npm test -- --specs=${{ inputs.spec }}" + run: "npm run test:compiled -- --specs=${{ inputs.spec }}" diff --git a/.github/workflows/scheduled-run-all-tests-workflow.yaml b/.github/workflows/scheduled-run-all-tests-workflow.yaml index 48d35f6a2..e920bdceb 100644 --- a/.github/workflows/scheduled-run-all-tests-workflow.yaml +++ b/.github/workflows/scheduled-run-all-tests-workflow.yaml @@ -50,7 +50,7 @@ jobs: - name: "Setup NodeJS" uses: actions/setup-node@v4 with: - node-version: "16" + node-version: "22" - name: "Setup JDK" uses: actions/setup-java@v4 with: @@ -71,7 +71,7 @@ jobs: - name: "Run compile" run: "npm run compile" - name: "Run test(s)" - run: "cd packages/testsuite && npm test -- --browser=chrome --specs=cypress/e2e/${{ matrix.specs }}/*.cy.ts" + run: "npm run test:compiled -- --browser=chrome --specs=packages/testsuite/cypress/e2e/${{ matrix.specs }}/*.cy.ts" - name: "Archive test report(s) and video(s)" if: ${{ !cancelled() }} uses: actions/upload-artifact@v4 @@ -91,13 +91,13 @@ jobs: - name: "Setup NodeJS" uses: actions/setup-node@v4 with: - node-version: "16" + node-version: "22" - name: "Install necessary tools" run: npm install -g copyfiles gh-pages@3.0.0 mochawesome-merge mochawesome-report-generator - name: "Generate Mochawesome Report" - run: mochawesome-merge "./*-artifacts/results/cypress/e2e/*.json" > mochawesome.json + run: mochawesome-merge "./*-artifacts/results/packages/testsuite/cypress/e2e/*.json" > mochawesome.json - name: "Copy video assets" - run: copyfiles -u 3 "./*-artifacts/cypress/videos/*.mp4" mochawesome-report/assets/videos + run: copyfiles -u 3 "./*-artifacts/packages/testsuite/cypress/videos/*.mp4" mochawesome-report/assets/videos - name: "Create GH Pages content" run: marge mochawesome.json -f index.html - name: "Get time info" diff --git a/README.md b/README.md index 0974e1a11..0b7151078 100644 --- a/README.md +++ b/README.md @@ -53,19 +53,33 @@ in the root directory to download all of the NPM dependencies specified in `pack npm run develop ``` -- If you want to execute whole testsuite, navigate to `packages/testsuite` and from within that directory execute `npm test` - - It is also possible to run on specific browser by supplying `--browser` argument, e.g - ``` - npm test -- --browser=chrome - ``` - - It is also possible to reduce the amount of specs executed by passing `--specs` flag. This flag must be relative to the `packages/testsuite` directory and supports glob patterns, e.g to execute only `ejb` related tests, run - ``` - npm test -- --specs="cypress/e2e/ejb/*.cy.ts" - ``` - - If you wish to run the test suite against custom HAL or WildFly images, you can use `HAL_IMAGE` and `WILDFLY_IMAGE` environment variables to specify custom images, e.g - ``` - HAL_IMAGE=quay.io/myorg/hal WILDFLY_IMAGE=quay.io/myorg/wildfly npm test ... - ``` +- If you want to execute whole testsuite execute `npm test` + +- It is also possible to run on specific browser by supplying `--browser` argument, e.g + +``` +npm test -- --browser=chrome +``` + +- It is possible to reduce the amount of specs executed by passing `--specs` flag. It also supports glob patterns, e.g to execute only `homepage` related tests, run + +``` +npm test -- --specs="packages/testsuite/cypress/e2e/homepage/test-homepage.cy.ts" +or +npm test -- --specs="packages/testsuite/cypress/e2e/homepage/*.cy.ts" +``` + +- If you want to run tests without cleaning and a resources compilations (useful for CI), use + +``` +npm run test:compiled -- --specs="packages/testsuite/cypress/e2e/homepage/test-homepage.cy.ts" +``` + +- If you wish to run the test suite against custom HAL or WildFly images, you can use `HAL_IMAGE` and `WILDFLY_IMAGE` environment variables to specify custom images, e.g + +``` +HAL_IMAGE=quay.io/myorg/hal WILDFLY_IMAGE=quay.io/myorg/wildfly npm test ... +``` - For debugging purposes videos (and screenshots) of failed tests are stored after the test run (works only with chrome). diff --git a/packages/testsuite/cypress.config.ts b/cypress.config.ts similarity index 90% rename from packages/testsuite/cypress.config.ts rename to cypress.config.ts index 231896cf0..ba68a3d8c 100644 --- a/packages/testsuite/cypress.config.ts +++ b/cypress.config.ts @@ -3,7 +3,7 @@ import { defineConfig } from "cypress"; import { PullPolicy, GenericContainer, StartedTestContainer, StoppedTestContainer, Wait } from "testcontainers"; import { Environment } from "testcontainers/build/types"; import { findAPortNotInUse } from "portscanner"; -import fs from "fs"; +import * as fs from "fs"; export default defineConfig({ defaultCommandTimeout: 16000, @@ -14,6 +14,8 @@ export default defineConfig({ video: true, videoCompression: false, e2e: { + supportFile: "packages/testsuite/cypress/support/e2e.ts", + specPattern: "packages/testsuite/cypress/e2e/**/*.cy.ts", setupNodeEvents(on, config) { const startedContainers: Map = new Map(); const startedContainersManagementPorts: Map = new Map(); @@ -22,13 +24,13 @@ export default defineConfig({ return new Promise((resolve, reject) => { let portOffset = 0; const wildfly = new GenericContainer( - process.env.WILDFLY_IMAGE || "quay.io/halconsole/wildfly-development:latest" + process.env.WILDFLY_IMAGE || "quay.io/halconsole/wildfly-development:latest", ) .withPullPolicy(PullPolicy.alwaysPull()) .withName(name as string) .withCopyDirectoriesToContainer([ { - source: __dirname + "/cypress/fixtures", + source: __dirname + "/packages/testsuite/cypress/fixtures", target: "/home/fixtures", mode: parseInt("0777", 8), }, @@ -121,7 +123,7 @@ export default defineConfig({ const interval = setInterval(() => { if (new Date().getTime() - startTime > 10000) { clearInterval(interval); - reject(); + reject(new Error("Timeout waiting for WildFly to start")); } axios .post(managementApi, { @@ -143,9 +145,9 @@ export default defineConfig({ }); } }) - .catch((err) => { + .catch((err: unknown) => { console.log(err); - reject(err); + reject(err instanceof Error ? err : new Error(JSON.stringify(err))); }); }); }, @@ -161,7 +163,7 @@ export default defineConfig({ }) .withBindMounts([ { - source: __dirname + "/cypress/fixtures/realm-configuration.json", + source: __dirname + "/packages/testsuite/cypress/fixtures/realm-configuration.json", target: "/opt/keycloak/data/import/realm-configuration.json", mode: "z", }, @@ -181,9 +183,9 @@ export default defineConfig({ console.log(`Keycloak is ready: ${keycloakServer}`); resolve(keycloakServer); }) - .catch((err) => { + .catch((err: unknown) => { console.log(err); - reject(err); + reject(err instanceof Error ? err : new Error(JSON.stringify(err))); }); }); }); @@ -195,7 +197,7 @@ export default defineConfig({ .withNetworkAliases(name as string) .withNetworkMode(config.env.NETWORK_NAME as string) .withWaitStrategy( - Wait.forLogMessage(new RegExp(".*PostgreSQL init process complete; ready for start up.*")) + Wait.forLogMessage(new RegExp(".*PostgreSQL init process complete; ready for start up.*")), ) .withExposedPorts(5432) .withEnvironment(environmentProperties as Environment); @@ -207,9 +209,9 @@ export default defineConfig({ startedContainers.set("postgres", postgreContainer); resolve(postgreContainer); }) - .catch((err) => { + .catch((err: unknown) => { console.log(err); - reject(err); + reject(err instanceof Error ? err : new Error(JSON.stringify(err))); }); }); }, @@ -230,9 +232,9 @@ export default defineConfig({ startedContainers.set("mysql", mysqlContainer); resolve(mysqlContainer); }) - .catch((err) => { + .catch((err: unknown) => { console.log(err); - reject(err); + reject(err instanceof Error ? err : new Error(JSON.stringify(err))); }); }); }, @@ -253,15 +255,15 @@ export default defineConfig({ startedContainers.set("mariadb", mariadbContainer); resolve(mariadbContainer); }) - .catch((err) => { + .catch((err: unknown) => { console.log(err); - reject(err); + reject(err instanceof Error ? err : new Error(JSON.stringify(err))); }); }); }, "start:sqlserver:container": ({ name, environmentProperties }) => { const sqlserverContainerBuilder = new GenericContainer( - process.env.MSSQL_IMAGE || "mcr.microsoft.com/mssql/server:2022-latest" + process.env.MSSQL_IMAGE || "mcr.microsoft.com/mssql/server:2022-latest", ) .withPullPolicy(PullPolicy.alwaysPull()) .withName(name as string) @@ -278,9 +280,9 @@ export default defineConfig({ startedContainers.set("sqlserver", sqlServerContainer); resolve(sqlServerContainer); }) - .catch((err) => { + .catch((err: unknown) => { console.log(err); - reject(err); + reject(err instanceof Error ? err : new Error(JSON.stringify(err))); }); }); }, @@ -292,7 +294,7 @@ export default defineConfig({ managementPort = managementPort ?? 9990; containerToExec ?.exec([ - "/bin/bash", + "/bin/sh", "-c", `$JBOSS_HOME/bin/jboss-cli.sh --connect --controller=localhost:${managementPort} --commands=${ command as string @@ -303,10 +305,10 @@ export default defineConfig({ resolve(value); } else { console.log(value); - reject(value); + reject(new Error(`Command failed with exit code ${value.exitCode}: ${value.output || ""}`)); } }) - .catch((err: { response: { data: string } }) => reject(err.response.data)); + .catch((err: { response: { data: string } }) => reject(new Error(err.response.data))); }); }, "execute:cli": ({ managementApi, operation, address, ...args }) => { @@ -321,7 +323,7 @@ export default defineConfig({ resolve(response.data); }) .catch((err: { response: { data: string } }) => { - reject(err.response.data); + reject(new Error(err.response.data)); }); }).catch((error) => { console.log(error); diff --git a/eslint.config.mjs b/eslint.config.mjs new file mode 100644 index 000000000..b3dc6421a --- /dev/null +++ b/eslint.config.mjs @@ -0,0 +1,31 @@ +import eslint from "@eslint/js"; +import tseslint from "typescript-eslint"; +import eslintConfigPrettier from "eslint-config-prettier"; + +export default [ + { + ignores: ["**/dist/**", "**/node_modules/**", "eslint.config.mjs"], + }, + eslint.configs.recommended, + ...tseslint.configs.recommendedTypeChecked, + eslintConfigPrettier, + { + languageOptions: { + parserOptions: { + projectService: { + allowDefaultProject: ["cypress.config.ts"], + }, + tsconfigRootDir: import.meta.dirname, + }, + }, + rules: { + "@typescript-eslint/no-floating-promises": [ + "error", + { + ignoreIIFE: true, + }, + ], + "@typescript-eslint/no-namespace": "off", + }, + }, +]; diff --git a/package.json b/package.json index 6f20f3230..431429d1b 100644 --- a/package.json +++ b/package.json @@ -4,18 +4,21 @@ "description": "", "main": "index.js", "scripts": { - "clean": "npx del \"packages/testsuite/cypress/fixtures/*/\" \"packages/testsuite/results\" \"mochawesome*\"", - "preformat": "npm run clean", + "build": "npm run clean && npm run format && npm run compile && npm run resources", + "clean": "npx del \"packages/testsuite/cypress/fixtures/*/\" \"results\" \"mochawesome*\"", "format": "npx prettier --write .", "lint": "npx eslint .", - "precompile": "npm run format", "resources": "npm run resources -w @berg/resources", - "compile": "npx tsc --build --clean && npx tsc --build", - "postcompile": "npm run resources", - "pregenerate-report": "npx copyfiles -u 4 \"packages/testsuite/cypress/videos/*.mp4\" mochawesome-report/assets/videos", - "generate-report": "npx mochawesome-merge packages/testsuite/results/cypress/e2e/*.json > mochawesome.json && npx marge mochawesome.json -f index.html", + "compile": "npx tsc --build", + "preinstall": "npm run clean", + "postinstall": "npm run format && npm run compile && npm run resources", + "pregenerate-report": "npx cpy \"packages/testsuite/cypress/videos/*.mp4\" mochawesome-report/assets/videos", + "generate-report": "npx mochawesome-merge results/packages/testsuite/cypress/e2e/*.json > mochawesome.json && npx marge mochawesome.json -f index.html", "predevelop": "npm run compile", "develop": "npm run develop -w @berg/testsuite", + "pretest": "npm run build", + "test": "npm run test -w @berg/testsuite --", + "test:compiled": "npm run test-compiled -w @berg/testsuite --", "predocs": "npm run compile", "docs": "npx typedoc" }, @@ -27,23 +30,31 @@ "author": "", "license": "ISC", "devDependencies": { + "@cypress/xvfb": "1.2.4", + "@types/command-line-args": "5.2.0", + "@types/mochawesome": "6.2.1", "@types/portscanner": "2.1.1", - "@typescript-eslint/eslint-plugin": "5.55.0", - "@typescript-eslint/parser": "5.55.0", - "axios": "1.3.4", - "copyfiles": "2.4.1", - "del": "7.0.0", - "del-cli": "5.0.0", - "eslint": "8.36.0", - "eslint-config-prettier": "8.7.0", - "mochawesome-merge": "4.3.0", - "mochawesome-report-generator": "6.2.0", + "@typescript-eslint/eslint-plugin": "^8.45.0", + "@typescript-eslint/parser": "^8.45.0", + "command-line-args": "^6.0.1", + "cpy-cli": "^6.0.0", + "cypress-multi-reporters": "^2.0.5", + "del-cli": "^7.0.0", + "eslint": "^9.37.0", + "eslint-config-prettier": "^10.1.8", + "mocha-junit-reporter": "2.2.0", + "mochawesome": "7.1.3", + "mochawesome-merge": "^5.0.0", + "mochawesome-report-generator": "^6.3.0", "prettier": "2.8.5", - "testcontainers": "10.2.1", - "typedoc": "0.23.28", - "typescript": "5.0.2" + "typedoc": "^0.28.13", + "typescript": "^5.9.3", + "typescript-eslint": "^8.45.0" }, "dependencies": { - "portscanner": "2.1.1" + "axios": "^1.12.2", + "cypress": "15.3.0", + "portscanner": "^2.2.0", + "testcontainers": "^11.7.1" } } diff --git a/packages/resources/src/index.ts b/packages/resources/src/index.ts index e10818465..0333b34a3 100644 --- a/packages/resources/src/index.ts +++ b/packages/resources/src/index.ts @@ -1,7 +1,7 @@ import maven from "maven"; import path from "path"; -const fixturesDirectory = path.resolve(__dirname, "..", "..", "testsuite", "cypress", "fixtures"); +const fixturesDirectory = path.resolve(__dirname, "..", "..", "..", "packages", "testsuite", "cypress", "fixtures"); const jdbcDriversDirectory = path.resolve(fixturesDirectory, "jdbc-drivers"); const modulesDirectory = path.resolve(fixturesDirectory, "modules"); @@ -15,4 +15,4 @@ const mavenInstance = maven.create({ "jdbc.drivers.copy.dependencies.output.directory": jdbcDriversDirectory, "modules.copy.dependencies.output.directory": modulesDirectory, }); -})(); +})(); \ No newline at end of file diff --git a/packages/testsuite/cypress/support/containers-utils.ts b/packages/testsuite/cypress/support/containers-utils.ts index 702c6bfdf..e4efb4975 100644 --- a/packages/testsuite/cypress/support/containers-utils.ts +++ b/packages/testsuite/cypress/support/containers-utils.ts @@ -6,7 +6,7 @@ Cypress.Commands.add("startWildflyContainer", (options = { useNetworkHostMode: f configuration: "standalone-insecure.xml", useNetworkHostMode: options.useNetworkHostMode, }, - { timeout: 240_000 } + { timeout: 240_000 }, ); }); @@ -18,7 +18,7 @@ Cypress.Commands.add("startWildflyContainerSecured", () => { configuration: "standalone.xml", useNetworkHostMode: true, }, - { timeout: 240_000 } + { timeout: 240_000 }, ); }); @@ -36,7 +36,6 @@ Cypress.Commands.add("executeInWildflyContainer", (command) => { }); export {}; -/* eslint @typescript-eslint/no-namespace: off */ declare global { namespace Cypress { interface Chainable { diff --git a/packages/testsuite/cypress/support/e2e.ts b/packages/testsuite/cypress/support/e2e.ts index c2cd3c1d4..af43f8164 100644 --- a/packages/testsuite/cypress/support/e2e.ts +++ b/packages/testsuite/cypress/support/e2e.ts @@ -21,9 +21,7 @@ import "./navigation"; import "./form-editing"; import "./test-utils"; -/* eslint @typescript-eslint/no-unsafe-assignment: off */ -/* eslint @typescript-eslint/no-var-requires: off */ -const addContext = require("mochawesome/addContext"); +import addContext from "mochawesome/addContext"; // Alternatively you can use CommonJS syntax: // require('./commands') @@ -34,14 +32,12 @@ Cypress.on("uncaught:exception", (err, runnable) => { return false; }); -/* eslint @typescript-eslint/no-unsafe-call: off */ -/* eslint @typescript-eslint/no-unused-vars: off */ Cypress.on("test:after:run", (test, runnable) => { // Temporary workaround till https://github.com/cypress-io/cypress/issues/18415 is resolved if (Cypress.browser.family == "chromium") { const videoUrl = `assets/videos/${Cypress.spec.name}.mp4`; if (runnable.state === "failed") { - addContext({ test }, videoUrl); + addContext({ test } as unknown as Mocha.Context, videoUrl); } } }); diff --git a/packages/testsuite/cypress/support/form-editing.ts b/packages/testsuite/cypress/support/form-editing.ts index 61ac418bc..24cb15b49 100644 --- a/packages/testsuite/cypress/support/form-editing.ts +++ b/packages/testsuite/cypress/support/form-editing.ts @@ -69,7 +69,7 @@ Cypress.Commands.add("resetForm", (formId, managementApi, address) => { }).then((result) => { expect((result as { outcome: string }).outcome).to.equal("success"); expect((result as { result: string | number | boolean }).result).to.equal( - attributeWithDefaultValue.defaultValue + attributeWithDefaultValue.defaultValue, ); }); }); @@ -102,27 +102,20 @@ Cypress.Commands.add("removeSingletonResource", (formId) => { cy.get('div.modal-footer > button.btn.btn-hal.btn-primary:contains("Yes")').click(); }); -/* eslint @typescript-eslint/unbound-method: off */ Cypress.Commands.add("flip", (formId, attributeName, value) => { - cy.formInput(formId, attributeName) - .wait(1000) - .should(($input) => { - if (value) { - expect($input).to.be.checked; - } else { - expect($input).to.not.be.checked; - } - }); + if (value) { + cy.formInput(formId, attributeName).wait(1000).should("be.checked"); + } else { + cy.formInput(formId, attributeName).wait(1000).should("not.be.checked"); + } cy.get('div[data-form-item-group="' + formId + "-" + attributeName + '-editing"] .bootstrap-switch-label:visible') .click() .wait(1000); - cy.formInput(formId, attributeName).should(($input) => { - if (value) { - expect($input).to.not.be.checked; - } else { - expect($input).to.be.checked; - } - }); + if (value) { + cy.formInput(formId, attributeName).should("not.be.checked"); + } else { + cy.formInput(formId, attributeName).should("be.checked"); + } }); Cypress.Commands.add( @@ -143,7 +136,7 @@ Cypress.Commands.add( formInput.trigger("change"); // lose focus of current input to close suggestions which can hide buttons. formInput.blur(); - } + }, ); Cypress.Commands.add("textExpression", (formId, attributeName, value, options = { selector: "" }) => { @@ -185,7 +178,6 @@ Cypress.Commands.add("selectInDropdownMenu", (formId, attributeName, value) => { }); export {}; -/* eslint @typescript-eslint/no-namespace: off */ declare global { namespace Cypress { interface Chainable { @@ -277,7 +269,7 @@ declare global { formId: string, attributeName: string, value: string | number, - options?: { selector?: string; parseSpecialCharSequences?: boolean } + options?: { selector?: string; parseSpecialCharSequences?: boolean }, ): Chainable; /** * Set text value to form input. @@ -293,7 +285,7 @@ declare global { formId: string, attributeName: string, value: string | number, - options?: { selector?: string } + options?: { selector?: string }, ): Chainable; /** * Clear all selected list attribute items from the form input. diff --git a/packages/testsuite/cypress/support/navigation.ts b/packages/testsuite/cypress/support/navigation.ts index c00c1e4bc..b91ec29fe 100644 --- a/packages/testsuite/cypress/support/navigation.ts +++ b/packages/testsuite/cypress/support/navigation.ts @@ -51,7 +51,6 @@ Cypress.Commands.add("confirmYesInWizard", () => { }); export {}; -/* eslint @typescript-eslint/no-namespace: off */ declare global { namespace Cypress { interface Chainable { diff --git a/packages/testsuite/cypress/support/resource-utils.ts b/packages/testsuite/cypress/support/resource-utils.ts index e632ee758..bda5d0e07 100644 --- a/packages/testsuite/cypress/support/resource-utils.ts +++ b/packages/testsuite/cypress/support/resource-utils.ts @@ -321,4 +321,4 @@ declare global { isEAP(managementEndpoint: string): Chainable; } } -} +} \ No newline at end of file diff --git a/packages/testsuite/cypress/support/test-utils.ts b/packages/testsuite/cypress/support/test-utils.ts index 04f799061..c707664a5 100644 --- a/packages/testsuite/cypress/support/test-utils.ts +++ b/packages/testsuite/cypress/support/test-utils.ts @@ -17,7 +17,6 @@ Cypress.Commands.add("skipIfNot", (expression: Cypress.Chainable, conte }); declare global { - // eslint-disable-next-line @typescript-eslint/no-namespace namespace Cypress { interface Chainable { /** diff --git a/packages/testsuite/cypress/support/verification-utils.ts b/packages/testsuite/cypress/support/verification-utils.ts index bcd0d76c6..88f5f73cb 100644 --- a/packages/testsuite/cypress/support/verification-utils.ts +++ b/packages/testsuite/cypress/support/verification-utils.ts @@ -218,4 +218,4 @@ declare global { closeAllPopUpNotifications(): void; } } -} +} \ No newline at end of file diff --git a/packages/testsuite/open-cypress.ts b/packages/testsuite/open-cypress.ts index 926014602..40162fe93 100644 --- a/packages/testsuite/open-cypress.ts +++ b/packages/testsuite/open-cypress.ts @@ -1,10 +1,14 @@ import * as cypress from "cypress"; +import path from "path"; import { Berg } from "@berg/berg"; (async () => { const berg = await Berg.getInstance(); + const projectRoot = path.resolve(__dirname, "..", "..", ".."); await cypress.open({ + project: projectRoot, + configFile: path.join(projectRoot, "cypress.config.ts"), env: { NETWORK_NAME: berg.getNetwork().getName(), HAL_CONTAINER_PORT: berg.getHalContainer().getMappedPort(9090), @@ -16,4 +20,4 @@ import { Berg } from "@berg/berg"; }, }); await berg.stop(); -})(); +})(); \ No newline at end of file diff --git a/packages/testsuite/package.json b/packages/testsuite/package.json index a4b68e806..2ea5b5e73 100644 --- a/packages/testsuite/package.json +++ b/packages/testsuite/package.json @@ -7,25 +7,12 @@ "license": "MIT", "dependencies": { "@berg/berg": "^1.0.0", - "@berg/commands": "^1.0.0", - "wait-port": "^1.0.4" + "@berg/commands": "^1.0.0" }, "scripts": { "pretest": "npm run --prefix ../.. compile", "test": "node dist/run-e2e-tests.js", "test-compiled": "node dist/run-e2e-tests.js", "develop": "node dist/open-cypress.js" - }, - "devDependencies": { - "@cypress/xvfb": "1.2.4", - "@types/command-line-args": "5.2.0", - "@types/mochawesome": "6.2.1", - "command-line-args": "5.2.1", - "cypress": "12.8.1", - "cypress-multi-reporters": "1.6.3", - "mocha-junit-reporter": "2.2.0", - "mochawesome": "7.1.3", - "mochawesome-merge": "4.3.0", - "mochawesome-report-generator": "6.2.0" } } diff --git a/packages/testsuite/run-e2e-tests.ts b/packages/testsuite/run-e2e-tests.ts index aca8da4eb..752922450 100644 --- a/packages/testsuite/run-e2e-tests.ts +++ b/packages/testsuite/run-e2e-tests.ts @@ -2,13 +2,14 @@ import { Berg } from "@berg/berg"; import * as cypress from "cypress"; import commandLineArgs from "command-line-args"; import { OptionDefinition } from "command-line-args"; +import path from "path"; const optionDefinitions: OptionDefinition[] = [ { name: "browser", type: String, defaultValue: "firefox" }, { name: "specs", type: String, - defaultValue: "cypress/e2e/**/*.cy.ts", + defaultValue: "packages/testsuite/cypress/e2e/**/*.cy.ts", }, ]; @@ -16,8 +17,11 @@ const optionDefinitions: OptionDefinition[] = [ const options = commandLineArgs(optionDefinitions); console.log(options); const berg = await Berg.getInstance(); + const projectRoot = path.resolve(__dirname, "..", "..", ".."); const testRunResult = await cypress.run({ browser: options.browser as string, + project: projectRoot, + configFile: path.join(projectRoot, "cypress.config.ts"), env: { NETWORK_NAME: berg.getNetwork().getName(), HAL_CONTAINER_PORT: berg.getHalContainer().getMappedPort(9090), @@ -30,7 +34,10 @@ const optionDefinitions: OptionDefinition[] = [ }, }); await berg.stop(); - if (testRunResult.status == "failed" || testRunResult.totalFailed > 0) { + if ("status" in testRunResult && testRunResult.status === "failed") { + process.exit(1); + } + if ("totalFailed" in testRunResult && testRunResult.totalFailed > 0) { process.exit(1); } })(); diff --git a/packages/testsuite/reporter-config.json b/reporter-config.json similarity index 78% rename from packages/testsuite/reporter-config.json rename to reporter-config.json index af5f579ae..7840e1c84 100644 --- a/packages/testsuite/reporter-config.json +++ b/reporter-config.json @@ -7,6 +7,6 @@ "mochawesomeReporterOptions": { "reportDir": "results", "html": false, - "reportFilename": "cypress/e2e/[name]_[status]" + "reportFilename": "packages/testsuite/cypress/e2e/[name]_[status]" } } diff --git a/tsconfig.eslint.json b/tsconfig.eslint.json index 1002db03e..6ed04b946 100644 --- a/tsconfig.eslint.json +++ b/tsconfig.eslint.json @@ -9,6 +9,7 @@ // whatever paths you intend to lint "src", "test", - "cypress" + "cypress", + "cypress.config.ts" ] } From 328ffe509c56d2cdf59069201bbc32fde9baa3e5 Mon Sep 17 00:00:00 2001 From: Krystof Stekovic Date: Thu, 9 Oct 2025 10:29:24 +0200 Subject: [PATCH 2/2] Apply Prettier 3.6.2 formatting --- package.json | 2 +- packages/berg/src/berg.ts | 2 +- ...atch-jberet-in-memory-job-repository.cy.ts | 4 +-- ...guration-subsystem-batch-jberet-jdbc.cy.ts | 6 ++-- ...ubsystem-batch-jberet-thread-factory.cy.ts | 10 +++---- ...n-subsystem-batch-jberet-thread-pool.cy.ts | 6 ++-- ...re-management-process-state-listener.cy.ts | 10 +++---- ...figuration-datasource-mariadb-finder.cy.ts | 26 ++++++++--------- ...onfiguration-datasource-mysql-finder.cy.ts | 26 ++++++++--------- ...figuration-datasource-postgre-finder.cy.ts | 26 ++++++++--------- ...est-configuration-datasource-postgre.cy.ts | 8 +++--- ...guration-datasource-sqlserver-finder.cy.ts | 26 ++++++++--------- ...uration-subsystem-deployment-scanner.cy.ts | 6 ++-- ...stem-distributable-web-configuration.cy.ts | 10 +++---- ...tem-distributable-web-hotrod-session.cy.ts | 22 +++++++-------- ...bsystem-distributable-web-hotrod-sso.cy.ts | 20 ++++++------- ...distributable-web-infinispan-session.cy.ts | 14 +++++----- ...tem-distributable-web-infinispan-sso.cy.ts | 18 ++++++------ ...-subsystem-distributable-web-routing.cy.ts | 4 +-- ...t-configuration-subsystem-ee-globals.cy.ts | 2 +- ...ubsystem-ee-services-context-service.cy.ts | 2 +- ...ation-subsystem-ee-services-executor.cy.ts | 26 ++++++++--------- ...ystem-ee-services-scheduled-executor.cy.ts | 28 +++++++++---------- ...bsystem-ee-services-thread-factories.cy.ts | 10 +++---- ...on-subsystem-ejb-container-container.cy.ts | 2 +- ...ystem-ejb-container-remoting-profile.cy.ts | 18 ++++++------ ...subsystem-ejb-state-management-cache.cy.ts | 4 +-- ...tem-ejb-state-management-passivation.cy.ts | 4 +-- .../test-oidc-security-configure-oidc.cy.ts | 2 +- .../test-oidc-security-rbac.cy.ts | 4 +-- .../test-oidc-security.cy.ts | 2 +- ...ovider-http-server-mechanism-factory.cy.ts | 6 ++-- ...loader-http-server-mechanism-factory.cy.ts | 16 +++++------ ...nfiguration-subsystem-io-buffer-pool.cy.ts | 2 +- .../mp-reactive-messaging-otel.cy.ts | 4 +-- .../e2e/runtime/test-runtime-open-ports.cy.ts | 2 +- ...security-manager-maximum-permissions.cy.ts | 8 +++--- ...security-manager-minimum-permissions.cy.ts | 8 +++--- ...iguration-subsystem-transaction-jdbc.cy.ts | 4 +-- ...n-subsystem-undertow-global-settings.cy.ts | 4 +-- .../test-configuration-update-channel.cy.ts | 2 +- .../cypress/support/resource-utils.ts | 8 +++--- .../cypress/support/verification-utils.ts | 12 ++++---- 43 files changed, 213 insertions(+), 213 deletions(-) diff --git a/package.json b/package.json index 431429d1b..6e016170e 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "mochawesome": "7.1.3", "mochawesome-merge": "^5.0.0", "mochawesome-report-generator": "^6.3.0", - "prettier": "2.8.5", + "prettier": "^3.6.2", "typedoc": "^0.28.13", "typescript": "^5.9.3", "typescript-eslint": "^8.45.0" diff --git a/packages/berg/src/berg.ts b/packages/berg/src/berg.ts index 60751cd49..292e13d7b 100644 --- a/packages/berg/src/berg.ts +++ b/packages/berg/src/berg.ts @@ -15,7 +15,7 @@ export class Berg { if (!Berg._instance) { const network = await new Network().start(); const halContainer = await new GenericContainer( - process.env.HAL_IMAGE || "quay.io/halconsole/hal-development:latest" + process.env.HAL_IMAGE || "quay.io/halconsole/hal-development:latest", ) .withPullPolicy(PullPolicy.alwaysPull()) .withExposedPorts(9090) diff --git a/packages/testsuite/cypress/e2e/batch-jberet/test-configuration-subsystem-batch-jberet-in-memory-job-repository.cy.ts b/packages/testsuite/cypress/e2e/batch-jberet/test-configuration-subsystem-batch-jberet-in-memory-job-repository.cy.ts index 60b9575e3..b4bc501ef 100644 --- a/packages/testsuite/cypress/e2e/batch-jberet/test-configuration-subsystem-batch-jberet-in-memory-job-repository.cy.ts +++ b/packages/testsuite/cypress/e2e/batch-jberet/test-configuration-subsystem-batch-jberet-in-memory-job-repository.cy.ts @@ -32,7 +32,7 @@ describe("TESTS: Configuration => Subsystem => Batch => In Memory", () => { cy.validateAddress( managementEndpoint, ["subsystem", "batch-jberet", "in-memory-job-repository", inMemoryJobRepositories.create.name], - true + true, ); }); @@ -50,7 +50,7 @@ describe("TESTS: Configuration => Subsystem => Batch => In Memory", () => { cy.validateAddress( managementEndpoint, ["subsystem", "batch-jberet", "in-memory-job-repository", inMemoryJobRepositories.remove.name], - false + false, ); }); }); diff --git a/packages/testsuite/cypress/e2e/batch-jberet/test-configuration-subsystem-batch-jberet-jdbc.cy.ts b/packages/testsuite/cypress/e2e/batch-jberet/test-configuration-subsystem-batch-jberet-jdbc.cy.ts index 7730d0e68..71e1e7934 100644 --- a/packages/testsuite/cypress/e2e/batch-jberet/test-configuration-subsystem-batch-jberet-jdbc.cy.ts +++ b/packages/testsuite/cypress/e2e/batch-jberet/test-configuration-subsystem-batch-jberet-jdbc.cy.ts @@ -35,7 +35,7 @@ describe("TESTS: Configuration => Subsystem => Batch => JDBC", () => { cy.validateAddress( managementEndpoint, ["subsystem", "batch-jberet", "jdbc-job-repository", jdbcJobRepositories.create.name], - true + true, ); }); @@ -43,7 +43,7 @@ describe("TESTS: Configuration => Subsystem => Batch => JDBC", () => { cy.addAddress( managementEndpoint, ["subsystem", "batch-jberet", "jdbc-job-repository", jdbcJobRepositories.remove.name], - { "data-source": jdbcJobRepositories.remove.dataSource } + { "data-source": jdbcJobRepositories.remove.dataSource }, ); cy.navigateTo(managementEndpoint, "batch-jberet-configuration"); cy.get("#batch-jdbc-job-repo-item").click(); @@ -52,7 +52,7 @@ describe("TESTS: Configuration => Subsystem => Batch => JDBC", () => { cy.validateAddress( managementEndpoint, ["subsystem", "batch-jberet", "jdbc-job-repository", jdbcJobRepositories.remove.name], - false + false, ); }); }); diff --git a/packages/testsuite/cypress/e2e/batch-jberet/test-configuration-subsystem-batch-jberet-thread-factory.cy.ts b/packages/testsuite/cypress/e2e/batch-jberet/test-configuration-subsystem-batch-jberet-thread-factory.cy.ts index 238d00f12..6ec2e5aa9 100644 --- a/packages/testsuite/cypress/e2e/batch-jberet/test-configuration-subsystem-batch-jberet-thread-factory.cy.ts +++ b/packages/testsuite/cypress/e2e/batch-jberet/test-configuration-subsystem-batch-jberet-thread-factory.cy.ts @@ -41,7 +41,7 @@ describe("TESTS: Configuration => Subsystem => Batch => Thread Factory", () => { cy.validateAddress( managementEndpoint, ["subsystem", "batch-jberet", "thread-factory", threadFactories.create.name], - true + true, ); }); @@ -53,7 +53,7 @@ describe("TESTS: Configuration => Subsystem => Batch => Thread Factory", () => { cy.validateAddress( managementEndpoint, ["subsystem", "batch-jberet", "thread-factory", threadFactories.remove.name], - false + false, ); }); @@ -69,7 +69,7 @@ describe("TESTS: Configuration => Subsystem => Batch => Thread Factory", () => { managementEndpoint, ["subsystem", "batch-jberet", "thread-factory", threadFactories.edit.name], groupName, - "newValue" + "newValue", ); }); @@ -85,7 +85,7 @@ describe("TESTS: Configuration => Subsystem => Batch => Thread Factory", () => { managementEndpoint, ["subsystem", "batch-jberet", "thread-factory", threadFactories.edit.name], priority, - 10 + 10, ); }); @@ -101,7 +101,7 @@ describe("TESTS: Configuration => Subsystem => Batch => Thread Factory", () => { managementEndpoint, ["subsystem", "batch-jberet", "thread-factory", threadFactories.edit.name], threadNamePattern, - "newValue" + "newValue", ); }); diff --git a/packages/testsuite/cypress/e2e/batch-jberet/test-configuration-subsystem-batch-jberet-thread-pool.cy.ts b/packages/testsuite/cypress/e2e/batch-jberet/test-configuration-subsystem-batch-jberet-thread-pool.cy.ts index 752746e97..0a0ee151f 100644 --- a/packages/testsuite/cypress/e2e/batch-jberet/test-configuration-subsystem-batch-jberet-thread-pool.cy.ts +++ b/packages/testsuite/cypress/e2e/batch-jberet/test-configuration-subsystem-batch-jberet-thread-pool.cy.ts @@ -59,7 +59,7 @@ describe("TESTS: Configuration => Subsystem => Batch => Thread Pool", () => { cy.validateAddress( managementEndpoint, ["subsystem", "batch-jberet", "thread-pool", threadPools.remove.name], - false + false, ); }); @@ -75,7 +75,7 @@ describe("TESTS: Configuration => Subsystem => Batch => Thread Pool", () => { managementEndpoint, ["subsystem", "batch-jberet", "thread-pool", threadPools.edit.name], "max-threads", - 5 + 5, ); }); @@ -91,7 +91,7 @@ describe("TESTS: Configuration => Subsystem => Batch => Thread Pool", () => { managementEndpoint, ["subsystem", "batch-jberet", "thread-pool", threadPools.edit.name], "thread-factory", - threadFactoryEdit + threadFactoryEdit, ); }); diff --git a/packages/testsuite/cypress/e2e/core-management/test-configuration-subsystem-core-management-process-state-listener.cy.ts b/packages/testsuite/cypress/e2e/core-management/test-configuration-subsystem-core-management-process-state-listener.cy.ts index 265d93eb0..1d608bf0d 100644 --- a/packages/testsuite/cypress/e2e/core-management/test-configuration-subsystem-core-management-process-state-listener.cy.ts +++ b/packages/testsuite/cypress/e2e/core-management/test-configuration-subsystem-core-management-process-state-listener.cy.ts @@ -29,7 +29,7 @@ describe("TESTS: Configuration => Subsystem => Subsystem => Core Management => P .withResource("/home/fixtures/modules/process-state-listener-1.0-SNAPSHOT.jar") .withDependencies(["org.wildfly.extension.core-management-client"]) .build() - .toCLICommand() + .toCLICommand(), ).then(() => { cy.addAddress( managementEndpoint, @@ -37,7 +37,7 @@ describe("TESTS: Configuration => Subsystem => Subsystem => Core Management => P { class: processStateListeners.delete.class, module: processStateListeners.delete.module, - } + }, ); }); }); @@ -59,7 +59,7 @@ describe("TESTS: Configuration => Subsystem => Subsystem => Core Management => P cy.validateAddress( managementEndpoint, ["subsystem", "core-management", "process-state-listener", processStateListeners.create.name], - true + true, ); }); @@ -67,7 +67,7 @@ describe("TESTS: Configuration => Subsystem => Subsystem => Core Management => P cy.validateAddress( managementEndpoint, ["subsystem", "core-management", "process-state-listener", processStateListeners.delete.name], - true + true, ); cy.navigateTo(managementEndpoint, "core-management"); cy.get("#core-mgmt-prc-state-item").click(); @@ -76,7 +76,7 @@ describe("TESTS: Configuration => Subsystem => Subsystem => Core Management => P cy.validateAddress( managementEndpoint, ["subsystem", "core-management", "process-state-listener", processStateListeners.delete.name], - false + false, ); }); }); diff --git a/packages/testsuite/cypress/e2e/datasource/test-configuration-datasource-mariadb-finder.cy.ts b/packages/testsuite/cypress/e2e/datasource/test-configuration-datasource-mariadb-finder.cy.ts index e9e6e21da..e2738f224 100644 --- a/packages/testsuite/cypress/e2e/datasource/test-configuration-datasource-mariadb-finder.cy.ts +++ b/packages/testsuite/cypress/e2e/datasource/test-configuration-datasource-mariadb-finder.cy.ts @@ -48,7 +48,7 @@ describe("TESTS: Configuration => Datasource => MariaDB (Finder)", () => { MARIADB_ROOT_PASSWORD: "redhat", }, }, - { timeout: 120_000 } + { timeout: 120_000 }, ); cy.startWildflyContainer().then((result) => { managementEndpoint = result as string; @@ -58,7 +58,7 @@ describe("TESTS: Configuration => Datasource => MariaDB (Finder)", () => { .withResource("/home/fixtures/jdbc-drivers/mariadb-java-client-3.1.0.jar") .withDependencies(["javax.api"]) .build() - .toCLICommand() + .toCLICommand(), ).then(() => { cy.task("execute:cli", { managementApi: managementEndpoint + "/management", @@ -76,7 +76,7 @@ describe("TESTS: Configuration => Datasource => MariaDB (Finder)", () => { .withUsername(mariadbUser) .withPassword(mariadbPassword) .build() - .toCLICommand() + .toCLICommand(), ); cy.executeInWildflyContainer( new AddXADataSourceBuilder() @@ -89,7 +89,7 @@ describe("TESTS: Configuration => Datasource => MariaDB (Finder)", () => { .withXaDataSourceProperty("serverName", mariadbContainerName) .withXaDataSourceProperty("databaseName", mariadbDatabaseName) .build() - .toCLICommand() + .toCLICommand(), ); }); }); @@ -103,7 +103,7 @@ describe("TESTS: Configuration => Datasource => MariaDB (Finder)", () => { it("Should list created datasources in the column", () => { cy.navigateTo( managementEndpoint, - "configuration;path=configuration~subsystems!css~datasources!data-source-driver~datasources" + "configuration;path=configuration~subsystems!css~datasources!data-source-driver~datasources", ); cy.get("#ds-configuration li.finder-item").should("have.length", 3); cy.get("#non-xa-dsc-" + "ExampleDS".toLowerCase()).should("be.visible"); @@ -115,14 +115,14 @@ describe("TESTS: Configuration => Datasource => MariaDB (Finder)", () => { const id = "#non-xa-dsc-" + mariadbDSToAdd.name.toLowerCase(); cy.navigateTo( managementEndpoint, - "configuration;path=configuration~subsystems!css~datasources!data-source-driver~datasources" + "configuration;path=configuration~subsystems!css~datasources!data-source-driver~datasources", ); cy.get(id).should("be.visible"); cy.get(id).click(); cy.get(id + " button.btn.btn-finder.dropdown-toggle").click(); cy.get(id + ' a.clickable:contains("Test Connection")').click(); cy.get('span:contains("Successfully tested connection for data source ' + mariadbDSToAdd.name + '")').should( - "be.visible" + "be.visible", ); }); @@ -130,7 +130,7 @@ describe("TESTS: Configuration => Datasource => MariaDB (Finder)", () => { const id = "#non-xa-dsc-" + mariadbDSToAdd.name.toLowerCase(); cy.navigateTo( managementEndpoint, - "configuration;path=configuration~subsystems!css~datasources!data-source-driver~datasources" + "configuration;path=configuration~subsystems!css~datasources!data-source-driver~datasources", ); cy.get(id).should("be.visible"); cy.get(id).click(); @@ -145,7 +145,7 @@ describe("TESTS: Configuration => Datasource => MariaDB (Finder)", () => { const id = "#non-xa-dsc-" + mariadbDSToAdd.name.toLowerCase(); cy.navigateTo( managementEndpoint, - "configuration;path=configuration~subsystems!css~datasources!data-source-driver~datasources" + "configuration;path=configuration~subsystems!css~datasources!data-source-driver~datasources", ); cy.get(id).should("be.visible"); cy.get(id).click(); @@ -158,7 +158,7 @@ describe("TESTS: Configuration => Datasource => MariaDB (Finder)", () => { const id = "#non-xa-dsc-" + mariadbDSToAdd.name.toLowerCase(); cy.navigateTo( managementEndpoint, - "configuration;path=configuration~subsystems!css~datasources!data-source-driver~datasources" + "configuration;path=configuration~subsystems!css~datasources!data-source-driver~datasources", ); cy.get(id).should("be.visible"); cy.get(id).click(); @@ -171,7 +171,7 @@ describe("TESTS: Configuration => Datasource => MariaDB (Finder)", () => { it("Creates MariaDB datasource via Wizard", () => { cy.navigateTo( managementEndpoint, - "configuration;path=configuration~subsystems!css~datasources!data-source-driver~datasources" + "configuration;path=configuration~subsystems!css~datasources!data-source-driver~datasources", ); cy.get("#ds-configuration-add-actions").click(); cy.get("#ds-configuration-add").click({ force: true }); @@ -210,7 +210,7 @@ describe("TESTS: Configuration => Datasource => MariaDB (Finder)", () => { it("Creates MariaDB XA datasource via Wizard", () => { cy.navigateTo( managementEndpoint, - "configuration;path=configuration~subsystems!css~datasources!data-source-driver~datasources" + "configuration;path=configuration~subsystems!css~datasources!data-source-driver~datasources", ); cy.get("#ds-configuration-add-actions").click(); cy.get("#xa-data-source-add").click({ force: true }); @@ -241,7 +241,7 @@ describe("TESTS: Configuration => Datasource => MariaDB (Finder)", () => { }); cy.get(".tag-manager-container .tm-tag").should( "have.length", - Object.entries(mariadbDefaultXADS.xaProperties).length + Object.entries(mariadbDefaultXADS.xaProperties).length, ); cy.get(".modal-footer .btn-primary").click(); cy.get(".wizard-pf-steps .wizard-pf-step.active .wizard-pf-step-number").should("have.text", "5"); diff --git a/packages/testsuite/cypress/e2e/datasource/test-configuration-datasource-mysql-finder.cy.ts b/packages/testsuite/cypress/e2e/datasource/test-configuration-datasource-mysql-finder.cy.ts index 13cf5dab4..0eec512fb 100644 --- a/packages/testsuite/cypress/e2e/datasource/test-configuration-datasource-mysql-finder.cy.ts +++ b/packages/testsuite/cypress/e2e/datasource/test-configuration-datasource-mysql-finder.cy.ts @@ -49,7 +49,7 @@ describe("TESTS: Configuration => Datasource => MySQL (Finder)", () => { MYSQL_ROOT_PASSWORD: "redhat", }, }, - { timeout: 120_000 } + { timeout: 120_000 }, ); cy.startWildflyContainer().then((result) => { managementEndpoint = result as string; @@ -59,7 +59,7 @@ describe("TESTS: Configuration => Datasource => MySQL (Finder)", () => { .withResource("/home/fixtures/jdbc-drivers/mysql-connector-j-8.0.31.jar") .withDependencies(["javax.api"]) .build() - .toCLICommand() + .toCLICommand(), ).then(() => { cy.task("execute:cli", { managementApi: managementEndpoint + "/management", @@ -77,7 +77,7 @@ describe("TESTS: Configuration => Datasource => MySQL (Finder)", () => { .withUsername(mysqlUser) .withPassword(mysqlPassword) .build() - .toCLICommand() + .toCLICommand(), ); cy.executeInWildflyContainer( new AddXADataSourceBuilder() @@ -90,7 +90,7 @@ describe("TESTS: Configuration => Datasource => MySQL (Finder)", () => { .withXaDataSourceProperty("serverName", mysqlContainerName) .withXaDataSourceProperty("databaseName", mysqlDatabaseName) .build() - .toCLICommand() + .toCLICommand(), ); }); }); @@ -104,7 +104,7 @@ describe("TESTS: Configuration => Datasource => MySQL (Finder)", () => { it("Should list created datasources in the column", () => { cy.navigateTo( managementEndpoint, - "configuration;path=configuration~subsystems!css~datasources!data-source-driver~datasources" + "configuration;path=configuration~subsystems!css~datasources!data-source-driver~datasources", ); cy.get("#ds-configuration li.finder-item").should("have.length", 3); cy.get("#non-xa-dsc-" + "ExampleDS".toLowerCase()).should("be.visible"); @@ -116,14 +116,14 @@ describe("TESTS: Configuration => Datasource => MySQL (Finder)", () => { const id = "#non-xa-dsc-" + mysqlDSToAdd.name.toLowerCase(); cy.navigateTo( managementEndpoint, - "configuration;path=configuration~subsystems!css~datasources!data-source-driver~datasources" + "configuration;path=configuration~subsystems!css~datasources!data-source-driver~datasources", ); cy.get(id).should("be.visible"); cy.get(id).click(); cy.get(id + " button.btn.btn-finder.dropdown-toggle").click(); cy.get(id + ' a.clickable:contains("Test Connection")').click(); cy.get('span:contains("Successfully tested connection for data source ' + mysqlDSToAdd.name + '")').should( - "be.visible" + "be.visible", ); }); @@ -131,7 +131,7 @@ describe("TESTS: Configuration => Datasource => MySQL (Finder)", () => { const id = "#non-xa-dsc-" + mysqlDSToAdd.name.toLowerCase(); cy.navigateTo( managementEndpoint, - "configuration;path=configuration~subsystems!css~datasources!data-source-driver~datasources" + "configuration;path=configuration~subsystems!css~datasources!data-source-driver~datasources", ); cy.get(id).should("be.visible"); cy.get(id).click(); @@ -146,7 +146,7 @@ describe("TESTS: Configuration => Datasource => MySQL (Finder)", () => { const id = "#non-xa-dsc-" + mysqlDSToAdd.name.toLowerCase(); cy.navigateTo( managementEndpoint, - "configuration;path=configuration~subsystems!css~datasources!data-source-driver~datasources" + "configuration;path=configuration~subsystems!css~datasources!data-source-driver~datasources", ); cy.get(id).should("be.visible"); cy.get(id).click(); @@ -159,7 +159,7 @@ describe("TESTS: Configuration => Datasource => MySQL (Finder)", () => { const id = "#non-xa-dsc-" + mysqlDSToAdd.name.toLowerCase(); cy.navigateTo( managementEndpoint, - "configuration;path=configuration~subsystems!css~datasources!data-source-driver~datasources" + "configuration;path=configuration~subsystems!css~datasources!data-source-driver~datasources", ); cy.get(id).should("be.visible"); cy.get(id).click(); @@ -172,7 +172,7 @@ describe("TESTS: Configuration => Datasource => MySQL (Finder)", () => { it("Creates MySQL datasource via Wizard", () => { cy.navigateTo( managementEndpoint, - "configuration;path=configuration~subsystems!css~datasources!data-source-driver~datasources" + "configuration;path=configuration~subsystems!css~datasources!data-source-driver~datasources", ); cy.get("#ds-configuration-add-actions").click(); cy.get("#ds-configuration-add").click({ force: true }); @@ -211,7 +211,7 @@ describe("TESTS: Configuration => Datasource => MySQL (Finder)", () => { it("Creates MySQL XA datasource via Wizard", () => { cy.navigateTo( managementEndpoint, - "configuration;path=configuration~subsystems!css~datasources!data-source-driver~datasources" + "configuration;path=configuration~subsystems!css~datasources!data-source-driver~datasources", ); cy.get("#ds-configuration-add-actions").click(); cy.get("#xa-data-source-add").click({ force: true }); @@ -242,7 +242,7 @@ describe("TESTS: Configuration => Datasource => MySQL (Finder)", () => { }); cy.get(".tag-manager-container .tm-tag").should( "have.length", - Object.entries(mysqlDefaultXADS.xaProperties).length + Object.entries(mysqlDefaultXADS.xaProperties).length, ); cy.get(".modal-footer .btn-primary").click(); cy.get(".wizard-pf-steps .wizard-pf-step.active .wizard-pf-step-number").should("have.text", "5"); diff --git a/packages/testsuite/cypress/e2e/datasource/test-configuration-datasource-postgre-finder.cy.ts b/packages/testsuite/cypress/e2e/datasource/test-configuration-datasource-postgre-finder.cy.ts index ffc30bc94..ad21d0757 100644 --- a/packages/testsuite/cypress/e2e/datasource/test-configuration-datasource-postgre-finder.cy.ts +++ b/packages/testsuite/cypress/e2e/datasource/test-configuration-datasource-postgre-finder.cy.ts @@ -48,7 +48,7 @@ describe("TESTS: Configuration => Datasource => PostgreSQL (Finder)", () => { POSTGRES_DB: postgresDatabaseName, }, }, - { timeout: 120_000 } + { timeout: 120_000 }, ); cy.startWildflyContainer().then((result) => { managementEndpoint = result as string; @@ -58,7 +58,7 @@ describe("TESTS: Configuration => Datasource => PostgreSQL (Finder)", () => { .withResource("/home/fixtures/jdbc-drivers/postgresql-42.5.1.jar") .withDependencies(["javax.api"]) .build() - .toCLICommand() + .toCLICommand(), ).then(() => { cy.task("execute:cli", { managementApi: managementEndpoint + "/management", @@ -76,7 +76,7 @@ describe("TESTS: Configuration => Datasource => PostgreSQL (Finder)", () => { .withUsername(postgresUser) .withPassword(postgresPassword) .build() - .toCLICommand() + .toCLICommand(), ); cy.executeInWildflyContainer( new AddXADataSourceBuilder() @@ -89,7 +89,7 @@ describe("TESTS: Configuration => Datasource => PostgreSQL (Finder)", () => { .withXaDataSourceProperty("serverName", postgresContainerName) .withXaDataSourceProperty("databaseName", postgresDatabaseName) .build() - .toCLICommand() + .toCLICommand(), ); }); }); @@ -103,7 +103,7 @@ describe("TESTS: Configuration => Datasource => PostgreSQL (Finder)", () => { it("Should list created datasources in the column", () => { cy.navigateTo( managementEndpoint, - "configuration;path=configuration~subsystems!css~datasources!data-source-driver~datasources" + "configuration;path=configuration~subsystems!css~datasources!data-source-driver~datasources", ); cy.get("#ds-configuration li.finder-item").should("have.length", 3); cy.get("#non-xa-dsc-" + "ExampleDS".toLowerCase()).should("be.visible"); @@ -115,14 +115,14 @@ describe("TESTS: Configuration => Datasource => PostgreSQL (Finder)", () => { const id = "#non-xa-dsc-" + postgresDSToAdd.name.toLowerCase(); cy.navigateTo( managementEndpoint, - "configuration;path=configuration~subsystems!css~datasources!data-source-driver~datasources" + "configuration;path=configuration~subsystems!css~datasources!data-source-driver~datasources", ); cy.get(id).should("be.visible"); cy.get(id).click(); cy.get(id + " button.btn.btn-finder.dropdown-toggle").click(); cy.get(id + ' a.clickable:contains("Test Connection")').click(); cy.get('span:contains("Successfully tested connection for data source ' + postgresDSToAdd.name + '")').should( - "be.visible" + "be.visible", ); }); @@ -130,7 +130,7 @@ describe("TESTS: Configuration => Datasource => PostgreSQL (Finder)", () => { const id = "#non-xa-dsc-" + postgresDSToAdd.name.toLowerCase(); cy.navigateTo( managementEndpoint, - "configuration;path=configuration~subsystems!css~datasources!data-source-driver~datasources" + "configuration;path=configuration~subsystems!css~datasources!data-source-driver~datasources", ); cy.get(id).should("be.visible"); cy.get(id).click(); @@ -145,7 +145,7 @@ describe("TESTS: Configuration => Datasource => PostgreSQL (Finder)", () => { const id = "#non-xa-dsc-" + postgresDSToAdd.name.toLowerCase(); cy.navigateTo( managementEndpoint, - "configuration;path=configuration~subsystems!css~datasources!data-source-driver~datasources" + "configuration;path=configuration~subsystems!css~datasources!data-source-driver~datasources", ); cy.get(id).should("be.visible"); cy.get(id).click(); @@ -158,7 +158,7 @@ describe("TESTS: Configuration => Datasource => PostgreSQL (Finder)", () => { const id = "#non-xa-dsc-" + postgresDSToAdd.name.toLowerCase(); cy.navigateTo( managementEndpoint, - "configuration;path=configuration~subsystems!css~datasources!data-source-driver~datasources" + "configuration;path=configuration~subsystems!css~datasources!data-source-driver~datasources", ); cy.get(id).should("be.visible"); cy.get(id).click(); @@ -171,7 +171,7 @@ describe("TESTS: Configuration => Datasource => PostgreSQL (Finder)", () => { it("Creates PostgreSQL datasource via Wizard", () => { cy.navigateTo( managementEndpoint, - "configuration;path=configuration~subsystems!css~datasources!data-source-driver~datasources" + "configuration;path=configuration~subsystems!css~datasources!data-source-driver~datasources", ); cy.get("#ds-configuration-add-actions").click(); cy.get("#ds-configuration-add").click({ force: true }); @@ -210,7 +210,7 @@ describe("TESTS: Configuration => Datasource => PostgreSQL (Finder)", () => { it("Creates PostgreSQL XA datasource via Wizard", () => { cy.navigateTo( managementEndpoint, - "configuration;path=configuration~subsystems!css~datasources!data-source-driver~datasources" + "configuration;path=configuration~subsystems!css~datasources!data-source-driver~datasources", ); cy.get("#ds-configuration-add-actions").click(); cy.get("#xa-data-source-add").click({ force: true }); @@ -241,7 +241,7 @@ describe("TESTS: Configuration => Datasource => PostgreSQL (Finder)", () => { }); cy.get(".tag-manager-container .tm-tag").should( "have.length", - Object.entries(postgresDefaultXADS.xaProperties).length + Object.entries(postgresDefaultXADS.xaProperties).length, ); cy.get(".modal-footer .btn-primary").click(); cy.get(".wizard-pf-steps .wizard-pf-step.active .wizard-pf-step-number").should("have.text", "5"); diff --git a/packages/testsuite/cypress/e2e/datasource/test-configuration-datasource-postgre.cy.ts b/packages/testsuite/cypress/e2e/datasource/test-configuration-datasource-postgre.cy.ts index 6783c8b35..4e0529d40 100644 --- a/packages/testsuite/cypress/e2e/datasource/test-configuration-datasource-postgre.cy.ts +++ b/packages/testsuite/cypress/e2e/datasource/test-configuration-datasource-postgre.cy.ts @@ -32,7 +32,7 @@ describe("TESTS: Configuration => Datasource => PostgreSQL", () => { POSTGRES_DB: postgresDatabaseName, }, }, - { timeout: 120_000 } + { timeout: 120_000 }, ); cy.startWildflyContainer().then((result) => { managementEndpoint = result as string; @@ -42,7 +42,7 @@ describe("TESTS: Configuration => Datasource => PostgreSQL", () => { .withResource("/home/fixtures/jdbc-drivers/postgresql-42.5.1.jar") .withDependencies(["javax.api"]) .build() - .toCLICommand() + .toCLICommand(), ).then(() => { cy.task("execute:cli", { managementApi: managementEndpoint + "/management", @@ -60,7 +60,7 @@ describe("TESTS: Configuration => Datasource => PostgreSQL", () => { .withUsername(postgresUser) .withPassword(postgresPassword) .build() - .toCLICommand() + .toCLICommand(), ); cy.executeInWildflyContainer( new AddXADataSourceBuilder() @@ -73,7 +73,7 @@ describe("TESTS: Configuration => Datasource => PostgreSQL", () => { .withXaDataSourceProperty("serverName", postgresContainerName) .withXaDataSourceProperty("databaseName", postgresDatabaseName) .build() - .toCLICommand() + .toCLICommand(), ); }); }); diff --git a/packages/testsuite/cypress/e2e/datasource/test-configuration-datasource-sqlserver-finder.cy.ts b/packages/testsuite/cypress/e2e/datasource/test-configuration-datasource-sqlserver-finder.cy.ts index 6bf8fca15..262dfe297 100644 --- a/packages/testsuite/cypress/e2e/datasource/test-configuration-datasource-sqlserver-finder.cy.ts +++ b/packages/testsuite/cypress/e2e/datasource/test-configuration-datasource-sqlserver-finder.cy.ts @@ -63,7 +63,7 @@ describe("TESTS: Configuration => Datasource => SQL Server (Finder)", () => { MSSQL_SA_PASSWORD: sqlserverPassword, }, }, - { timeout: 360_000 } + { timeout: 360_000 }, ); cy.startWildflyContainer() .then((result) => { @@ -76,7 +76,7 @@ describe("TESTS: Configuration => Datasource => SQL Server (Finder)", () => { .withResource("/home/fixtures/jdbc-drivers/mssql-jdbc-11.2.1.jre11.jar") .withDependencies(["javax.api"]) .build() - .toCLICommand() + .toCLICommand(), ); }) .then(() => { @@ -96,7 +96,7 @@ describe("TESTS: Configuration => Datasource => SQL Server (Finder)", () => { .withUsername(sqlserverUser) .withPassword(sqlserverPassword) .build() - .toCLICommand() + .toCLICommand(), ); cy.executeInWildflyContainer( new AddXADataSourceBuilder() @@ -111,7 +111,7 @@ describe("TESTS: Configuration => Datasource => SQL Server (Finder)", () => { .withXaDataSourceProperty("encrypt", "true") .withXaDataSourceProperty("trustServerCertificate", "true") .build() - .toCLICommand() + .toCLICommand(), ); }); }); @@ -124,7 +124,7 @@ describe("TESTS: Configuration => Datasource => SQL Server (Finder)", () => { it("Should list created datasources in the column", () => { cy.navigateTo( managementEndpoint, - "configuration;path=configuration~subsystems!css~datasources!data-source-driver~datasources" + "configuration;path=configuration~subsystems!css~datasources!data-source-driver~datasources", ); cy.get("#ds-configuration li.finder-item").should("have.length", 3); cy.get("#non-xa-dsc-" + "ExampleDS".toLowerCase()).should("be.visible"); @@ -136,14 +136,14 @@ describe("TESTS: Configuration => Datasource => SQL Server (Finder)", () => { const id = "#non-xa-dsc-" + sqlserverDSToAdd.name.toLowerCase(); cy.navigateTo( managementEndpoint, - "configuration;path=configuration~subsystems!css~datasources!data-source-driver~datasources" + "configuration;path=configuration~subsystems!css~datasources!data-source-driver~datasources", ); cy.get(id).should("be.visible"); cy.get(id).click(); cy.get(id + " button.btn.btn-finder.dropdown-toggle").click(); cy.get(id + ' a.clickable:contains("Test Connection")').click(); cy.get('span:contains("Successfully tested connection for data source ' + sqlserverDSToAdd.name + '")').should( - "be.visible" + "be.visible", ); }); @@ -151,7 +151,7 @@ describe("TESTS: Configuration => Datasource => SQL Server (Finder)", () => { const id = "#non-xa-dsc-" + sqlserverDSToAdd.name.toLowerCase(); cy.navigateTo( managementEndpoint, - "configuration;path=configuration~subsystems!css~datasources!data-source-driver~datasources" + "configuration;path=configuration~subsystems!css~datasources!data-source-driver~datasources", ); cy.get(id).should("be.visible"); cy.get(id).click(); @@ -166,7 +166,7 @@ describe("TESTS: Configuration => Datasource => SQL Server (Finder)", () => { const id = "#non-xa-dsc-" + sqlserverDSToAdd.name.toLowerCase(); cy.navigateTo( managementEndpoint, - "configuration;path=configuration~subsystems!css~datasources!data-source-driver~datasources" + "configuration;path=configuration~subsystems!css~datasources!data-source-driver~datasources", ); cy.get(id).should("be.visible"); cy.get(id).click(); @@ -179,7 +179,7 @@ describe("TESTS: Configuration => Datasource => SQL Server (Finder)", () => { const id = "#non-xa-dsc-" + sqlserverDSToAdd.name.toLowerCase(); cy.navigateTo( managementEndpoint, - "configuration;path=configuration~subsystems!css~datasources!data-source-driver~datasources" + "configuration;path=configuration~subsystems!css~datasources!data-source-driver~datasources", ); cy.get(id).should("be.visible"); cy.get(id).click(); @@ -192,7 +192,7 @@ describe("TESTS: Configuration => Datasource => SQL Server (Finder)", () => { it("Creates SQLServer datasource via Wizard", () => { cy.navigateTo( managementEndpoint, - "configuration;path=configuration~subsystems!css~datasources!data-source-driver~datasources" + "configuration;path=configuration~subsystems!css~datasources!data-source-driver~datasources", ); cy.get("#ds-configuration-add-actions").click(); cy.get("#ds-configuration-add").click({ force: true }); @@ -231,7 +231,7 @@ describe("TESTS: Configuration => Datasource => SQL Server (Finder)", () => { it("Creates SQLServer XA datasource via Wizard", () => { cy.navigateTo( managementEndpoint, - "configuration;path=configuration~subsystems!css~datasources!data-source-driver~datasources" + "configuration;path=configuration~subsystems!css~datasources!data-source-driver~datasources", ); cy.get("#ds-configuration-add-actions").click(); cy.get("#xa-data-source-add").click({ force: true }); @@ -262,7 +262,7 @@ describe("TESTS: Configuration => Datasource => SQL Server (Finder)", () => { }); cy.get(".tag-manager-container .tm-tag").should( "have.length", - Object.entries(sqlserverDefaultXADS.xaProperties).length + Object.entries(sqlserverDefaultXADS.xaProperties).length, ); cy.get(".modal-footer .btn-primary").click(); cy.get(".wizard-pf-steps .wizard-pf-step.active .wizard-pf-step-number").should("have.text", "5"); diff --git a/packages/testsuite/cypress/e2e/deployment-scanner/test-configuration-subsystem-deployment-scanner.cy.ts b/packages/testsuite/cypress/e2e/deployment-scanner/test-configuration-subsystem-deployment-scanner.cy.ts index f848a4daa..16a26c38f 100644 --- a/packages/testsuite/cypress/e2e/deployment-scanner/test-configuration-subsystem-deployment-scanner.cy.ts +++ b/packages/testsuite/cypress/e2e/deployment-scanner/test-configuration-subsystem-deployment-scanner.cy.ts @@ -83,7 +83,7 @@ describe("TESTS: Configuration => Subsystem => Deployment Scanner", () => { managementEndpoint, address.concat(deploymentScanners.update.name), autoDeployExploded, - !value + !value, ); }); }); @@ -156,7 +156,7 @@ describe("TESTS: Configuration => Subsystem => Deployment Scanner", () => { managementEndpoint, address.concat(deploymentScanners.update.name), relativeTo, - "jboss.server.base.dir" + "jboss.server.base.dir", ); }); @@ -179,7 +179,7 @@ describe("TESTS: Configuration => Subsystem => Deployment Scanner", () => { managementEndpoint, address.concat(deploymentScanners.update.name), runtimeFailureCausesRollback, - !value + !value, ); }); }); diff --git a/packages/testsuite/cypress/e2e/distributable-web/test-configuration-subsystem-distributable-web-configuration.cy.ts b/packages/testsuite/cypress/e2e/distributable-web/test-configuration-subsystem-distributable-web-configuration.cy.ts index 52168b62d..7ae481541 100644 --- a/packages/testsuite/cypress/e2e/distributable-web/test-configuration-subsystem-distributable-web-configuration.cy.ts +++ b/packages/testsuite/cypress/e2e/distributable-web/test-configuration-subsystem-distributable-web-configuration.cy.ts @@ -48,7 +48,7 @@ describe("TESTS: Configuration => Subsystem => Distributable Web => Configuratio { host: outBoundSocketBinding.host, port: outBoundSocketBinding.port, - } + }, ); cy.task("execute:cli", { operation: "composite", @@ -79,7 +79,7 @@ describe("TESTS: Configuration => Subsystem => Distributable Web => Configuratio { granularity: hotRodSessionManagements.create.granularity, "remote-cache-container": hotRodSessionManagements.create["remote-cache-container"], - } + }, ); cy.addAddress( managementEndpoint, @@ -91,7 +91,7 @@ describe("TESTS: Configuration => Subsystem => Distributable Web => Configuratio ], { "remote-cache-container": hotRodSingleSignOnManagements.create["remote-cache-container"], - } + }, ); }); }); @@ -107,7 +107,7 @@ describe("TESTS: Configuration => Subsystem => Distributable Web => Configuratio managementEndpoint, ["subsystem", "distributable-web"], "default-session-management", - hotRodSessionManagements.create.name + hotRodSessionManagements.create.name, ); }); @@ -122,7 +122,7 @@ describe("TESTS: Configuration => Subsystem => Distributable Web => Configuratio managementEndpoint, ["subsystem", "distributable-web"], "default-single-sign-on-management", - hotRodSingleSignOnManagements.create.name + hotRodSingleSignOnManagements.create.name, ); }); diff --git a/packages/testsuite/cypress/e2e/distributable-web/test-configuration-subsystem-distributable-web-hotrod-session.cy.ts b/packages/testsuite/cypress/e2e/distributable-web/test-configuration-subsystem-distributable-web-hotrod-session.cy.ts index 387cc5598..c37d1f403 100644 --- a/packages/testsuite/cypress/e2e/distributable-web/test-configuration-subsystem-distributable-web-hotrod-session.cy.ts +++ b/packages/testsuite/cypress/e2e/distributable-web/test-configuration-subsystem-distributable-web-hotrod-session.cy.ts @@ -58,7 +58,7 @@ describe("TESTS: Configuration => Subsystem => Distributable Web => HotRod Sessi { host: outBoundSocketBinding.host, port: outBoundSocketBinding.port, - } + }, ); cy.task("execute:cli", { operation: "composite", @@ -112,7 +112,7 @@ describe("TESTS: Configuration => Subsystem => Distributable Web => HotRod Sessi { granularity: hotRodSessionManagements.delete.granularity, "remote-cache-container": hotRodSessionManagements.delete["remote-cache-container"], - } + }, ); cy.addAddress( managementEndpoint, @@ -120,7 +120,7 @@ describe("TESTS: Configuration => Subsystem => Distributable Web => HotRod Sessi { granularity: hotRodSessionManagements.update.granularity, "remote-cache-container": hotRodSessionManagements.update["remote-cache-container"], - } + }, ); cy.addAddress( managementEndpoint, @@ -128,7 +128,7 @@ describe("TESTS: Configuration => Subsystem => Distributable Web => HotRod Sessi { granularity: hotRodSessionManagements.reset.granularity, "remote-cache-container": hotRodSessionManagements.reset["remote-cache-container"], - } + }, ); }); }); @@ -145,14 +145,14 @@ describe("TESTS: Configuration => Subsystem => Distributable Web => HotRod Sessi cy.text( "dw-hotrod-session-management-table-add", "remote-cache-container", - hotRodSessionManagements.create["remote-cache-container"] + hotRodSessionManagements.create["remote-cache-container"], ); cy.confirmAddResourceWizard(); cy.verifySuccess(); cy.validateAddress( managementEndpoint, ["subsystem", "distributable-web", "hotrod-session-management", hotRodSessionManagements.create.name], - true + true, ); }); @@ -180,7 +180,7 @@ describe("TESTS: Configuration => Subsystem => Distributable Web => HotRod Sessi managementEndpoint, ["subsystem", "distributable-web", "hotrod-session-management", hotRodSessionManagements.update.name], "cache-configuration", - "example" + "example", ); }); @@ -202,7 +202,7 @@ describe("TESTS: Configuration => Subsystem => Distributable Web => HotRod Sessi managementEndpoint, ["subsystem", "distributable-web", "hotrod-session-management", hotRodSessionManagements.update.name], granularity, - "ATTRIBUTE" + "ATTRIBUTE", ); }); @@ -218,7 +218,7 @@ describe("TESTS: Configuration => Subsystem => Distributable Web => HotRod Sessi managementEndpoint, ["subsystem", "distributable-web", "hotrod-session-management", hotRodSessionManagements.update.name], "remote-cache-container", - remoteCacheContainers.update.name + remoteCacheContainers.update.name, ); }); @@ -226,7 +226,7 @@ describe("TESTS: Configuration => Subsystem => Distributable Web => HotRod Sessi cy.validateAddress( managementEndpoint, ["subsystem", "distributable-web", "hotrod-session-management", hotRodSessionManagements.delete.name], - true + true, ); cy.navigateTo(managementEndpoint, "distributable-web"); cy.get("#dw-hotrod-session-management-item").click(); @@ -235,7 +235,7 @@ describe("TESTS: Configuration => Subsystem => Distributable Web => HotRod Sessi cy.validateAddress( managementEndpoint, ["subsystem", "distributable-web", "hotrod-session-management", hotRodSessionManagements.delete.name], - false + false, ); }); }); diff --git a/packages/testsuite/cypress/e2e/distributable-web/test-configuration-subsystem-distributable-web-hotrod-sso.cy.ts b/packages/testsuite/cypress/e2e/distributable-web/test-configuration-subsystem-distributable-web-hotrod-sso.cy.ts index bb6a1ad4d..3f013f1a7 100644 --- a/packages/testsuite/cypress/e2e/distributable-web/test-configuration-subsystem-distributable-web-hotrod-sso.cy.ts +++ b/packages/testsuite/cypress/e2e/distributable-web/test-configuration-subsystem-distributable-web-hotrod-sso.cy.ts @@ -57,7 +57,7 @@ describe("TESTS: Configuration => Subsystem => Distributable Web => HotRod SSO", { host: outBoundSocketBinding.host, port: outBoundSocketBinding.port, - } + }, ); cy.task("execute:cli", { operation: "composite", @@ -115,7 +115,7 @@ describe("TESTS: Configuration => Subsystem => Distributable Web => HotRod SSO", ], { "remote-cache-container": hotRodSingleSignOnManagements.update["remote-cache-container"], - } + }, ); cy.addAddress( managementEndpoint, @@ -127,7 +127,7 @@ describe("TESTS: Configuration => Subsystem => Distributable Web => HotRod SSO", ], { "remote-cache-container": hotRodSingleSignOnManagements.reset["remote-cache-container"], - } + }, ); cy.addAddress( managementEndpoint, @@ -139,7 +139,7 @@ describe("TESTS: Configuration => Subsystem => Distributable Web => HotRod SSO", ], { "remote-cache-container": hotRodSingleSignOnManagements.delete["remote-cache-container"], - } + }, ); }); }); @@ -156,14 +156,14 @@ describe("TESTS: Configuration => Subsystem => Distributable Web => HotRod SSO", cy.text( "dw-hotrod-sso-management-table-add", "remote-cache-container", - hotRodSingleSignOnManagements.create["remote-cache-container"] + hotRodSingleSignOnManagements.create["remote-cache-container"], ); cy.confirmAddResourceWizard(); cy.verifySuccess(); cy.validateAddress( managementEndpoint, ["subsystem", "distributable-web", "hotrod-single-sign-on-management", hotRodSingleSignOnManagements.create.name], - true + true, ); }); @@ -179,7 +179,7 @@ describe("TESTS: Configuration => Subsystem => Distributable Web => HotRod SSO", managementEndpoint, ["subsystem", "distributable-web", "hotrod-single-sign-on-management", hotRodSingleSignOnManagements.update.name], "cache-configuration", - "example" + "example", ); }); @@ -195,7 +195,7 @@ describe("TESTS: Configuration => Subsystem => Distributable Web => HotRod SSO", managementEndpoint, ["subsystem", "distributable-web", "hotrod-single-sign-on-management", hotRodSingleSignOnManagements.update.name], "remote-cache-container", - remoteCacheContainers.update.name + remoteCacheContainers.update.name, ); }); @@ -203,7 +203,7 @@ describe("TESTS: Configuration => Subsystem => Distributable Web => HotRod SSO", cy.validateAddress( managementEndpoint, ["subsystem", "distributable-web", "hotrod-single-sign-on-management", hotRodSingleSignOnManagements.delete.name], - true + true, ); cy.navigateTo(managementEndpoint, "distributable-web"); cy.get("#dw-hotrod-sso-management-item").click(); @@ -212,7 +212,7 @@ describe("TESTS: Configuration => Subsystem => Distributable Web => HotRod SSO", cy.validateAddress( managementEndpoint, ["subsystem", "distributable-web", "hotrod-single-sign-on-management", hotRodSingleSignOnManagements.delete.name], - false + false, ); }); diff --git a/packages/testsuite/cypress/e2e/distributable-web/test-configuration-subsystem-distributable-web-infinispan-session.cy.ts b/packages/testsuite/cypress/e2e/distributable-web/test-configuration-subsystem-distributable-web-infinispan-session.cy.ts index 2400270ca..8bc077fb5 100644 --- a/packages/testsuite/cypress/e2e/distributable-web/test-configuration-subsystem-distributable-web-infinispan-session.cy.ts +++ b/packages/testsuite/cypress/e2e/distributable-web/test-configuration-subsystem-distributable-web-infinispan-session.cy.ts @@ -198,14 +198,14 @@ describe("TESTS: Configuration => Subsystem => Distributable Web => Infinispan S cy.text( "dw-infinispan-session-management-table-add", "cache-container", - infinispanSessionManagements.create["cache-container"] + infinispanSessionManagements.create["cache-container"], ); cy.confirmAddResourceWizard(); cy.verifySuccess(); cy.validateAddress( managementEndpoint, ["subsystem", "distributable-web", "infinispan-session-management", infinispanSessionManagements.create.name], - true + true, ); }); @@ -221,7 +221,7 @@ describe("TESTS: Configuration => Subsystem => Distributable Web => Infinispan S managementEndpoint, ["subsystem", "distributable-web", "infinispan-session-management", infinispanSessionManagements.update.name], "cache", - cacheToUpdate + cacheToUpdate, ); }); @@ -237,7 +237,7 @@ describe("TESTS: Configuration => Subsystem => Distributable Web => Infinispan S managementEndpoint, ["subsystem", "distributable-web", "infinispan-session-management", infinispanSessionManagements.update.name], "cache-container", - cacheContainers.update.name + cacheContainers.update.name, ); }); @@ -258,7 +258,7 @@ describe("TESTS: Configuration => Subsystem => Distributable Web => Infinispan S managementEndpoint, ["subsystem", "distributable-web", "infinispan-session-management", infinispanSessionManagements.update.name], granularity, - "ATTRIBUTE" + "ATTRIBUTE", ); }); @@ -278,7 +278,7 @@ describe("TESTS: Configuration => Subsystem => Distributable Web => Infinispan S cy.validateAddress( managementEndpoint, ["subsystem", "distributable-web", "infinispan-session-management", infinispanSessionManagements.delete.name], - true + true, ); cy.navigateTo(managementEndpoint, "distributable-web"); cy.get("#dw-infinispan-session-management-item").click(); @@ -287,7 +287,7 @@ describe("TESTS: Configuration => Subsystem => Distributable Web => Infinispan S cy.validateAddress( managementEndpoint, ["subsystem", "distributable-web", "infinispan-session-management", infinispanSessionManagements.delete.name], - false + false, ); }); }); diff --git a/packages/testsuite/cypress/e2e/distributable-web/test-configuration-subsystem-distributable-web-infinispan-sso.cy.ts b/packages/testsuite/cypress/e2e/distributable-web/test-configuration-subsystem-distributable-web-infinispan-sso.cy.ts index c2077a8f6..ee1c01ec3 100644 --- a/packages/testsuite/cypress/e2e/distributable-web/test-configuration-subsystem-distributable-web-infinispan-sso.cy.ts +++ b/packages/testsuite/cypress/e2e/distributable-web/test-configuration-subsystem-distributable-web-infinispan-sso.cy.ts @@ -108,7 +108,7 @@ describe("TESTS: Configuration => Subsystem => Distributable Web => Infinispan S ], { "cache-container": infinispanSingleSignOnManagements.update["cache-container"], - } + }, ); cy.addAddress( managementEndpoint, @@ -120,7 +120,7 @@ describe("TESTS: Configuration => Subsystem => Distributable Web => Infinispan S ], { "cache-container": infinispanSingleSignOnManagements.delete["cache-container"], - } + }, ); cy.addAddress( managementEndpoint, @@ -132,7 +132,7 @@ describe("TESTS: Configuration => Subsystem => Distributable Web => Infinispan S ], { "cache-container": infinispanSingleSignOnManagements.reset["cache-container"], - } + }, ); }); }); @@ -149,7 +149,7 @@ describe("TESTS: Configuration => Subsystem => Distributable Web => Infinispan S cy.text( "dw-infinispan-sso-management-table-add", "cache-container", - infinispanSingleSignOnManagements.create["cache-container"] + infinispanSingleSignOnManagements.create["cache-container"], ); cy.confirmAddResourceWizard(); cy.verifySuccess(); @@ -161,7 +161,7 @@ describe("TESTS: Configuration => Subsystem => Distributable Web => Infinispan S "infinispan-single-sign-on-management", infinispanSingleSignOnManagements.create.name, ], - true + true, ); }); @@ -182,7 +182,7 @@ describe("TESTS: Configuration => Subsystem => Distributable Web => Infinispan S infinispanSingleSignOnManagements.update.name, ], "cache", - cacheToUpdate + cacheToUpdate, ); }); @@ -203,7 +203,7 @@ describe("TESTS: Configuration => Subsystem => Distributable Web => Infinispan S infinispanSingleSignOnManagements.update.name, ], "cache-container", - cacheContainers.update.name + cacheContainers.update.name, ); }); @@ -228,7 +228,7 @@ describe("TESTS: Configuration => Subsystem => Distributable Web => Infinispan S "infinispan-single-sign-on-management", infinispanSingleSignOnManagements.delete.name, ], - true + true, ); cy.navigateTo(managementEndpoint, "distributable-web"); cy.get("#dw-infinispan-sso-management-item").click(); @@ -242,7 +242,7 @@ describe("TESTS: Configuration => Subsystem => Distributable Web => Infinispan S "infinispan-single-sign-on-management", infinispanSingleSignOnManagements.delete.name, ], - false + false, ); }); }); diff --git a/packages/testsuite/cypress/e2e/distributable-web/test-configuration-subsystem-distributable-web-routing.cy.ts b/packages/testsuite/cypress/e2e/distributable-web/test-configuration-subsystem-distributable-web-routing.cy.ts index 9f161a9a1..f09f17461 100644 --- a/packages/testsuite/cypress/e2e/distributable-web/test-configuration-subsystem-distributable-web-routing.cy.ts +++ b/packages/testsuite/cypress/e2e/distributable-web/test-configuration-subsystem-distributable-web-routing.cy.ts @@ -108,7 +108,7 @@ describe("TESTS: Configuration => Subsystem => Distributable Web => Routing", () managementEndpoint, ["subsystem", "distributable-web", "routing", "infinispan"], "cache", - cacheToUpdate + cacheToUpdate, ); }); @@ -126,7 +126,7 @@ describe("TESTS: Configuration => Subsystem => Distributable Web => Routing", () managementEndpoint, ["subsystem", "distributable-web", "routing", "infinispan"], "cache-container", - cacheContainers.update.name + cacheContainers.update.name, ); }); diff --git a/packages/testsuite/cypress/e2e/ee/test-configuration-subsystem-ee-globals.cy.ts b/packages/testsuite/cypress/e2e/ee/test-configuration-subsystem-ee-globals.cy.ts index 08e6881c6..f1f8e91a4 100644 --- a/packages/testsuite/cypress/e2e/ee/test-configuration-subsystem-ee-globals.cy.ts +++ b/packages/testsuite/cypress/e2e/ee/test-configuration-subsystem-ee-globals.cy.ts @@ -92,7 +92,7 @@ describe("TESTS: Configuration => Subsystem => EE => Globals", () => { managementEndpoint, ["subsystem", "ee", "global-directory", globalDirectory.name], "path", - "updated-path" + "updated-path", ); }); diff --git a/packages/testsuite/cypress/e2e/ee/test-configuration-subsystem-ee-services-context-service.cy.ts b/packages/testsuite/cypress/e2e/ee/test-configuration-subsystem-ee-services-context-service.cy.ts index fb532a08a..35c079e41 100644 --- a/packages/testsuite/cypress/e2e/ee/test-configuration-subsystem-ee-services-context-service.cy.ts +++ b/packages/testsuite/cypress/e2e/ee/test-configuration-subsystem-ee-services-context-service.cy.ts @@ -70,7 +70,7 @@ describe("TESTS: Configuration => Subsystem => EE => Services => Context Service managementEndpoint, ["subsystem", "ee", "context-service", contextServices.update.name], "jndi-name", - "java:jboss/updated" + "java:jboss/updated", ); }); diff --git a/packages/testsuite/cypress/e2e/ee/test-configuration-subsystem-ee-services-executor.cy.ts b/packages/testsuite/cypress/e2e/ee/test-configuration-subsystem-ee-services-executor.cy.ts index ab2dafc75..64de860c0 100644 --- a/packages/testsuite/cypress/e2e/ee/test-configuration-subsystem-ee-services-executor.cy.ts +++ b/packages/testsuite/cypress/e2e/ee/test-configuration-subsystem-ee-services-executor.cy.ts @@ -67,7 +67,7 @@ describe("TESTS: Configuration => Subsystem => EE => Services => Executor", () = cy.validateAddress( managementEndpoint, ["subsystem", "ee", "managed-executor-service", executors.create.name], - true + true, ); }); @@ -93,7 +93,7 @@ describe("TESTS: Configuration => Subsystem => EE => Services => Executor", () = cy.validateAddress( managementEndpoint, ["subsystem", "ee", "managed-executor-service", executors.remove.name], - false + false, ); }); @@ -110,7 +110,7 @@ describe("TESTS: Configuration => Subsystem => EE => Services => Executor", () = managementEndpoint, ["subsystem", "ee", "managed-executor-service", executors.update.name], "context-service", - contextServices.update.name + contextServices.update.name, ); }); @@ -127,7 +127,7 @@ describe("TESTS: Configuration => Subsystem => EE => Services => Executor", () = managementEndpoint, ["subsystem", "ee", "managed-executor-service", executors.update.name], "core-threads", - 3 + 3, ); }); @@ -144,7 +144,7 @@ describe("TESTS: Configuration => Subsystem => EE => Services => Executor", () = managementEndpoint, ["subsystem", "ee", "managed-executor-service", executors.update.name], "hung-task-termination-period", - 3000 + 3000, ); }); @@ -161,7 +161,7 @@ describe("TESTS: Configuration => Subsystem => EE => Services => Executor", () = managementEndpoint, ["subsystem", "ee", "managed-executor-service", executors.update.name], "hung-task-threshold", - 3000 + 3000, ); }); @@ -178,7 +178,7 @@ describe("TESTS: Configuration => Subsystem => EE => Services => Executor", () = managementEndpoint, ["subsystem", "ee", "managed-executor-service", executors.update.name], "jndi-name", - "java:jboss/updatedJndiName" + "java:jboss/updatedJndiName", ); }); @@ -195,7 +195,7 @@ describe("TESTS: Configuration => Subsystem => EE => Services => Executor", () = managementEndpoint, ["subsystem", "ee", "managed-executor-service", executors.update.name], "keepalive-time", - 3000 + 3000, ); }); @@ -220,7 +220,7 @@ describe("TESTS: Configuration => Subsystem => EE => Services => Executor", () = managementEndpoint, ["subsystem", "ee", "managed-executor-service", executors.update.name], "long-running-tasks", - !value + !value, ); }); }); @@ -238,7 +238,7 @@ describe("TESTS: Configuration => Subsystem => EE => Services => Executor", () = managementEndpoint, ["subsystem", "ee", "managed-executor-service", executors.update.name], "max-threads", - 3 + 3, ); }); @@ -255,7 +255,7 @@ describe("TESTS: Configuration => Subsystem => EE => Services => Executor", () = managementEndpoint, ["subsystem", "ee", "managed-executor-service", executors.update.name], "queue-length", - 3 + 3, ); }); @@ -278,7 +278,7 @@ describe("TESTS: Configuration => Subsystem => EE => Services => Executor", () = managementEndpoint, ["subsystem", "ee", "managed-executor-service", executors.update.name], "reject-policy", - "RETRY_ABORT" + "RETRY_ABORT", ); }); @@ -295,7 +295,7 @@ describe("TESTS: Configuration => Subsystem => EE => Services => Executor", () = managementEndpoint, ["subsystem", "ee", "managed-executor-service", executors.update.name], "thread-priority", - 3 + 3, ); }); }); diff --git a/packages/testsuite/cypress/e2e/ee/test-configuration-subsystem-ee-services-scheduled-executor.cy.ts b/packages/testsuite/cypress/e2e/ee/test-configuration-subsystem-ee-services-scheduled-executor.cy.ts index 6ff279db6..b5db1ec88 100644 --- a/packages/testsuite/cypress/e2e/ee/test-configuration-subsystem-ee-services-scheduled-executor.cy.ts +++ b/packages/testsuite/cypress/e2e/ee/test-configuration-subsystem-ee-services-scheduled-executor.cy.ts @@ -44,21 +44,21 @@ describe("TESTS: Configuration => Subsystem => EE => Services => Scheduled Execu ["subsystem", "ee", "managed-scheduled-executor-service", scheduledExecutors.update.name], { "jndi-name": scheduledExecutors.update["jndi-name"], - } + }, ); cy.addAddress( managementEndpoint, ["subsystem", "ee", "managed-scheduled-executor-service", scheduledExecutors.reset.name], { "jndi-name": scheduledExecutors.reset["jndi-name"], - } + }, ); cy.addAddress( managementEndpoint, ["subsystem", "ee", "managed-scheduled-executor-service", scheduledExecutors.remove.name], { "jndi-name": scheduledExecutors.remove["jndi-name"], - } + }, ); }); }); @@ -79,7 +79,7 @@ describe("TESTS: Configuration => Subsystem => EE => Services => Scheduled Execu cy.validateAddress( managementEndpoint, ["subsystem", "ee", "managed-scheduled-executor-service", scheduledExecutors.create.name], - true + true, ); }); @@ -105,7 +105,7 @@ describe("TESTS: Configuration => Subsystem => EE => Services => Scheduled Execu cy.validateAddress( managementEndpoint, ["subsystem", "ee", "managed-scheduled-executor-service", scheduledExecutors.remove.name], - false + false, ); }); @@ -122,7 +122,7 @@ describe("TESTS: Configuration => Subsystem => EE => Services => Scheduled Execu managementEndpoint, ["subsystem", "ee", "managed-scheduled-executor-service", scheduledExecutors.update.name], "context-service", - contextServices.update.name + contextServices.update.name, ); }); @@ -139,7 +139,7 @@ describe("TESTS: Configuration => Subsystem => EE => Services => Scheduled Execu managementEndpoint, ["subsystem", "ee", "managed-scheduled-executor-service", scheduledExecutors.update.name], "core-threads", - 3 + 3, ); }); @@ -156,7 +156,7 @@ describe("TESTS: Configuration => Subsystem => EE => Services => Scheduled Execu managementEndpoint, ["subsystem", "ee", "managed-scheduled-executor-service", scheduledExecutors.update.name], "hung-task-termination-period", - 3000 + 3000, ); }); @@ -173,7 +173,7 @@ describe("TESTS: Configuration => Subsystem => EE => Services => Scheduled Execu managementEndpoint, ["subsystem", "ee", "managed-scheduled-executor-service", scheduledExecutors.update.name], "hung-task-threshold", - 3000 + 3000, ); }); @@ -190,7 +190,7 @@ describe("TESTS: Configuration => Subsystem => EE => Services => Scheduled Execu managementEndpoint, ["subsystem", "ee", "managed-scheduled-executor-service", scheduledExecutors.update.name], "jndi-name", - "java:jboss/updatedJndiName" + "java:jboss/updatedJndiName", ); }); @@ -207,7 +207,7 @@ describe("TESTS: Configuration => Subsystem => EE => Services => Scheduled Execu managementEndpoint, ["subsystem", "ee", "managed-scheduled-executor-service", scheduledExecutors.update.name], "keepalive-time", - 3000 + 3000, ); }); @@ -232,7 +232,7 @@ describe("TESTS: Configuration => Subsystem => EE => Services => Scheduled Execu managementEndpoint, ["subsystem", "ee", "managed-scheduled-executor-service", scheduledExecutors.update.name], "long-running-tasks", - !value + !value, ); }); }); @@ -256,7 +256,7 @@ describe("TESTS: Configuration => Subsystem => EE => Services => Scheduled Execu managementEndpoint, ["subsystem", "ee", "managed-scheduled-executor-service", scheduledExecutors.update.name], "reject-policy", - "RETRY_ABORT" + "RETRY_ABORT", ); }); @@ -273,7 +273,7 @@ describe("TESTS: Configuration => Subsystem => EE => Services => Scheduled Execu managementEndpoint, ["subsystem", "ee", "managed-scheduled-executor-service", scheduledExecutors.update.name], "thread-priority", - 3 + 3, ); }); }); diff --git a/packages/testsuite/cypress/e2e/ee/test-configuration-subsystem-ee-services-thread-factories.cy.ts b/packages/testsuite/cypress/e2e/ee/test-configuration-subsystem-ee-services-thread-factories.cy.ts index 2c0c4a0e1..502d54133 100644 --- a/packages/testsuite/cypress/e2e/ee/test-configuration-subsystem-ee-services-thread-factories.cy.ts +++ b/packages/testsuite/cypress/e2e/ee/test-configuration-subsystem-ee-services-thread-factories.cy.ts @@ -67,7 +67,7 @@ describe("TESTS: Configuration => Subsystem => EE => Services => Thread Factorie cy.validateAddress( managementEndpoint, ["subsystem", "ee", "managed-thread-factory", threadFactories.create.name], - true + true, ); }); @@ -93,7 +93,7 @@ describe("TESTS: Configuration => Subsystem => EE => Services => Thread Factorie cy.validateAddress( managementEndpoint, ["subsystem", "ee", "managed-thread-factory", threadFactories.remove.name], - false + false, ); }); @@ -110,7 +110,7 @@ describe("TESTS: Configuration => Subsystem => EE => Services => Thread Factorie managementEndpoint, ["subsystem", "ee", "managed-thread-factory", threadFactories.update.name], "context-service", - contextServices.update.name + contextServices.update.name, ); }); @@ -127,7 +127,7 @@ describe("TESTS: Configuration => Subsystem => EE => Services => Thread Factorie managementEndpoint, ["subsystem", "ee", "managed-thread-factory", threadFactories.update.name], "jndi-name", - "java:jboss/updatedJndiName" + "java:jboss/updatedJndiName", ); }); @@ -144,7 +144,7 @@ describe("TESTS: Configuration => Subsystem => EE => Services => Thread Factorie managementEndpoint, ["subsystem", "ee", "managed-thread-factory", threadFactories.update.name], "priority", - 3 + 3, ); }); }); diff --git a/packages/testsuite/cypress/e2e/ejb/test-configuration-subsystem-ejb-container-container.cy.ts b/packages/testsuite/cypress/e2e/ejb/test-configuration-subsystem-ejb-container-container.cy.ts index 11a14ebf0..7ad547c50 100644 --- a/packages/testsuite/cypress/e2e/ejb/test-configuration-subsystem-ejb-container-container.cy.ts +++ b/packages/testsuite/cypress/e2e/ejb/test-configuration-subsystem-ejb-container-container.cy.ts @@ -19,7 +19,7 @@ describe("TESTS: Configuration => Subsystem => EJB => Container => Container", ( ["subsystem", "ejb3", "application-security-domain", securityDomainToUpdate], { "security-domain": "ApplicationDomain", - } + }, ); cy.addAddress(managementEndpoint, ["subsystem", "ejb3", "cache", cacheToUpdate]); cy.addAddress(managementEndpoint, ["subsystem", "ejb3", "strict-max-bean-instance-pool", slsbToUpdate]); diff --git a/packages/testsuite/cypress/e2e/ejb/test-configuration-subsystem-ejb-container-remoting-profile.cy.ts b/packages/testsuite/cypress/e2e/ejb/test-configuration-subsystem-ejb-container-remoting-profile.cy.ts index f72181f6d..1c4c71263 100644 --- a/packages/testsuite/cypress/e2e/ejb/test-configuration-subsystem-ejb-container-remoting-profile.cy.ts +++ b/packages/testsuite/cypress/e2e/ejb/test-configuration-subsystem-ejb-container-remoting-profile.cy.ts @@ -35,13 +35,13 @@ describe("TESTS: Configuration => Subsystem => EJB => Container => Remoting Prof managementEndpoint, address.concat(remotingProfiles.reset.name), "local-receiver-pass-by-value", - true + true, ); cy.writeAttribute( managementEndpoint, address.concat(remotingProfiles.reset.name), "exclude-local-receiver", - true + true, ); cy.writeAttribute(managementEndpoint, address.concat(remotingProfiles.reset.name), "static-ejb-discovery", [ { @@ -90,7 +90,7 @@ describe("TESTS: Configuration => Subsystem => EJB => Container => Remoting Prof managementEndpoint, address.concat(remotingProfiles.update.name), "exclude-local-receiver", - !value + !value, ); }); }); @@ -116,7 +116,7 @@ describe("TESTS: Configuration => Subsystem => EJB => Container => Remoting Prof managementEndpoint, address.concat(remotingProfiles.update.name), "local-receiver-pass-by-value", - !value + !value, ); }); }); @@ -142,7 +142,7 @@ describe("TESTS: Configuration => Subsystem => EJB => Container => Remoting Prof "app-name": "someAppName", "module-name": "someModule", "distinct-name": "someDistinctName", - } + }, ); }); @@ -173,7 +173,7 @@ describe("TESTS: Configuration => Subsystem => EJB => Container => Remoting Prof "app-name": "anotherApp", "module-name": "anotherModule", "distinct-name": "anotherDistinctName", - } + }, ); }); @@ -197,13 +197,13 @@ describe("TESTS: Configuration => Subsystem => EJB => Container => Remoting Prof managementEndpoint, address.concat(remotingProfiles.reset.name), "local-receiver-pass-by-value", - false + false, ); cy.verifyAttribute( managementEndpoint, address.concat(remotingProfiles.reset.name), "exclude-local-receiver", - false + false, ); cy.verifyListAttributeDoesNotContain( managementEndpoint, @@ -214,7 +214,7 @@ describe("TESTS: Configuration => Subsystem => EJB => Container => Remoting Prof "app-name": "someAppName", "module-name": "someModule", "distinct-name": "someDistinctName", - } + }, ); }); }); diff --git a/packages/testsuite/cypress/e2e/ejb/test-configuration-subsystem-ejb-state-management-cache.cy.ts b/packages/testsuite/cypress/e2e/ejb/test-configuration-subsystem-ejb-state-management-cache.cy.ts index fe379e2f6..49b9066d9 100644 --- a/packages/testsuite/cypress/e2e/ejb/test-configuration-subsystem-ejb-state-management-cache.cy.ts +++ b/packages/testsuite/cypress/e2e/ejb/test-configuration-subsystem-ejb-state-management-cache.cy.ts @@ -52,7 +52,7 @@ describe("TESTS: Configuration => Subsystem => EJB => State Management => Cache" ["subsystem", "infinispan", "cache-container", cacheContainers.default.name], { module: "org.wildfly.clustering.ejb.infinispan", - } + }, ); cy.addAddress(managementEndpoint, [ "subsystem", @@ -120,7 +120,7 @@ describe("TESTS: Configuration => Subsystem => EJB => State Management => Cache" managementEndpoint, address.concat(caches.update.name), "passivation-store", - passivations.update.name + passivations.update.name, ); }); diff --git a/packages/testsuite/cypress/e2e/ejb/test-configuration-subsystem-ejb-state-management-passivation.cy.ts b/packages/testsuite/cypress/e2e/ejb/test-configuration-subsystem-ejb-state-management-passivation.cy.ts index e83b26c0c..c3202eca5 100644 --- a/packages/testsuite/cypress/e2e/ejb/test-configuration-subsystem-ejb-state-management-passivation.cy.ts +++ b/packages/testsuite/cypress/e2e/ejb/test-configuration-subsystem-ejb-state-management-passivation.cy.ts @@ -48,7 +48,7 @@ describe("TESTS: Configuration => Subsystem => EJB => State Management => Passiv ["subsystem", "infinispan", "cache-container", cacheContainers.default.name], { module: "org.wildfly.clustering.ejb.infinispan", - } + }, ); cy.addAddress(managementEndpoint, [ "subsystem", @@ -160,7 +160,7 @@ describe("TESTS: Configuration => Subsystem => EJB => State Management => Passiv managementEndpoint, address.concat(passivations.update.name), "cache-container", - cacheContainers.update.name + cacheContainers.update.name, ); }); diff --git a/packages/testsuite/cypress/e2e/elytron-oidc-client/test-oidc-security-configure-oidc.cy.ts b/packages/testsuite/cypress/e2e/elytron-oidc-client/test-oidc-security-configure-oidc.cy.ts index 51f212635..e88ee9807 100644 --- a/packages/testsuite/cypress/e2e/elytron-oidc-client/test-oidc-security-configure-oidc.cy.ts +++ b/packages/testsuite/cypress/e2e/elytron-oidc-client/test-oidc-security-configure-oidc.cy.ts @@ -167,7 +167,7 @@ describe("TESTS: Access secured by Elytron OIDC client, performed in Web Console cy.executeInWildflyContainer( `"/core-service=management/management-interface=http-interface:write-attribute(name=http-authentication-factory,value=management-http-authentication), /core-service=management/management-interface=http-interface:write-attribute(name=http-upgrade,value={sasl-authentication-factory=management-sasl-authentication,enabled=true}), - reload"` + reload"`, ); cy.visit(`/?connect=${wildfly}#home`); cy.origin(keycloak, () => { diff --git a/packages/testsuite/cypress/e2e/elytron-oidc-client/test-oidc-security-rbac.cy.ts b/packages/testsuite/cypress/e2e/elytron-oidc-client/test-oidc-security-rbac.cy.ts index 59e2a3c2a..40110b19b 100644 --- a/packages/testsuite/cypress/e2e/elytron-oidc-client/test-oidc-security-rbac.cy.ts +++ b/packages/testsuite/cypress/e2e/elytron-oidc-client/test-oidc-security-rbac.cy.ts @@ -20,7 +20,7 @@ describe("TESTS: Access secured by Elytron OIDC client with RBAC", () => { /core-service=management/access=authorization:write-attribute(name=use-identity-roles,value=true), /core-service=management/access=authorization/role-mapping=Administrator:add(), /core-service=management/access=authorization/role-mapping=Administrator/include=userwithmappedrole:add(name=userwithmappedrole,type=USER), - reload"` + reload"`, ); }); }); @@ -84,7 +84,7 @@ describe("TESTS: Access secured by Elytron OIDC client with RBAC", () => { verifyNotLoggedIn(keycloak); cy.executeInWildflyContainer( `"/core-service=management/access=authorization/role-mapping=Administrator/exclude=userwithexcludedrole:add(name=userwithexcludedrole,type=USER), - reload"` + reload"`, ).then(() => { logIn("userwithexcludedrole", "password"); cy.verifyErrorMessage("Status 403 - Forbidden."); diff --git a/packages/testsuite/cypress/e2e/elytron-oidc-client/test-oidc-security.cy.ts b/packages/testsuite/cypress/e2e/elytron-oidc-client/test-oidc-security.cy.ts index 0624ea154..bab4fb860 100644 --- a/packages/testsuite/cypress/e2e/elytron-oidc-client/test-oidc-security.cy.ts +++ b/packages/testsuite/cypress/e2e/elytron-oidc-client/test-oidc-security.cy.ts @@ -15,7 +15,7 @@ describe("TESTS: Access secured by Elytron OIDC client", () => { `"/subsystem=elytron-oidc-client/provider=keycloak:add(provider-url=${keycloak}/realms/wildfly-infra), /subsystem=elytron-oidc-client/secure-deployment=wildfly-management:add(provider=keycloak,client-id=wildfly-management,principal-attribute=preferred_username,bearer-only=true,ssl-required=EXTERNAL), /subsystem=elytron-oidc-client/secure-server=wildfly-console:add(provider=keycloak,client-id=wildfly-console,public-client=true), - reload"` + reload"`, ); }); }); diff --git a/packages/testsuite/cypress/e2e/elytron/test-configuration-subsystem-elytron-provider-http-server-mechanism-factory.cy.ts b/packages/testsuite/cypress/e2e/elytron/test-configuration-subsystem-elytron-provider-http-server-mechanism-factory.cy.ts index 800852efa..c6f9e9fd1 100644 --- a/packages/testsuite/cypress/e2e/elytron/test-configuration-subsystem-elytron-provider-http-server-mechanism-factory.cy.ts +++ b/packages/testsuite/cypress/e2e/elytron/test-configuration-subsystem-elytron-provider-http-server-mechanism-factory.cy.ts @@ -46,7 +46,7 @@ describe("TESTS: Configuration => Subsystem => Security => Settings => Factories cy.text( "elytron-provider-http-server-mechanism-factory-add", "name", - providerHttpServiceMechanismFactories.create.name + providerHttpServiceMechanismFactories.create.name, ); cy.confirmAddResourceWizard(); cy.verifySuccess(); @@ -70,7 +70,7 @@ describe("TESTS: Configuration => Subsystem => Security => Settings => Factories cy.resetForm( configurationFormId, managementEndpoint, - address.concat(providerHttpServiceMechanismFactories.reset.name) + address.concat(providerHttpServiceMechanismFactories.reset.name), ); }); @@ -87,7 +87,7 @@ describe("TESTS: Configuration => Subsystem => Security => Settings => Factories managementEndpoint, address.concat(providerHttpServiceMechanismFactories.update.name), "providers", - "pl-to-update" + "pl-to-update", ); }); }); diff --git a/packages/testsuite/cypress/e2e/elytron/test-configuration-subsystem-elytron-service-loader-http-server-mechanism-factory.cy.ts b/packages/testsuite/cypress/e2e/elytron/test-configuration-subsystem-elytron-service-loader-http-server-mechanism-factory.cy.ts index 48c5c322c..f9848f6af 100644 --- a/packages/testsuite/cypress/e2e/elytron/test-configuration-subsystem-elytron-service-loader-http-server-mechanism-factory.cy.ts +++ b/packages/testsuite/cypress/e2e/elytron/test-configuration-subsystem-elytron-service-loader-http-server-mechanism-factory.cy.ts @@ -45,14 +45,14 @@ describe("TESTS: Configuration => Subsystem => Security => Settings => Factories cy.text( "elytron-service-loader-http-server-mechanism-factory-add", "name", - serviceLoaderHttpServiceMechanismFactories.create.name + serviceLoaderHttpServiceMechanismFactories.create.name, ); cy.confirmAddResourceWizard(); cy.verifySuccess(); cy.validateAddress( managementEndpoint, address.concat(serviceLoaderHttpServiceMechanismFactories.create.name), - true + true, ); }); @@ -62,13 +62,13 @@ describe("TESTS: Configuration => Subsystem => Security => Settings => Factories cy.get("#elytron-service-loader-http-server-mechanism-factory-item").click(); cy.removeFromTable( serviceLoaderHttpServerMechanismFactoryTableId, - serviceLoaderHttpServiceMechanismFactories.remove.name + serviceLoaderHttpServiceMechanismFactories.remove.name, ); cy.verifySuccess(); cy.validateAddress( managementEndpoint, address.concat(serviceLoaderHttpServiceMechanismFactories.remove.name), - false + false, ); }); @@ -78,12 +78,12 @@ describe("TESTS: Configuration => Subsystem => Security => Settings => Factories cy.get("#elytron-service-loader-http-server-mechanism-factory-item").click(); cy.selectInTable( serviceLoaderHttpServerMechanismFactoryTableId, - serviceLoaderHttpServiceMechanismFactories.reset.name + serviceLoaderHttpServiceMechanismFactories.reset.name, ); cy.resetForm( configurationFormId, managementEndpoint, - address.concat(serviceLoaderHttpServiceMechanismFactories.reset.name) + address.concat(serviceLoaderHttpServiceMechanismFactories.reset.name), ); }); @@ -93,7 +93,7 @@ describe("TESTS: Configuration => Subsystem => Security => Settings => Factories cy.get("#elytron-service-loader-http-server-mechanism-factory-item").click(); cy.selectInTable( serviceLoaderHttpServerMechanismFactoryTableId, - serviceLoaderHttpServiceMechanismFactories.update.name + serviceLoaderHttpServiceMechanismFactories.update.name, ); cy.editForm(configurationFormId); cy.text(configurationFormId, "module", "sample"); @@ -103,7 +103,7 @@ describe("TESTS: Configuration => Subsystem => Security => Settings => Factories managementEndpoint, address.concat(serviceLoaderHttpServiceMechanismFactories.update.name), "module", - "sample" + "sample", ); }); }); diff --git a/packages/testsuite/cypress/e2e/io/test-configuration-subsystem-io-buffer-pool.cy.ts b/packages/testsuite/cypress/e2e/io/test-configuration-subsystem-io-buffer-pool.cy.ts index aba10c760..6f53e6b9b 100644 --- a/packages/testsuite/cypress/e2e/io/test-configuration-subsystem-io-buffer-pool.cy.ts +++ b/packages/testsuite/cypress/e2e/io/test-configuration-subsystem-io-buffer-pool.cy.ts @@ -87,7 +87,7 @@ describe("TESTS: Configuration => Subsystems => IO => Buffer Pool", () => { cy.saveForm(bufferPoolForm.idUpdate); cy.verifySuccess(); cy.verifyAttribute(managementEndpoint, address, bufferPoolForm.directBuffers, !defaultValue); - } + }, ); }); diff --git a/packages/testsuite/cypress/e2e/microprofile/mp-reactive-messaging-otel.cy.ts b/packages/testsuite/cypress/e2e/microprofile/mp-reactive-messaging-otel.cy.ts index ea7b480ea..4d946e443 100644 --- a/packages/testsuite/cypress/e2e/microprofile/mp-reactive-messaging-otel.cy.ts +++ b/packages/testsuite/cypress/e2e/microprofile/mp-reactive-messaging-otel.cy.ts @@ -51,7 +51,7 @@ describe("TESTS: Configuration => Subsystem => Undertow => Global settings", () /subsystem=opentelemetry:add(), /subsystem=microprofile-telemetry:add(), /subsystem=microprofile-reactive-messaging-smallrye/opentelemetry-tracing=config:add(), - reload"` + reload"`, ); }); }); @@ -63,7 +63,7 @@ describe("TESTS: Configuration => Subsystem => Undertow => Global settings", () beforeEach(() => { cy.navigateTo( managementEndpoint, - "generic-subsystem;address=%255C0subsystem%255C2microprofile-reactive-messaging-smallrye" + "generic-subsystem;address=%255C0subsystem%255C2microprofile-reactive-messaging-smallrye", ); // the form takes a brief moment to initialize cy.wait(200); diff --git a/packages/testsuite/cypress/e2e/runtime/test-runtime-open-ports.cy.ts b/packages/testsuite/cypress/e2e/runtime/test-runtime-open-ports.cy.ts index b213a56f9..c20ec9103 100644 --- a/packages/testsuite/cypress/e2e/runtime/test-runtime-open-ports.cy.ts +++ b/packages/testsuite/cypress/e2e/runtime/test-runtime-open-ports.cy.ts @@ -23,7 +23,7 @@ describe("TESTS: Runtime => Server => Open Ports", () => { cy.readAttributeAsObjectList( `${managementEndpoint}/management`, ["socket-binding-group", "standard-sockets", "socket-binding", "*"], - "bound-port" + "bound-port", ).then((objects) => { const boundPorts = objects .map((obj) => { diff --git a/packages/testsuite/cypress/e2e/security-manager/test-configuration-subsystem-security-manager-maximum-permissions.cy.ts b/packages/testsuite/cypress/e2e/security-manager/test-configuration-subsystem-security-manager-maximum-permissions.cy.ts index a77b6c362..3a900c7ed 100644 --- a/packages/testsuite/cypress/e2e/security-manager/test-configuration-subsystem-security-manager-maximum-permissions.cy.ts +++ b/packages/testsuite/cypress/e2e/security-manager/test-configuration-subsystem-security-manager-maximum-permissions.cy.ts @@ -47,7 +47,7 @@ describe("TESTS: Configuration => Subsystem => Security Manager => Maximum Permi managementEndpoint, address, maximumPermissionsAttrubuteName, - maximumPermissions.delete + maximumPermissions.delete, ); cy.removeFromTable(maximumPermissionsTableId, maximumPermissions.delete.class); cy.verifySuccess(); @@ -56,7 +56,7 @@ describe("TESTS: Configuration => Subsystem => Security Manager => Maximum Permi managementEndpoint, address, maximumPermissionsAttrubuteName, - maximumPermissions.delete + maximumPermissions.delete, ); }); @@ -80,7 +80,7 @@ describe("TESTS: Configuration => Subsystem => Security Manager => Maximum Permi managementEndpoint, address, maximumPermissionsAttrubuteName, - maximumPermissions.create + maximumPermissions.create, ); }); @@ -107,7 +107,7 @@ describe("TESTS: Configuration => Subsystem => Security Manager => Maximum Permi managementEndpoint, address, maximumPermissionsAttrubuteName, - maximumPermissions.update + maximumPermissions.update, ); }); }); diff --git a/packages/testsuite/cypress/e2e/security-manager/test-configuration-subsystem-security-manager-minimum-permissions.cy.ts b/packages/testsuite/cypress/e2e/security-manager/test-configuration-subsystem-security-manager-minimum-permissions.cy.ts index fd0eac764..315411448 100644 --- a/packages/testsuite/cypress/e2e/security-manager/test-configuration-subsystem-security-manager-minimum-permissions.cy.ts +++ b/packages/testsuite/cypress/e2e/security-manager/test-configuration-subsystem-security-manager-minimum-permissions.cy.ts @@ -75,7 +75,7 @@ describe("TESTS: Configuration => Subsystem => Security Manager => Minimum Permi managementEndpoint, address, mininumPermissionsAttrubuteName, - mininumPermissions.create + mininumPermissions.create, ); }); @@ -102,7 +102,7 @@ describe("TESTS: Configuration => Subsystem => Security Manager => Minimum Permi managementEndpoint, address, mininumPermissionsAttrubuteName, - mininumPermissions.update + mininumPermissions.update, ); }); @@ -111,7 +111,7 @@ describe("TESTS: Configuration => Subsystem => Security Manager => Minimum Permi managementEndpoint, address, mininumPermissionsAttrubuteName, - mininumPermissions.delete + mininumPermissions.delete, ); cy.removeFromTable(mininumPermissionsTableId, mininumPermissions.delete.class); cy.verifySuccess(); @@ -120,7 +120,7 @@ describe("TESTS: Configuration => Subsystem => Security Manager => Minimum Permi managementEndpoint, address, mininumPermissionsAttrubuteName, - mininumPermissions.delete + mininumPermissions.delete, ); }); }); diff --git a/packages/testsuite/cypress/e2e/transaction/transactions-configuration-subsystem-transaction-jdbc.cy.ts b/packages/testsuite/cypress/e2e/transaction/transactions-configuration-subsystem-transaction-jdbc.cy.ts index d51b4db9d..d2b73856e 100644 --- a/packages/testsuite/cypress/e2e/transaction/transactions-configuration-subsystem-transaction-jdbc.cy.ts +++ b/packages/testsuite/cypress/e2e/transaction/transactions-configuration-subsystem-transaction-jdbc.cy.ts @@ -50,7 +50,7 @@ describe("TESTS: Configuration => Sybsystem => Transaction => Path", () => { .withConnectionUrl(nonEmptyDS.connectionUrl) .withDriverName(nonEmptyDS.driverName) .build() - .toCLICommand() + .toCLICommand(), ); cy.executeInWildflyContainer( new AddDataSourceBuilder() @@ -59,7 +59,7 @@ describe("TESTS: Configuration => Sybsystem => Transaction => Path", () => { .withConnectionUrl(nonEmptyDSUpdated.connectionUrl) .withDriverName(nonEmptyDSUpdated.driverName) .build() - .toCLICommand() + .toCLICommand(), ); }); }); diff --git a/packages/testsuite/cypress/e2e/undertow/test-configuration-subsystem-undertow-global-settings.cy.ts b/packages/testsuite/cypress/e2e/undertow/test-configuration-subsystem-undertow-global-settings.cy.ts index dfb5f8f03..cdb7579b6 100644 --- a/packages/testsuite/cypress/e2e/undertow/test-configuration-subsystem-undertow-global-settings.cy.ts +++ b/packages/testsuite/cypress/e2e/undertow/test-configuration-subsystem-undertow-global-settings.cy.ts @@ -102,7 +102,7 @@ describe("TESTS: Configuration => Subsystem => Undertow => Global settings", () testValues.statisticsEnabledExpression, { selector: expressionFormInputSelector, - } + }, ); cy.saveForm(globalSettingsForm.formId); @@ -111,7 +111,7 @@ describe("TESTS: Configuration => Subsystem => Undertow => Global settings", () managementEndpoint, address, "statistics-enabled", - testValues.statisticsEnabledExpression + testValues.statisticsEnabledExpression, ); }); diff --git a/packages/testsuite/cypress/e2e/update-manager/test-configuration-update-channel.cy.ts b/packages/testsuite/cypress/e2e/update-manager/test-configuration-update-channel.cy.ts index 519ce10d3..94d52ff4c 100644 --- a/packages/testsuite/cypress/e2e/update-manager/test-configuration-update-channel.cy.ts +++ b/packages/testsuite/cypress/e2e/update-manager/test-configuration-update-channel.cy.ts @@ -86,7 +86,7 @@ describe("TESTS: Update Manager => Channels", () => { it("Update url channel parameters", () => { cy.navigateToSpecificChannel(managementEndpoint, channels.url.name); cy.editForm(channelForm); - cy.get(".tm-tag-remove").click() + cy.get(".tm-tag-remove").click(); cy.formInput(channelForm, "repositories") .type(channels.updateUrl.repositories + "{enter}") .trigger("change"); diff --git a/packages/testsuite/cypress/support/resource-utils.ts b/packages/testsuite/cypress/support/resource-utils.ts index bda5d0e07..b2915fa4d 100644 --- a/packages/testsuite/cypress/support/resource-utils.ts +++ b/packages/testsuite/cypress/support/resource-utils.ts @@ -10,7 +10,7 @@ Cypress.Commands.add("createOutboundSocketBinding", (managementEndpoint, socketB cy.addAddress( managementEndpoint, ["socket-binding-group", "standard-sockets", "remote-destination-outbound-socket-binding", socketBinding.name], - socketBinding + socketBinding, ); }); @@ -168,7 +168,7 @@ declare global { mailSession: { mailSessionName: string; jndiName: string; - } + }, ): Chainable; /** * Create a outbound socket binding. @@ -183,7 +183,7 @@ declare global { name: string; host: string; port: string; - } + }, ): Chainable; /** * Create a generic resource. The resource can't exist otherwise it fail. @@ -283,7 +283,7 @@ declare global { managementEndpoint: string, address: string[], name: string, - value: string | boolean | number | object | object[] + value: string | boolean | number | object | object[], ): Chainable; /** diff --git a/packages/testsuite/cypress/support/verification-utils.ts b/packages/testsuite/cypress/support/verification-utils.ts index 88f5f73cb..e659f886b 100644 --- a/packages/testsuite/cypress/support/verification-utils.ts +++ b/packages/testsuite/cypress/support/verification-utils.ts @@ -44,7 +44,7 @@ Cypress.Commands.add( expect((result as { outcome: string }).outcome).to.equal("success"); expect((result as { result: object[] | string[] }).result).to.not.deep.include(expectedValue); }); - } + }, ); Cypress.Commands.add("validateAddress", (managementEndpoint, address, expectedValue) => { @@ -114,7 +114,7 @@ declare global { formId: string, attributeName: string, elementName: string, - className: string + className: string, ): Chainable; /** * Verify the specific configuration is saved. @@ -129,7 +129,7 @@ declare global { managementEndpoint: string, address: string[], attributeName: string, - expectedValue: string | number | boolean + expectedValue: string | number | boolean, ): void; /** * Verify a list attribute contain expected value. @@ -144,7 +144,7 @@ declare global { managementEndpoint: string, address: string[], attributeName: string, - expectedValue: object | string + expectedValue: object | string, ): void; /** * Verify a list attribute contain expected value. @@ -159,7 +159,7 @@ declare global { managementEndpoint: string, address: string[], attributeName: string, - expectedValue: object | string + expectedValue: object | string, ): void; /** * Verify a subsystem configuration was created or removed. @@ -192,7 +192,7 @@ declare global { managementEndpoint: string, address: string[], attributeName: string, - expectedValue: string + expectedValue: string, ): void; /** * Verify the forbiden error message is displayd