set up cypress for block images
This commit is contained in:
parent
ad3d1d8cb2
commit
552fffaaf6
5 changed files with 1962 additions and 5 deletions
5
cypress/cypress.config.js
Normal file
5
cypress/cypress.config.js
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
import { defineConfig } from "cypress";
|
||||
|
||||
export default defineConfig({
|
||||
e2e: {},
|
||||
});
|
||||
9
cypress/e2e/block_images.cy.js
Normal file
9
cypress/e2e/block_images.cy.js
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
describe("Block Images", () => {
|
||||
it("download all block images", () => {
|
||||
cy.visit("http://localhost:5173/")
|
||||
cy.get("[data-id]").each(($el) => {
|
||||
cy.wrap($el).rightclick({ force: true })
|
||||
cy.contains("Save Block as PNG...").click()
|
||||
})
|
||||
})
|
||||
})
|
||||
0
cypress/support/e2e.js
Normal file
0
cypress/support/e2e.js
Normal file
1952
package-lock.json
generated
1952
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -35,6 +35,7 @@
|
|||
"devDependencies": {
|
||||
"@eslint/js": "^9.2.0",
|
||||
"chai": "^5.1.2",
|
||||
"cypress": "^14.5.3",
|
||||
"eslint": "^8.57.0",
|
||||
"esm-reload": "^1.0.1",
|
||||
"glob": "^10.4.2",
|
||||
|
|
|
|||
Loading…
Reference in a new issue