This commit is contained in:
2026-02-14 18:55:38 -08:00
parent f2ace3c7df
commit bfe7987d05
6 changed files with 1518 additions and 51 deletions

13
e2e/.gitignore vendored Normal file
View File

@@ -0,0 +1,13 @@
# Dependencies
node_modules/
# Cypress
cypress/
# IDE
.vscode/settings.json
# OS
Thumbs.db
.DS_Store

View File

@@ -1,41 +0,0 @@
const { defineConfig } = require('cypress')
module.exports = defineConfig({
defaultCommandTimeout: 5000,
xxxretries: 3,
xbaseUrl: 'http://localhost:7575',
xxxbaseUrl: 'http://localhost:8080',
video: false,
env: {
xapiBaseUrl: 'http://localhost:7575/api/v8.0/',
xxapiBaseUrl: 'https://test.onayanova.com/api/v8.0/',
apiBaseUrl: 'https://3312.onayanova.com/api/v8.0/',
admin: {
login: 'superuser',
password: 'l3tm3in',
},
accounting: {
login: 'Accounting',
password: 'Accounting',
},
service: {
login: 'Service',
password: 'Service',
},
customer: {
login: 'Customer',
password: 'Customer',
},
},
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)
},
experimentalRunAllSpecs: true,
specPattern: 'tests/**/*.cy.{js,jsx,ts,tsx}',
supportFile: 'support/e2e.js',
xxbaseUrl: 'https://test.onayanova.com',
},
})

15
e2e/cypress.json Normal file
View File

@@ -0,0 +1,15 @@
{
"defaultCommandTimeout": 5000,
"video": false,
"baseUrl": "http://localhost:8080",
"integrationFolder": "tests/regression",
"testFiles": "**/*.cy.{js,jsx,ts,tsx}",
"supportFile": "support/e2e.js",
"env": {
"apiBaseUrl": "http://localhost:7575/api/v8.0/",
"admin": { "login": "superuser", "password": "l3tm3in" },
"accounting": { "login": "Accounting", "password": "Accounting" },
"service": { "login": "Service", "password": "Service" },
"customer": { "login": "Customer", "password": "Customer" }
}
}

View File

@@ -1,3 +1,21 @@
AI HANDOFF NOTES:
Cypress 9 on Node 12.22.9, Vue 2 / Vuetify 2 frontend
Tests are in tests/regression/, support file at support/e2e.js
Suite is running but hitting intermittent failures on Vuetify component interactions (clicks/selects)
Paste in the specific failing test or the error message Cypress shows
=-=-=-=-=--=
From the olden times years ago:
todo: test all current smoke, upload and test on devops
@@ -7,17 +25,8 @@ todo: missing smoke tests:
npm install --save-dev cypress@9.2.1
todo: meter reading table click on item to confirm item page no other way to easily get id of unit metered unless create it or something
TODO: high priority grid sort and filter test that excercises *all* options and filter types
this one will be hugely important as part of regression test as it was a constant source of issues in v7
todo: drawing signature test might work with this code:

1471
e2e/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -7,7 +7,7 @@
"test": "tests"
},
"devDependencies": {
"cypress": "^13.8.1"
"cypress": "^9.7.0"
},
"scripts": {
"open": "./node_modules/.bin/cypress open",