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

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

@ -0,0 +1,42 @@
/**
* @author andy bunce
* @description Cypress vue-poc
*/
//This is where your test suite starts
describe('Smoke', 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)
it('home', function () {
//Click on type button
cy.visit('/ui')
cy.screenshot()
}),
it('about', function () {
//Click on type button
cy.visit('/ui/about')
cy.screenshot()
}),
it('documentation', function () {
//Click on type button
cy.visit('/ui/documentation')
cy.screenshot()
})
})

View file

@ -0,0 +1,22 @@
/**
* @author andy bunce
* @description Cypress vue-poc
*/
//This is where your test suite starts
describe('validate tests', function () {
//Here you actually writes your test (it() is similar to @Test annotaion of TestNG)
it('validate', function () {
//Click on type button
cy.visit('/ui/validate')
cy.screenshot("validate/validate")
cy.get("#btn-clear").click()
cy.screenshot("validate/clear")
})
})