fix broken test locators

This commit is contained in:
Björn Dalfors
2024-06-17 10:01:34 +02:00
parent f539e03c7e
commit 61f2389c1c
2 changed files with 3 additions and 3 deletions

View File

@@ -2,6 +2,6 @@ import { Page } from 'playwright'
import { clickOn } from '../util'
export async function copyValueToClipboard(browser: Page) {
const copyButton = await browser.locator('//span[contains(text(), "Value")]//button')
const copyButton = await browser.getByRole('button', { name: 'Value' }).getByRole('button').first()
await clickOn(copyButton, 1)
}