Skip to content

Commit

Permalink
feat(test-project): update to latest Cypress AE version
Browse files Browse the repository at this point in the history
  • Loading branch information
IlCallo committed Mar 29, 2022
1 parent a43db96 commit f97269b
Show file tree
Hide file tree
Showing 6 changed files with 2,575 additions and 87 deletions.
13 changes: 3 additions & 10 deletions test-project/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@
{
"vetur.validation.template": false,
"vetur.format.enable": false,
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"vue"
],
"eslint.validate": ["javascript", "javascriptreact", "typescript", "vue"],
"typescript.tsdk": "node_modules/typescript/lib",
"vetur.experimental.templateInterpolationService": true,
"json.schemas": [
{
"fileMatch": [
"cypress.json"
],
"fileMatch": ["cypress.json"],
"url": "https://on.cypress.io/cypress.schema.json"
}
]
}
}
10 changes: 5 additions & 5 deletions test-project/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
"sync:cypress": "cd ../packages/e2e-cypress && yarn build:local && cd ../../test-project && yarn add -D ../packages/e2e-cypress",
"lint": "eslint --ext .js,.ts,.vue ./",
"test": "echo \"See package.json => scripts for available tests.\" && exit 0",
"test:e2e": "cross-env E2E_TEST=true start-test \"quasar dev\" http-get://localhost:8080 \"cypress open\"",
"test:e2e:ci": "cross-env E2E_TEST=true start-test \"quasar dev\" http-get://localhost:8080 \"cypress run\"",
"test:component": "cypress open-ct",
"test:component:ci": "cypress run-ct"
"test:e2e": "cross-env NODE_ENV=test start-test \"quasar dev\" http-get://localhost:8080 \"cypress open\"",
"test:e2e:ci": "cross-env NODE_ENV=test start-test \"quasar dev\" http-get://localhost:8080 \"cypress run\"",
"test:component": "cross-env NODE_ENV=test cypress open-ct",
"test:component:ci": "cross-env NODE_ENV=test cypress run-ct"
},
"dependencies": {
"@quasar/extras": "^1.0.0",
Expand Down Expand Up @@ -50,4 +50,4 @@
"npm": ">= 6.13.4",
"yarn": ">= 1.21.1"
}
}
}
3 changes: 2 additions & 1 deletion test-project/quasar.extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"@quasar/testing-e2e-cypress": {
"options": [
"scripts",
"typescript"
"typescript",
"code-coverage"
]
}
}
4 changes: 2 additions & 2 deletions test-project/quasar.testing.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"e2e-cypress": {
"runnerCommand": "cross-env E2E_TEST=true start-test \"quasar dev\" http-get://localhost:8080 \"cypress run\""
"runnerCommand": "cross-env NODE_ENV=test start-test \"quasar dev\" http-get://localhost:8080 \"cypress run\""
},
"unit-cypress": {
"runnerCommand": "cypress run-ct"
"runnerCommand": "cross-env NODE_ENV=test cypress run-ct"
}
}
2 changes: 2 additions & 0 deletions test-project/test/cypress/integration/home.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ describe('Landing', () => {
});
it('.should() - assert that <title> is correct', () => {
cy.title().should('include', 'Quasar');
cy.get('li').first().click();
cy.contains('Clicks on todos: 1').should('exist');
});
});

Expand Down
Loading

0 comments on commit f97269b

Please sign in to comment.