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

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

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 22 23 24                                               
/**
 * `access.audit` browse-only view — the append-only audit log is not seeded and
 * not editable from the UI; the Browse page (empty state) is asserted.
 *
 * The audit table is DYNAMIC — every login/refresh/etc. appends a row (with
 * timestamps and actor ids), so the screenshot must not capture live data.  We
 * filter the browse grid with a guaranteed-no-match term so the snapshot always
 * shows the deterministic empty state regardless of what the suite accumulated.
 */
import {expect, test} from '@feasibleone/blong-browser/playwright';
import {browseModel} from '@feasibleone/blong-browser/playwright/model';

test.use({blongPermissions: true});

test.describe('Access Audit', () => {
    browseModel(test, expect, {
        subject: 'access',
        object: 'audit',
        // Filter to a term that no audit row can contain → deterministic empty
        // state in the `access-audit-browse` screenshot.
        searchText: 'no-match-zzzz',
    });
});