Bug 35940: (bug 35477 follow-up) Fix cypress tests
AssertionError: Timed out retrying after 10000ms: Expected to find element: `main div[class='dialog message']`, but never found it. We moved from message to alert. Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
1c7a5bcf11
commit
f1b32b5316
2 changed files with 12 additions and 3 deletions
|
@ -629,13 +629,22 @@ describe("Trains", () => {
|
|||
{ item_id: 1 },
|
||||
{ item_id: 2 },
|
||||
]);
|
||||
|
||||
cy.get("#waiting-list").contains("Add to waiting list").click();
|
||||
cy.get("#barcode_list").type("bc_1\nbc_2\nbc_3");
|
||||
cy.get("#barcode_list").type("bc_1\nbc_2");
|
||||
cy.contains("Submit").click();
|
||||
cy.wait("@get-items");
|
||||
cy.get("main div[class='dialog message']").contains(
|
||||
"2 new items added."
|
||||
);
|
||||
|
||||
cy.get("#waiting-list").contains("Add to waiting list").click();
|
||||
cy.get("#barcode_list").type("bc_1\nbc_2\nbc_3");
|
||||
cy.contains("Submit").click();
|
||||
cy.wait("@get-items");
|
||||
cy.get("main div[class='dialog alert modal']").contains(
|
||||
"2 new items added. 1 items not found."
|
||||
);
|
||||
cy.contains("Add last 2 items to a train").click();
|
||||
cy.get("#train_id .vs__search").type(train.name + "{enter}");
|
||||
cy.intercept("GET", "/api/v1/items*", {
|
||||
|
|
|
@ -97,8 +97,8 @@ describe("WaitingList", () => {
|
|||
cy.get("#barcode_list").type("bc_1\nbc_2\nbc_3");
|
||||
cy.contains("Submit").click();
|
||||
cy.wait("@get-items");
|
||||
cy.get("main div[class='dialog message']").contains(
|
||||
"2 new items added."
|
||||
cy.get("main div[class='dialog alert modal']").contains(
|
||||
"2 new items added. 1 items not found."
|
||||
);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue