Skip to content

Commit 4d5a24c

Browse files
committed
test(playwright): update workflow e2e selectors and placeholders
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent b4793fd commit 4d5a24c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

playwright/e2e/workflow.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ const configureDraftRule = async(page: Page, actionName: string, label: string,
7373
await expect(page.locator('.section.rule')).toHaveCount(initialRuleCount + 1)
7474
const savedRule = page.locator('.section.rule').nth(configuredRuleIndex)
7575
await expect(savedRule.getByText('Profile field value updated', { exact: true })).toBeVisible()
76-
await expect(savedRule.getByRole('button', { name: 'Active' })).toBeVisible()
76+
await expect(savedRule.getByText('Active', { exact: true })).toBeVisible()
7777

7878
return { savedRule, initialRuleCount }
7979
}
@@ -121,8 +121,8 @@ test('admin can create a send webhook workflow rule', async ({ page }) => {
121121
await page.goto('./settings/admin/workflow')
122122
await expect(page.getByRole('heading', { name: 'Available flows' })).toBeVisible()
123123
const { savedRule, initialRuleCount } = await configureDraftRule(page, 'Send webhook', label, fieldValue, async (configuredRule) => {
124-
await configuredRule.locator(`input[placeholder="Optional shared secret for HMAC signatures"]`).fill(`secret-${suffix}`)
125-
await configuredRule.locator(`input[placeholder="Timeout in seconds"]`).fill('10')
124+
await configuredRule.locator(`input[placeholder="Optional shared secret (for request signing)"]`).fill(`secret-${suffix}`)
125+
await configuredRule.locator(`input[placeholder="Timeout (seconds)"]`).fill('10')
126126
}, webhookUrl)
127127

128128
await savedRule.getByRole('button', { name: 'Delete' }).click()

0 commit comments

Comments
 (0)