Skip to content

Commit 64cf288

Browse files
committed
update matcher to exact
1 parent d614de4 commit 64cf288

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

client/e2e/configuration.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ test.describe('Configuration detail flow', () => {
178178
await expect(makeAxeBuilder).toHaveNoAxeViolations();
179179

180180
// change the text and the error should go away
181-
await page.getByLabel('Code').fill(newCode);
181+
await page.getByLabel('Code', { exact: true }).fill(newCode);
182182
await page.getByLabel('Code name').click();
183183
await expect(expectedError).not.toBeVisible();
184184
await expect(updateButton).toBeEnabled();

client/e2e/pages/ConfigurationPage.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ export class ConfigurationPage {
8888
await this.page
8989
.getByRole('button', { name: `Edit custom code ${currentCodeName}` })
9090
.click();
91-
if (newCode) await this.page.getByLabel('Code').fill(newCode);
91+
if (newCode)
92+
await this.page.getByLabel('Code', { exact: true }).fill(newCode);
9293
if (newCodeSystem)
9394
await this.page.getByLabel('Code system').selectOption(newCodeSystem);
9495
if (newCodeName) await this.page.getByLabel('Code name').fill(newCodeName);

0 commit comments

Comments
 (0)