test(ui): refactor Cypress testing structure according to new recommended practices
build(deps): bump from Cypress 9.6.0 to 10.1.0
Closes:
ADD
manager/ui/war/cypress.config.ts
+import { defineConfig } from 'cypress'
+
+export default defineConfig({
+ projectId: 'tpeh3n',
+ defaultCommandTimeout: 10000,
+ chromeWebSecurity: false,
+ e2e: {
+ // We've imported your old cypress plugins here.
+ // You may want to clean this up later by importing these.
+ setupNodeEvents(on, config) {
+ return require('./cypress/plugins/index.js')(on, config)
+ },
+ baseUrl: 'http://localhost:2772/apimanui/',
+ specPattern: 'cypress/e2e/**/*.{js,jsx,ts,tsx}',
+ },
+})

DELETE
manager/ui/war/cypress.json
-{
- "projectId": "tpeh3n",
- "defaultCommandTimeout": 10000,
- "chromeWebSecurity": false,
- "baseUrl": "http://localhost:2772/apimanui/"
-}
\ No newline at end of file

RENAME
manager/ui/war/cypress/integration/Basic_Functionality.js
manager/ui/war/cypress/e2e/Basic_Functionality.js
RENAME
manager/ui/war/cypress/support/index.js
manager/ui/war/cypress/support/e2e.js
MODIFY
manager/ui/war/package.json
manager/ui/war/package.json
"@types/webpack-env": "1.16.4",
"copy-webpack-plugin": "9.1.0",
"css-loader": "6.4.0",
- "cypress": "9.6.0",
+ "cypress": "10.1.0",
"glob": "8.0.1",
"html-loader": "3.1.0",
"html-webpack-plugin": "5.5.0",

MODIFY
manager/ui/war/yarn.lock
manager/ui/war/yarn.lock
@@ -1575,10 +1575,10 @@ cssesc@^3.0.0:
resolved "https://registry.yarnpkg.com/cssesc/-/cssesc-3.0.0.tgz#37741919903b868565e1c09ea747445cd18983ee"
integrity sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==
-cypress@9.6.0:
- version "9.6.0"
- resolved "https://registry.yarnpkg.com/cypress/-/cypress-9.6.0.tgz#84473b3362255fa8f5e627a596e58575c9e5320f"
- integrity sha512-nNwt9eBQmSENamwa8LxvggXksfyzpyYaQ7lNBLgks3XZ6dPE/6BCQFBzeAyAPt/bNXfH3tKPkAyhiAZPYkWoEg==
+cypress@10.1.0:
+ version "10.1.0"
+ resolved "https://registry.yarnpkg.com/cypress/-/cypress-10.1.0.tgz#6514a26c721822a02bc194e9a7f72c3142aea174"
+ integrity sha512-aQ4JVZVib4Xd9FZW8IRZfKelUvqF4y5A+oUbNvn8TlsBmEfIg3m5Xd6Mt6PVU/jHiVJ9Psl905B3ZPnrDcmyuQ==
dependencies:
"@cypress/request" "^2.88.10"
"@cypress/xvfb" "^1.2.4"

test(ui): refactor Cypress testing structure according to new recommended practices

build(deps): bump from Cypress 9.6.0 to 10.1.0

Closes: #2107