mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
test(e2e): align permission outcome assertion with label-based rendering
Test 03 asserted /Approved.*allow_once/ — the old format that rendered the raw ACP kind string. describePermissionOutcome now returns the harness-provided label (or verb-only fallback); the legacy non-ask path has no label map, so the rendered text is 'Approved'. Production code is untouched; this test file is the only change. Co-authored-by: Will Pfleger <pfleger.will@gmail.com> Signed-off-by: Will Pfleger <pfleger.will@gmail.com>
This commit is contained in:
@@ -275,8 +275,10 @@ test.describe("observer feed screenshots", () => {
|
||||
},
|
||||
]);
|
||||
|
||||
// The permission row should show the "Approved (allow_once)" outcome.
|
||||
await expect(feedPanel.getByText(/Approved.*allow_once/)).toBeVisible({
|
||||
// The permission row shows the harness-provided option label ("Allow once"),
|
||||
// not the raw ACP kind. The legacy non-ask path has no label map, so it
|
||||
// falls back to the verb-only form: "Approved".
|
||||
await expect(feedPanel.getByText("Approved")).toBeVisible({
|
||||
timeout: 5_000,
|
||||
});
|
||||
await settleAnimations(feedPanel);
|
||||
|
||||
Reference in New Issue
Block a user