Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Andi Braimllari committed May 5, 2024
1 parent 65696c3 commit f3eccbf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions cypress/e2e/check-loanwords.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ describe("Editor Interaction with Loanword TextField", () => {
cy.visit("/");
});

it("should reflect changes in the loanword text field when suggestions are clicked in the editor", () => {
it("should reflect changes in the editor when suggestions of loanwords are applied", () => {
cy.get('[data-test="editor"]').type("lider ");
cy.get('[data-test="suggestion"]').contains("prijës").click();
cy.get('[data-test="editor"]').contains("prijës").should("be.visible");
Expand All @@ -13,6 +13,5 @@ describe("Editor Interaction with Loanword TextField", () => {
cy.get('[data-test="editor"]').type("lider ");
cy.get('[data-test="suggestion"]').contains("udhëheqës").click();
cy.get('[data-test="editor"]').contains("udhëheqës").should("be.visible");
cy.get('[data-test="clear-editor-icon"]').click();
});
});
3 changes: 1 addition & 2 deletions cypress/e2e/check-typos.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ describe("Editor Interaction with Typo TextField", () => {
cy.visit("/");
});

it("should reflect changes in the typo text field when suggestions are clicked in the editor", () => {
it("should reflect changes in the editor when suggestions of typos are applied", () => {
cy.get('[data-test="editor"]').type("gabmim ");
cy.get('[data-test="suggestion"]').contains("gabime").click();
cy.get('[data-test="editor"]').contains("gabime").should("be.visible");
Expand All @@ -13,6 +13,5 @@ describe("Editor Interaction with Typo TextField", () => {
cy.get('[data-test="editor"]').type("gabmim ");
cy.get('[data-test="suggestion"]').contains("gabim").click();
cy.get('[data-test="editor"]').contains("gabim").should("be.visible");
cy.get('[data-test="editor"]').clear();
});
});

0 comments on commit f3eccbf

Please sign in to comment.