update cypress

This commit is contained in:
andy 2020-04-12 13:16:27 +01:00
parent 6cb35796a8
commit cdeb4db1d2
44 changed files with 1141 additions and 2027 deletions

5
tests/cypress.json Normal file
View file

@ -0,0 +1,5 @@
{
"baseUrl": "http://localhost:8984/vue-poc",
"viewportWidth": 1600,
"viewportHeight": 800
}

View file

@ -1 +1,2 @@
/node_modules/
/screenshots/
/videos/

View file

@ -1,6 +0,0 @@
{
"baseUrl": "http://localhost:8984/vue-poc",
"viewportWidth": 1600,
"viewportHeight": 800,
"projectId": "269dic"
}

View file

@ -1 +0,0 @@
/screenshots/

View 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)
})
})
})

View file

@ -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())

View file

@ -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)

File diff suppressed because it is too large Load diff

View file

@ -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"
}
}