editor.js/test/cypress/tests
Peter Savchenko 922dfd8741
chore(api): blocks.update(id, data) method improved (#2443)
* add custom Chai assertion "be.calledWithBatchedEvents" for testing onchange

* chore(api): blocks.update(id, data) method improved

- `blocks.update(id, data)` now can accept partial data object — it will update only passed properties, others will remain the same.
- `blocks.update(id, data)` now will trigger onChange with only `block-change` event.
- `blocks.update(id, data)` will return a promise with BlockAPI object of changed block.

* fix tests

* Update blocks.cy.ts
2023-08-19 07:53:42 +03:00
..
api chore(api): blocks.update(id, data) method improved (#2443) 2023-08-19 07:53:42 +03:00
inline-tools deps(Cypress): upgrade library and related packages to latest versions, migrate config, fix type error (#2327) 2023-04-02 19:20:59 +01:00
modules chore(perf): initialisation and rendering performance optimisations (#2430) 2023-08-08 22:17:09 +03:00
tools Use Vite builder (#2300) 2023-04-13 22:25:29 +03:00
ui feat(shortcuts): convert block by tools shortcut (#2419) 2023-07-20 23:27:18 +03:00
utils chore(perf): initialisation and rendering performance optimisations (#2430) 2023-08-08 22:17:09 +03:00
block-ids.cy.ts chore(perf): initialisation and rendering performance optimisations (#2430) 2023-08-08 22:17:09 +03:00
copy-paste.cy.ts chore(perf): initialisation and rendering performance optimisations (#2430) 2023-08-08 22:17:09 +03:00
i18n.cy.ts chore(perf): initialisation and rendering performance optimisations (#2430) 2023-08-08 22:17:09 +03:00
initialization.cy.ts deps(Cypress): upgrade library and related packages to latest versions, migrate config, fix type error (#2327) 2023-04-02 19:20:59 +01:00
onchange.cy.ts chore(api): blocks.update(id, data) method improved (#2443) 2023-08-19 07:53:42 +03:00
readOnly.cy.ts deps(Cypress): upgrade library and related packages to latest versions, migrate config, fix type error (#2327) 2023-04-02 19:20:59 +01:00
sanitisation.cy.ts chore(perf): initialisation and rendering performance optimisations (#2430) 2023-08-08 22:17:09 +03:00
selection.cy.ts deps(Cypress): upgrade library and related packages to latest versions, migrate config, fix type error (#2327) 2023-04-02 19:20:59 +01:00
utils.cy.ts deps(Cypress): upgrade library and related packages to latest versions, migrate config, fix type error (#2327) 2023-04-02 19:20:59 +01:00