mirror of
https://github.com/jkingsman/Remote-Terminal-for-MeshCore.git
synced 2026-06-21 10:35:05 +02:00
Be more gentle during test runs
This commit is contained in:
@@ -331,11 +331,17 @@ describe('App startup hash resolution', () => {
|
||||
|
||||
render(<App />);
|
||||
|
||||
await waitFor(() => {
|
||||
for (const node of screen.getAllByTestId('active-conversation')) {
|
||||
expect(node).toHaveTextContent(`channel:${publicChannel.key}:Public`);
|
||||
}
|
||||
});
|
||||
// App startup triggers multiple async fetches (config, settings, channels,
|
||||
// contacts, unreads) that must all resolve before conversation selection
|
||||
// renders. CI runners are slower than local, so bump the default timeout.
|
||||
await waitFor(
|
||||
() => {
|
||||
for (const node of screen.getAllByTestId('active-conversation')) {
|
||||
expect(node).toHaveTextContent(`channel:${publicChannel.key}:Public`);
|
||||
}
|
||||
},
|
||||
{ timeout: 3000 }
|
||||
);
|
||||
|
||||
expect(localStorage.getItem(LAST_VIEWED_CONVERSATION_KEY)).toContain(publicChannel.key);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user