update cypress
This commit is contained in:
parent
6cb35796a8
commit
cdeb4db1d2
44 changed files with 1141 additions and 2027 deletions
3
tests/cypress/.gitignore
vendored
3
tests/cypress/.gitignore
vendored
|
|
@ -1 +1,2 @@
|
|||
/node_modules/
|
||||
/screenshots/
|
||||
/videos/
|
||||
|
|
|
|||
|
|
@ -1,6 +0,0 @@
|
|||
{
|
||||
"baseUrl": "http://localhost:8984/vue-poc",
|
||||
"viewportWidth": 1600,
|
||||
"viewportHeight": 800,
|
||||
"projectId": "269dic"
|
||||
}
|
||||
1
tests/cypress/cypress/.gitignore
vendored
1
tests/cypress/cypress/.gitignore
vendored
|
|
@ -1 +0,0 @@
|
|||
/screenshots/
|
||||
Binary file not shown.
Binary file not shown.
24
tests/cypress/integration/all-uri.js
Normal file
24
tests/cypress/integration/all-uri.js
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
/**
|
||||
* @author andy bunce
|
||||
* @description visit sequence of pages
|
||||
*/
|
||||
|
||||
describe('visit-all', function () {
|
||||
//Here you actually writes your test (it() is similar to @Test annotaion of TestNG)
|
||||
const urls=["/ui",
|
||||
"/ui/eval",
|
||||
"/ui/tabs",
|
||||
"/ui/transform",
|
||||
"/ui/database",
|
||||
"/ui/file",
|
||||
];
|
||||
|
||||
it('visit', function () {
|
||||
urls.forEach(u=>{
|
||||
cy.visit(u)
|
||||
cy.wait(1000)
|
||||
cy.screenshot(u)
|
||||
})
|
||||
})
|
||||
|
||||
})
|
||||
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
//This is where your test suite starts
|
||||
|
||||
describe('My First Test', function () {
|
||||
describe('Smoke', function () {
|
||||
|
||||
//This function will execute before each test (i.e it())
|
||||
|
||||
|
|
@ -7,11 +7,6 @@
|
|||
|
||||
describe('validate tests', function () {
|
||||
|
||||
//This function will execute before each test (i.e it())
|
||||
|
||||
beforeEach(function () {
|
||||
cy.log('I run before every test in every spec file!!!!!!')
|
||||
})
|
||||
|
||||
//Here you actually writes your test (it() is similar to @Test annotaion of TestNG)
|
||||
|
||||
1578
tests/cypress/package-lock.json
generated
1578
tests/cypress/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -1,14 +0,0 @@
|
|||
{
|
||||
"name": "vue-poc",
|
||||
"version": "1.0.0",
|
||||
"description": "vue-poc e2e tests",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"devDependencies": {
|
||||
"cypress": "^3.4.1"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue