Skip to content

Commit 606e2f5

Browse files
committed
test(browser): the announcement flow finds its Sent fact, not its badge
1 parent 07d168a commit 606e2f5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tests/browser/admin.spec.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ test('an announcement is drafted without a confirmation, sent with one, and its
485485
await confirmDashboard(admin);
486486
await admin.getByRole('button', { name: 'Send', exact: true }).click();
487487
await expect(admin.getByRole('heading', { name: subject, exact: true })).toBeVisible();
488-
await expect(admin.getByText('Sent', { exact: true })).toBeVisible();
488+
await expect(admin.getByRole('term').filter({ hasText: /^Sent$/ })).toBeVisible();
489489

490490
if (mailUrl) {
491491
await mailed(address, /Sign-in pauses tonight\./);

0 commit comments

Comments
 (0)