Skip to content

Commit 9209920

Browse files
committed
test(assistant-actions): read a permission's description from its attribute
1 parent 0123cd6 commit 9209920

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎apps/sim/scripts/test-assistant-actions-e2e.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,10 @@ try {
977977
.tools.find((tool) => tool.toolId === 'jira_write')
978978
assert(jiraWrite?.description)
979979
await expect(page.getByText(jiraWrite.description, { exact: true })).toBeVisible()
980-
await expect(policy).toHaveAccessibleDescription('Inherits Ask from write tools.')
980+
await expect(policy).toHaveAttribute(
981+
'aria-description',
982+
/^(Inherits Ask from|Choose Ask to inherit the default for) write tools\.$/
983+
)
981984
await capture('tool-permission-description')
982985
await policy.getByRole('radio', { name: 'Ask', exact: true }).focus()
983986
await expect(policy.getByRole('radio', { name: 'Ask', exact: true })).toBeFocused()

0 commit comments

Comments
 (0)