Skip to content

Commit

Permalink
Changes to make integration tests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
fbanados committed Dec 10, 2024
1 parent 1001c72 commit 69dcfa7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 139 deletions.
4 changes: 2 additions & 2 deletions cypress/e2e/crkeng/search.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@ context("Searching", () => {
});
});

it("should leave out not normatized content", () => {
it("should include content from MD", () => {
// nipa means "Kill Him" in MD
cy.visitSearch("nipa")
.searchResultsContain("sleeps")
.and("not.contain", "Kill");
.and("contain", "Kill");
});

describe("When I perform a search, I should see the 'info' icon on corresponding entries", () => {
Expand Down
4 changes: 2 additions & 2 deletions cypress/e2e/crkeng/word-details.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ context("Word details", () => {
{ wc: "VTA", ic: "VTA-1", word: "mowêw" },
{ wc: "VAI", ic: "VAI-1", word: "wâpiw@1" },
{ wc: "VTI", ic: "VTI-3", word: "mîciw" },
{ wc: "VII", ic: "VII-1n", word: "nîpin" },
{ wc: "VII", ic: "VII-1n", word: "nîpin@vii" },
// TODO: pretty sure this should be NAD, but the labels say otherwise:
{ wc: "NDA", ic: "NDA-1", word: "nôhkom" },
// TODO: pretty sure this should be NID, but the labels say otherwise:
{ wc: "NDI", ic: "NDI-1", word: "mîpit" },
{ wc: "NA", ic: "NA-1", word: "minôs" },
{ wc: "NI", ic: "NI-2", word: "nipiy" },
{ wc: "NI", ic: "NI-2", word: "nipiy@1" },
{ wc: "IPC", ic: null, word: "ispîhk" },
];

Expand Down
136 changes: 1 addition & 135 deletions src/crkeng/resources/dictionary/crkeng_test_db.importjson
Original file line number Diff line number Diff line change
Expand Up @@ -615,107 +615,6 @@
],
"slug": "awîna@pra"
},
{
"head": "ayâw",
"linguistInfo": {
"inflectional_category": "V",
"pos": "V",
"rw_domains": ["finance", "have_wealth", "own_possess"],
"rw_indices": {
"CW": [],
"MD": ["6.8.1.1"]
},
"wn_domains": [],
"wordclass": "V"
},
"paradigm": null,
"senses": [
{
"definition": "He owns (something).",
"semanticDefinition": "owns",
"sources": ["MD"]
},
{
"definition": "He is there.",
"semanticDefinition": "there",
"sources": ["MD"]
},
{
"definition": "You can have it.",
"semanticDefinition": "can have",
"sources": ["MD"]
},
{
"definition": "He is through",
"semanticDefinition": "through",
"sources": ["MD"]
},
{
"definition": "He is finished.",
"semanticDefinition": "finished",
"sources": ["MD"]
},
{
"definition": "He can rise now after being bedridden.",
"semanticDefinition": "can rise now after being bedridden",
"sources": ["MD"]
}
],
"slug": "ayâw@v"
},
{
"analysis": [[], "ayâw", ["+V", "+TI", "+Imp", "+Imm", "+2Sg"]],
"formOf": "ayâw@v",
"head": "ayâ",
"senses": [
{
"definition": "Have it.",
"semanticDefinition": "Have",
"sources": ["MD"]
}
]
},
{
"analysis": [["PV/e+"], "ayâw", ["+V", "+TI", "+Cnj", "+3Pl"]],
"formOf": "ayâw@v",
"head": "ê-ayâcik",
"senses": [
{
"definition": "They own (something).",
"semanticDefinition": "own",
"sources": ["MD"]
},
{
"definition": "They are there.",
"semanticDefinition": "are there",
"sources": ["MD"]
}
]
},
{
"analysis": [[], "ayâw", ["+V", "+TI", "+Ind", "+2Sg"]],
"formOf": "ayâw@v",
"head": "kitayân",
"senses": [
{
"definition": "You have it.",
"semanticDefinition": "have",
"sources": ["MD"]
}
]
},
{
"analysis": [[], "ayâw", ["+V", "+TI", "+Ind", "+2Pl"]],
"formOf": "ayâw@v",
"head": "kitayânâwâw",
"senses": [
{
"definition": "You all have it.",
"semanticDefinition": "all have",
"sources": ["MD"]
}
]
},
{
"analysis": [[], "ayâw", ["+V", "+AI", "+Ind", "+3Sg"]],
"head": "ayâw",
Expand Down Expand Up @@ -2150,12 +2049,7 @@
{
"definition": "s/he sleeps, s/he is asleep",
"semanticDefinition": "sleeps asleep",
"sources": ["CW"]
},
{
"definition": "He sleeps.",
"semanticDefinition": "sleeps",
"sources": ["MD"]
"sources": ["CW", "MD"]
},
{
"definition": "s/he is sleeping",
Expand Down Expand Up @@ -2859,34 +2753,6 @@
}
]
},
{
"head": "nôhtêpayiw",
"linguistInfo": {
"inflectional_category": "V",
"pos": "V",
"rw_domains": ["enough", "quantity"],
"rw_indices": {
"CW": [],
"MD": ["8.1.7"]
},
"wn_domains": [],
"wordclass": "V"
},
"paradigm": null,
"senses": [
{
"definition": "He ran short of it.",
"semanticDefinition": "ran short",
"sources": ["MD"]
},
{
"definition": "He is short of it.",
"semanticDefinition": "short",
"sources": ["MD"]
}
],
"slug": "nôhtêpayiw@v"
},
{
"analysis": [[], "nôhtêpaýiw", ["+V", "+AI", "+Ind", "+3Sg"]],
"head": "nôhtêpayiw",
Expand Down

0 comments on commit 69dcfa7

Please sign in to comment.