Skip to content

Commit aa2b701

Browse files
committed
Fix e2e secrets test: check ID input value instead of page text content
1 parent 5be61a4 commit aa2b701

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

e2e/tests/secrets.crud-all-fields.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ test.describe('CRUD secret with all fields (AWS)', () => {
7070

7171
const pageContent = await page.textContent('body');
7272
expect(pageContent).toContain('Secret Manager');
73-
expect(pageContent).toContain(createdSecretId);
73+
await expect(page.locator('input[name="id"]')).toHaveValue(createdSecretId);
7474
// Verify AWS-specific fields are present (labels)
7575
expect(pageContent).toContain('Access Key ID');
7676
expect(pageContent).toContain('Secret Access Key');

0 commit comments

Comments
 (0)