Skip to content

Commit

Permalink
Merge pull request #18 from eea/develop
Browse files Browse the repository at this point in the history
Fix cypress tests when using with volto-slate
  • Loading branch information
avoinea authored Jan 4, 2022
2 parents 5a43cf6 + 796d905 commit 708bf66
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 11 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ yarn-error.log
node_modules
build
dist
cypress/videos
cypress/reports
screenshots
videos
.env.local
.env.development.local
.env.test.local
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,15 @@ All notable changes to this project will be documented in this file. Dates are d

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

#### [4.3.5](https://github.com/eea/volto-group-block/compare/4.3.4...4.3.5)

- Fix cypress tests when using with volto-slate [`e7cff69`](https://github.com/eea/volto-group-block/commit/e7cff6968abf73ea73af9dabe17f16a5d710bdf6)

#### [4.3.4](https://github.com/eea/volto-group-block/compare/4.3.3...4.3.4)

> 3 January 2022
- Release [`#17`](https://github.com/eea/volto-group-block/pull/17)
- add cy tests [`#16`](https://github.com/eea/volto-group-block/pull/16)

#### [4.3.3](https://github.com/eea/volto-group-block/compare/4.3.2...4.3.3)
Expand Down
19 changes: 9 additions & 10 deletions cypress/integration/block-basics.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,15 @@ describe('Blocks Tests', () => {
cy.get('.blocks-chooser .title').contains('Common').click();
cy.get('.content.active.common .button.group').contains('Group').click();

cy.get('.block.text.selected').type("test");
cy.get('.block.text.selected').type("{enter}");
cy.get('.block.text.selected').type("test2");
cy.get('.block.text.selected').type("{enter}");
cy.get('.block.text.selected').type("test3");

cy.get('.block-toolbar svg').first()
.trigger('mousedown', { button: 0})
.trigger('mousemove', 10, -40, { force: true})
.trigger('mouseup', 10, -40, {force:true});
cy.get('.block-editor-group [contenteditable=true]').focus().click().type('test{enter}');
cy.get('.block-editor-group [contenteditable=true]').eq(1).focus().click().type('test2{enter}');
cy.get('.block-editor-group [contenteditable=true]').eq(1).focus().click().type('test3');

cy.get('.block-toolbar svg')
.first()
.trigger('mousedown', { button: 0 })
.trigger('mousemove', 10, -40, { force: true })
.trigger('mouseup', 10, -40, { force: true });

// Save
cy.get('#toolbar-save').click();
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eeacms/volto-group-block",
"version": "4.3.4",
"version": "4.3.5",
"description": "volto-group-block: Volto block to be used to group other blocks",
"main": "src/index.js",
"author": "European Environment Agency: IDM2 A-Team",
Expand Down

0 comments on commit 708bf66

Please sign in to comment.