Skip to content

Commit

Permalink
cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
OlliL committed Jul 21, 2024
1 parent 0186b4e commit 3507219
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/tests/views/moneyflow/CreateMoneyflow.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ test("split entries handling", async () => {
);
const subbookingLink = screen.getByText("subbooking");
waitFor(() => expect(subbookingDiv).toHaveClass("collapse"));
waitFor(() => expect(subbookingDiv).not.toHaveClass("show"));

//
// 03. show subbookings div and make sure it has 2 rows
Expand Down Expand Up @@ -331,7 +332,7 @@ test("select a PreDefMoneyflow - fill input fields", async () => {
assertInputValueToBe("capitalsourceCreateMoneyflow", "2"),
assertInputValueToBe("postingAccountCreateMoneyflow", "1"),
]);
}, 10000);
});

test("select a Contractpartner - set and reset input fields", async () => {
await StoreService.getInstance().initAllStores();
Expand Down Expand Up @@ -453,7 +454,10 @@ const waitForOptionSelected = async (
message?: string,
) => {
await waitFor(() => {
expect(item.selectedOptions.item(0)?.value, message).toBe(value);
expect(
Array.from(item.selectedOptions).filter((opt) => opt.value == value),
message,
).toHaveLength(1);
});
};

Expand Down

0 comments on commit 3507219

Please sign in to comment.