Skip to content
Snippets Groups Projects
Commit 8b3659cb authored by Xiao Gui's avatar Xiao Gui
Browse files

fix cypress e2e

parent a6cfa837
No related branches found
No related tags found
No related merge requests found
......@@ -4,15 +4,15 @@ const {
} = Cypress.env()
describe(`Visiting ${SCREENSHOT_URL}`, () => {
beforeAll(() => {
it(`Screenshot to ${SCREENSHOT_PATH}`, () => {
if (!SCREENSHOT_URL) {
console.error(`SCREENSHOT_URL not defined. Exiting`)
return
}
cy.visit(SCREENSHOT_URL)
cy.wait(10000)
})
it(`Screenshot to ${SCREENSHOT_PATH}`, () => {
if (!SCREENSHOT_PATH) {
console.error(`SCREENSHOT_PATH not defined. Exiting`)
return
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment