test: Sprachnotiz-Liste wartet auf die Geräteliste (Rennen im CI)
Der Test las die Listeneinträge, sobald die Serverliste da war; die Geräteliste aus IndexedDB kam im CI später. Er wartet jetzt auf „Wartet auf Netz“, bevor er die Reihenfolge prüft. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This commit is contained in:
1 parent
92323197a7
commit
fe1626b374
1 file changed
+3
-1
@@ -155,7 +155,9 @@ describe("VoiceListPage", () => {
|
|||||||
});
|
});
|
||||||
renderPage();
|
renderPage();
|
||||||
|
|
||||||
const items = await screen.findAllByRole("listitem");
|
// The device list comes from IndexedDB and may arrive after the server list.
|
||||||
|
await screen.findByText("Wartet auf Netz");
|
||||||
|
const items = screen.getAllByRole("listitem");
|
||||||
expect(within(items[0]).getByText("B4")).toBeInTheDocument();
|
expect(within(items[0]).getByText("B4")).toBeInTheDocument();
|
||||||
expect(within(items[0]).getByText("Wartet auf Netz")).toBeInTheDocument();
|
expect(within(items[0]).getByText("Wartet auf Netz")).toBeInTheDocument();
|
||||||
expect(within(items[1]).getByText("B9")).toBeInTheDocument();
|
expect(within(items[1]).getByText("B9")).toBeInTheDocument();
|
||||||
|
|||||||
Reference in new issue
Block a user