Skip to content

Commit 523b649

Browse files
author
Tim McMackin
committed
Remove this flaky test
1 parent c5573e1 commit 523b649

1 file changed

Lines changed: 0 additions & 22 deletions

File tree

test/playwright/site.spec.js

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -15,28 +15,6 @@ test('navigation', async ({ page }) => {
1515
await expect(page.getByText('How is Etherlink governed?')).toBeVisible();
1616
});
1717

18-
test('code copy buttons', async ({ page, context }) => {
19-
await context.grantPermissions(['clipboard-read']);
20-
await page.goto('https://docs.etherlink.com/get-started/network-information');
21-
22-
// Click copy button
23-
const mainnetAddressButton = page.locator('xpath=//a[@href="https://tzkt.io/sr1Ghq66tYK9y3r8CC1Tf8i8m5nxh8nTvZEf"]/following-sibling::button');
24-
await mainnetAddressButton.click();
25-
26-
// Check clipboard contents
27-
const clipboardContent = await page.evaluate(() => navigator.clipboard.readText());
28-
await expect(clipboardContent).toEqual('sr1Ghq66tYK9y3r8CC1Tf8i8m5nxh8nTvZEf');
29-
30-
// Try a different button
31-
const rpcButton = page.locator('xpath=//code[text()="https://node.mainnet.etherlink.com"]/following-sibling::button');
32-
await rpcButton.click();
33-
34-
// Check clipboard contents
35-
const clipboardContent2 = await page.evaluate(() => navigator.clipboard.readText());
36-
await expect(clipboardContent2).toEqual('https://node.mainnet.etherlink.com');
37-
38-
});
39-
4018
test('search', async ({ page }) => {
4119
await page.goto('https://docs.etherlink.com/');
4220
await page.getByText("Search").click()

0 commit comments

Comments
 (0)