update cypress
This commit is contained in:
parent
6cb35796a8
commit
cdeb4db1d2
44 changed files with 1141 additions and 2027 deletions
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)
|
||||
})
|
||||
})
|
||||
|
||||
})
|
||||
42
tests/cypress/integration/apb_spec.js
Normal file
42
tests/cypress/integration/apb_spec.js
Normal 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()
|
||||
|
||||
})
|
||||
|
||||
})
|
||||
22
tests/cypress/integration/validate.js
Normal file
22
tests/cypress/integration/validate.js
Normal 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")
|
||||
})
|
||||
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue