test: the boundary stores the owner id as a string; compare it as one
Some checks are pending
Forgejo Docker Build / Root app tests (push) Successful in 50s
Forgejo Docker Build / Build Docker image (push) Has started running
Forgejo Docker Build / End-to-end (browser) (push) Has started running

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Dv6sqaY6Vq3ChZHMem3cnU
This commit is contained in:
Daniel 2026-09-13 14:37:02 +02:00
parent 2e3cf0d77b
commit ed17d38229

View file

@ -1131,7 +1131,7 @@ test('the same person signing in again in another tab is adopted, not reloaded',
b.storageMessage({ ...shared, generation: 'another-tab-same-person' });
assert.equal(b.c.AccountBoundary.blocked(), false, 'not frozen');
assert.equal(b.reloads(), 0, 'not reloaded');
assert.equal(b.c.AccountBoundary.capture(), 1, 'still working as the same owner');
assert.equal(String(b.c.AccountBoundary.capture()), '1', 'still working as the same owner');
b.storageMessage({ ...shared, owner: 2, generation: 'another-tab-other-person' });
assert.equal(b.c.AccountBoundary.blocked(), true, 'a different account still freezes this tab');
assert.ok(b.reloads());