Skip to content

armgit / plexo

Public Imported from GitHub
0

Speed up downloads by combining multiple network connections in parallel

test: find the network edit button by its new label in the settings smoke test (#234)

dxmoc 🐛aac0b9779476
diff --git a/e2e/ui.spec.ts b/e2e/ui.spec.ts
index df5d6ea..aba168f 100644
--- a/e2e/ui.spec.ts
+++ b/e2e/ui.spec.ts
@@ -310,7 +310,10 @@ test.describe('settings @smoke', () => {
.first()
.first()
await networksMenu().click()
- await page().getByRole('button', { name: 'Edit network' }).first().click()
+ await page()
+ .getByRole('button', { name: /^Edit / })
+ .first()
+ .click()
await page().getByRole('textbox', { name: 'Name' }).fill('Office fibre')
await page().getByRole('button', { name: 'Violet' }).click()
await page().getByRole('button', { name: 'Done' }).click()
@@ -326,7 +329,7 @@ test.describe('settings @smoke', () => {
await page().keyboard.press('Escape')
await networksMenu().click()
await expect(page().getByText('Office fibre')).toBeVisible()
- await page().getByRole('button', { name: 'Edit network' }).first().click()
+ await page().getByRole('button', { name: 'Edit Office fibre' }).click()
await expect(page().getByRole('button', { name: 'Violet' })).toHaveAttribute(
'aria-pressed',
'true'