Skip to content

Commit

Permalink
Merge branch 'main' of github.com:UAlbertaALTLab/morphodict
Browse files Browse the repository at this point in the history
  • Loading branch information
fbanados committed Jun 24, 2024
2 parents 7cc6f4e + 8d03789 commit 5d51fb5
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions cypress/integration/crkeng/paradigm.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ describe("I want to search for a Cree word and see its inflectional paradigm", (
lemma: "mîcisow",
inflections: ["nimîcison", "kimîcison", "ê-mîcisoyit"],
},
{
pos: "VTI",
lemma: "mîciw",
inflections: ["nimîcin", "mîciwak", "ê-mîciniwahk"]
{
pos: "VTI",
lemma: "mîciw",
inflections: ["nimîcin", "mîciwak", "ê-mîciniwahk"],
},
{ pos: "VII", lemma: "nîpin", inflections: ["nîpin", "ê-nîpihk"] },
{ pos: "NDA", lemma: "nôhkom", inflections: ["kôhkom", "ohkoma"] },
Expand All @@ -36,7 +36,11 @@ describe("I want to search for a Cree word and see its inflectional paradigm", (
for (let { pos, lemma, inflections } of testCases) {
it(`should display the paradigm for a word belonging to the ${pos} word class`, () => {
cy.visitSearch(lemma);
cy.get("[data-cy=search-results]").contains(pos).closest("[data-cy=search-result]").contains("a", lemma).click();
cy.get("[data-cy=search-results]")
.contains(pos)
.closest("[data-cy=search-result]")
.contains("a", lemma)
.click();

cy.get("[data-cy=paradigm]").as("paradigm");

Expand Down

0 comments on commit 5d51fb5

Please sign in to comment.