fix broken test locators
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user