Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ciyer committed Jan 17, 2025
1 parent cd44a4b commit e5afcce
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/cypress/support/commands/datasets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit e5afcce

Please sign in to comment.