-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #166 from OpenCovenant/collapse-expand-arrows
Collapse expand arrows
- Loading branch information
Showing
4 changed files
with
970 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
describe("click on expand/collapse arrow and then choose on a suggestion and check if it exist on editor", () => { | ||
beforeEach(() => { | ||
cy.visit("/"); | ||
}); | ||
|
||
it("will click on the expand/collapse arrows and then choose on a suggestion", () => { | ||
cy.get('[data-test="editor"]').type("sakt eshte"); | ||
cy.get('[data-test="suggestion"]').children().should("have.length", 8); | ||
cy.get( | ||
'[data-test="oscillate-suggestions-button"].bi-arrow-right-square' | ||
).first().click(); | ||
cy.get( | ||
'[data-test="oscillate-suggestions-button"].bi-arrow-right-square' | ||
).click(); | ||
cy.get('[data-test="suggestion"]') | ||
.children() | ||
.should("have.length.gt", 8); | ||
cy.get( | ||
'[data-test="oscillate-suggestions-button"].bi-arrow-left-square' | ||
).first().click(); | ||
cy.get( | ||
'[data-test="oscillate-suggestions-button"].bi-arrow-left-square' | ||
).click(); | ||
cy.get('[data-test="suggestion"]').children().should("have.length", 8); | ||
cy.get( | ||
'[data-test="oscillate-suggestions-button"].bi-arrow-right-square' | ||
).first().click(); | ||
cy.get( | ||
'[data-test="oscillate-suggestions-button"].bi-arrow-right-square' | ||
).click(); | ||
cy.get('[data-test="suggestion"]') | ||
.children() | ||
.should("have.length.gt", 8); | ||
cy.get('[data-test="suggestion"]').contains("saktë").click(); | ||
cy.get( | ||
'[data-test="oscillate-suggestions-button"].bi-arrow-right-square' | ||
).click(); | ||
cy.get('[data-test="suggestion"]').contains("është").click(); | ||
cy.get('[data-test="editor"]').should("have.text", "saktë është"); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.