Skip to content

Commit

Permalink
fix user tests
Browse files Browse the repository at this point in the history
  • Loading branch information
falkoschindler committed Feb 3, 2025
1 parent e65b136 commit 8e0d027
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion nicegui/testing/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@ async def open(self, path: str, *, clear_forward_history: bool = True) -> Client
client_id = match.group(1)
self.client = Client.instances[client_id]
self.sio.on('connect')
await _on_handshake(f'test-{uuid4()}', {'client_id': self.client.id, 'tab_id': str(uuid4())})
await _on_handshake(f'test-{uuid4()}', {
'client_id': self.client.id,
'tab_id': str(uuid4()),
'document_id': str(uuid4()),
})
self.back_history.append(path)
if clear_forward_history:
self.forward_history.clear()
Expand Down

0 comments on commit 8e0d027

Please sign in to comment.