wisemapping-frontend/packages/editor/cypress/e2e/topicCopyAndPaste.cy.ts

20 lines
566 B
TypeScript
Raw Normal View History

2023-01-15 04:31:01 +01:00
/// <reference types="cypress" />
2023-01-15 09:10:27 +01:00
describe('Topic Copy and Paste Suite', () => {
2023-01-15 04:31:01 +01:00
beforeEach(() => {
// Remove storage for autosave ...
cy.visit('/editor.html');
cy.waitEditorLoaded();
2023-01-15 09:10:27 +01:00
cy.focusTopicById(2);
2023-01-15 04:31:01 +01:00
});
it('Copy and Paste', () => {
cy.get(`[aria-label="Topic Style"]`).first().trigger('mouseover');
cy.get('body').type('{meta}c');
// Copy & Paste require permissions. More reseach needed.
// cy.get('body').type('{meta}v');
// cy.get('[test-id=50]').click();
// cy.matchImageSnapshot('copyandpaste');
});
});