From e5afcce798dd9397c330ec79352634cc2e689ef0 Mon Sep 17 00:00:00 2001 From: Chandrasekhar Ramakrishnan Date: Fri, 17 Jan 2025 11:35:04 +0100 Subject: [PATCH] code cleanup --- tests/cypress/support/commands/datasets.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/cypress/support/commands/datasets.ts b/tests/cypress/support/commands/datasets.ts index e1455320b8..2e27a75340 100644 --- a/tests/cypress/support/commands/datasets.ts +++ b/tests/cypress/support/commands/datasets.ts @@ -72,9 +72,8 @@ function newDataset(newDataset: Dataset) { cy.getDataCy("ckeditor-description") .find(".ck-content[contenteditable=true]") .click() - .then((element) => - element[0].ckeditorInstance.setData(newDataset.description) - ); + .clear() + .type(newDataset.description); if (newDataset.file) { cy.get('[data-cy="dropzone"]').attachFile(