Skip to content

Commit

Permalink
fix acceptance test
Browse files Browse the repository at this point in the history
  • Loading branch information
danalvrz committed Nov 5, 2024
1 parent c273e03 commit 8cd054e
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 11 deletions.
25 changes: 25 additions & 0 deletions cypress/support/slate.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
export const createSlateBlock = () => {
cy.get('.ui.basic.icon.button.block-add-button').first().click();
cy.get('.blocks-chooser .title').contains('Text').click();
cy.get('.ui.basic.icon.button.slate').contains('Text').click();
return getSelectedSlateEditor();
};

export const getSelectedSlateEditor = () => {
return cy.get('.slate-editor.selected [contenteditable=true]').click();
};

export const getSlateEditorAndType = (selector, type) => {
return cy
.wait(1000)
.get(selector)
.focus()
.click()
.wait(2000)
.type(type)
.wait(1000);
};

export const getSlateEditorAndClear = (selector) => {
return cy.get(selector).focus().click().wait(1000).clear();
};
1 change: 1 addition & 0 deletions cypress/tests/introduction.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ context('Introduction Acceptance Tests', () => {
contentType: 'Document',
contentId: 'document',
contentTitle: 'Document',
path: '/',
});
cy.autologin();
});
Expand Down
11 changes: 0 additions & 11 deletions packages/volto-introduction-block/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,3 @@

- Disable the heading and blockquote buttons in the Slate editor toolbar for the introduction block. @danlavrz [#1](https://github.com/kitconcept/volto-introduction-block/pull/1)
- Add new tests model based in docker @sneridagh [#2](https://github.com/kitconcept/volto-introduction-block/pull/2)


## 1.1.0 (unreleased)

### Breaking

### Feature

### Bugfix

### Internal

0 comments on commit 8cd054e

Please sign in to comment.