This commit is contained in:
Peter Maquiran
2023-06-05 15:44:51 +01:00
parent 80392ddb4f
commit 588745c055
11 changed files with 1091 additions and 11 deletions
+3 -1
View File
@@ -79,4 +79,6 @@ android copy/
report.*
src/plugin/src/
_node_modules/
migrat/
migrat/
cypress/videos
+10
View File
@@ -0,0 +1,10 @@
module.exports = {
// The rest of the Cypress config options go here...
projectId: "vu99za",
e2e: {
setupNodeEvents(on, config) {
// implement node event listeners here
},
},
};
+26
View File
@@ -0,0 +1,26 @@
# Logs
logs
*.log
# Runtime data
pids
*.pid
*.seed
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# node-waf configuration
.lock-wscript
# Dependency directory
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
videos
screenshots
e2e
+5
View File
@@ -0,0 +1,5 @@
{
"name": "Using fixtures to represent data",
"email": "hello@cypress.io",
"body": "Fixtures are a great way to mock data for responses to routes"
}
+25
View File
@@ -0,0 +1,25 @@
// ***********************************************
// This example commands.js shows you how to
// create various custom commands and overwrite
// existing commands.
//
// For more comprehensive examples of custom
// commands please read more here:
// https://on.cypress.io/custom-commands
// ***********************************************
//
//
// -- This is a parent command --
// Cypress.Commands.add('login', (email, password) => { ... })
//
//
// -- This is a child command --
// Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... })
//
//
// -- This is a dual command --
// Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... })
//
//
// -- This will overwrite an existing command --
// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... })
+20
View File
@@ -0,0 +1,20 @@
// ***********************************************************
// This example support/e2e.js is processed and
// loaded automatically before your test files.
//
// This is a great place to put global configuration and
// behavior that modifies Cypress.
//
// You can change the location of this file or turn off
// automatically serving support files with the
// 'supportFile' configuration option.
//
// You can read more here:
// https://on.cypress.io/configuration
// ***********************************************************
// Import commands.js using ES2015 syntax:
import './commands'
// Alternatively you can use CommonJS syntax:
// require('./commands')
+2 -2
View File
@@ -9,7 +9,7 @@ module.exports = {
"transform": {
"^.+\\.(ts|tsx)$": "ts-jest"
},
// "globalSetup": "<rootDir>/test/setupJest.ts",
"globalSetup": "<rootDir>/test/setupJest.ts",
preset: 'jest-puppeteer',
// setupFilesAfterEnv: "<rootDir>/test/setupJest.ts",
setupFilesAfterEnv: "<rootDir>/test/setupJest.ts",
}
+989
View File
File diff suppressed because it is too large Load Diff
+4 -1
View File
@@ -15,7 +15,9 @@
"install:chromium": "node node_modules/puppeteer/install.js",
"build:version": "node ./version/git-version.js",
"ionic-build": "ionic cap run android --prod",
"prepare": "husky install"
"prepare": "husky install",
"cypress:open": "cypress open",
"cypress:run": "cypress run"
},
"private": true,
"dependencies": {
@@ -208,6 +210,7 @@
"cordova-plugin-media-capture": "^3.0.3",
"cordova-plugin-network-information": "^3.0.0",
"cordova-plugin-statusbar": "^2.4.2",
"cypress": "^12.13.0",
"es6-promise-plugin": "^4.2.2",
"jasmine-core": "~3.6.0",
"jasmine-spec-reporter": "~5.0.0",
+1 -1
View File
@@ -29,7 +29,7 @@ export class ToastService {
notification.className = 'notification'
notification.innerHTML = `
<div class="main-content width-100 pa-20">
<div class="main-content width-100 pa-20 cy-message">
<p class="message d-flex align-center success">
<ion-icon slot="end" class="title-icon pr-10" src="/assets/images/nofitication-success.svg"></ion-icon>
<p class="text">{{ message }}</p>
+6 -6
View File
@@ -1,12 +1,12 @@
export let versionData = {
"shortSHA": "005643ae9",
"SHA": "005643ae92c1646498b119c37720264e5bd95bbf",
"shortSHA": "80392ddb4",
"SHA": "80392ddb4f103e315b2730b26676418879ccd463",
"branch": "feature/gabinete-search",
"lastCommitAuthor": "'Peter Maquiran'",
"lastCommitTime": "'Mon Jun 5 10:14:48 2023 +0100'",
"lastCommitMessage": "remove publicates",
"lastCommitNumber": "4950",
"lastCommitTime": "'Mon Jun 5 11:11:24 2023 +0100'",
"lastCommitMessage": "fix",
"lastCommitNumber": "4951",
"change": "",
"changeStatus": "On branch feature/gabinete-search\nChanges to be committed:\n (use \"git restore --staged <file>...\" to unstage)\n\tmodified: jest-puppeteer.config.js\n\tmodified: package-lock.json\n\tmodified: package.json\n\tmodified: version/git-version.ts",
"changeStatus": "On branch feature/gabinete-search\nChanges to be committed:\n (use \"git restore --staged <file>...\" to unstage)\n\tmodified: .gitignore\n\tnew file: cypress.config.js\n\tnew file: cypress/.gitignore\n\tnew file: cypress/fixtures/example.json\n\tnew file: cypress/support/commands.js\n\tnew file: cypress/support/e2e.js\n\tmodified: jest.config.js\n\tmodified: package-lock.json\n\tmodified: package.json\n\tmodified: src/app/services/toast.service.ts",
"changeAuthor": "peter.maquiran"
}