Fix cypress test

This commit is contained in:
Ramon Wenger 2022-02-28 12:51:38 +01:00
parent d2dd8d8c5b
commit 9e1ffbc710
1 changed files with 6 additions and 8 deletions

View File

@ -13,10 +13,8 @@ describe('Create Content Block', () => {
module: {},
},
AddContentBlock: {
addContentBlock: {
}
}
addContentBlock: {},
},
},
});
});
@ -37,7 +35,7 @@ describe('Create Content Block', () => {
cy.getByDataCy('chooser-heading').should('contain', 'Neuer Inhalt');
// add text element
cy.getByDataCy('choose-text-widget').click();
cy.getByDataCy('text-form-input').type('Hallo Sam');
cy.get('.tip-tap__editor').last().type('Hallo Sam');
// add list item
cy.getByDataCy('add-content-link').last().click();
@ -45,16 +43,16 @@ describe('Create Content Block', () => {
// add text element to list item
cy.getByDataCy('choose-text-widget').click();
cy.getByDataCy('content-list').within(() => {
cy.getByDataCy('text-form-input').last().type('Hallo Velo');
cy.get('.tip-tap__editor').last().type('Hallo Velo');
// add second list item
cy.getByDataCy('add-content-link').click();
// add text element to second list item
cy.getByDataCy('choose-text-widget').click();
cy.getByDataCy('text-form-input').last().type('Hallo Velo');
cy.get('.tip-tap__editor').last().type('Hallo Velo');
// add another text element to second list item
cy.getByDataCy('add-content-link').last().click();
cy.getByDataCy('choose-text-widget').click();
cy.getByDataCy('text-form-input').last().type('Hallo Outo');
cy.get('.tip-tap__editor').last().type('Hallo Outo');
});
// save
cy.getByDataCy('save-button').should('exist').should('not.be.disabled').click();