All files / realm/blong-access/test session.play.ts

0% Statements 0/20
0% Branches 0/1
0% Functions 0/1
0% Lines 0/20

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21                                         
/**
 * `access.session` browse-only view — sessions are not editable from the UI.
 * Sessions are created on every login, so the table is populated with live,
 * ever-changing rows (ULIDs + timestamps); asserting a full-page screenshot
 * of the table would be inherently flaky.  Instead we assert the browse page
 * renders and the read-only toolbar button is present.
 */
import {expect, test} from '@feasibleone/blong-browser/playwright';

test.use({blongPermissions: true});

test.describe('Access Session', () => {
    test('browse access session renders with the Close Session toolbar button', async ({
        portal,
    }) => {
        await portal.menuClick('access.session.browse');
        await portal.waitForTableData();
        await expect(portal.page.getByRole('button', {name: 'Close Session'})).toBeVisible();
    });
});