generate URLs for all demos and use those to run the tests

This commit is contained in:
Hans Pagel
2021-01-26 00:35:36 +01:00
parent 26fb84fe27
commit 5c93c6e560
54 changed files with 157 additions and 101 deletions

View File

@@ -1,6 +1,6 @@
context('/examples/v-model', () => {
context('/demos/Examples/VModel', () => {
before(() => {
cy.visit('/examples/v-model')
cy.visit('/demos/Examples/VModel')
})
// TODO: Write tests

View File

@@ -1,6 +1,6 @@
context('/guide/store-content', () => {
context('/demos/Guide/StoreContent/ExportHTML', () => {
before(() => {
cy.visit('/guide/store-content')
cy.visit('/demos/Guide/StoreContent/ExportHTML')
})
beforeEach(() => {

View File

@@ -1,6 +1,6 @@
context('/guide/store-content', () => {
context('/demos/Guide/StoreContent/ExportJSON', () => {
before(() => {
cy.visit('/guide/store-content')
cy.visit('/demos/Guide/StoreContent/ExportJSON')
})
beforeEach(() => {

View File

@@ -1,6 +1,6 @@
context('/guide/store-content', () => {
context('/demos/Guide/StoreContent/ReadOnly', () => {
beforeEach(() => {
cy.visit('/guide/store-content')
cy.visit('/demos/Guide/StoreContent/ReadOnly')
})
it.skip('should be read-only', () => {
@@ -13,7 +13,7 @@ context('/guide/store-content', () => {
})
})
it.skip('should be editable', () => {
it('should be editable', () => {
cy.get('.ProseMirror').then(([{ editor }]) => {
cy.get('#editable').check()