Skip to content

The agent that grows with you

534 B
Raw Blame
"""Hosted rooms over real OIDC-authenticated ordinary daemon sockets: one owner, many tabs."""
from tests.gateway.fixtures.hosted_auth_probe import probe


def test_every_signed_in_tab_shares_the_owners_hosted_rooms(tmp_path):
    receipt = probe(tmp_path)
    # Two different IdP accounts signed in; both act as the owner and share one room list.
    assert receipt['actors'] == ['alice', 'bob']
    assert receipt['rooms'] == ['tab1-room', 'tab2-room']
    assert receipt['shared_views'] == 4
    assert receipt['owner_stops'] == 2