From 49382e607634577a2428b0cc2dcecd6c3ab452c7 Mon Sep 17 00:00:00 2001 From: Tanya Fomina Date: Thu, 25 Apr 2024 22:46:58 +0300 Subject: [PATCH] Fix flipper tests --- test/cypress/tests/utils/flipper.cy.ts | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/test/cypress/tests/utils/flipper.cy.ts b/test/cypress/tests/utils/flipper.cy.ts index cb8b2779..02b56af7 100644 --- a/test/cypress/tests/utils/flipper.cy.ts +++ b/test/cypress/tests/utils/flipper.cy.ts @@ -1,4 +1,4 @@ -import { PopoverItem } from '../../../../types/index.js'; +import { PopoverItemParams } from '../../../../types/index.js'; /** * Mock of some Block Tool @@ -26,14 +26,24 @@ class SomePlugin { /** * Used to display our tool in the Toolbox */ - public static get toolbox(): PopoverItem { + public static get toolbox(): PopoverItemParams { return { + type: 'default', icon: '₷', title: 'Some tool', // eslint-disable-next-line @typescript-eslint/no-empty-function onActivate: (): void => {}, }; } + + /** + * Extracts data from the plugin's UI + */ + public save(): {data: string} { + return { + data: '123', + }; + } } describe('Flipper', () => {