Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Update test assertions (#2204)

Leendert de Borst03992e12e200
diff --git a/apps/browser-extension/tests/e2e/09-save-login-prompt.spec.ts b/apps/browser-extension/tests/e2e/09-save-login-prompt.spec.ts
index a75bc59f1..e3878b052 100644
--- a/apps/browser-extension/tests/e2e/09-save-login-prompt.spec.ts
+++ b/apps/browser-extension/tests/e2e/09-save-login-prompt.spec.ts
@@ -280,6 +280,7 @@ test.describe.serial('9. Save Login Prompt', () => {
// Verify the credential was added to the vault
await client.goToVault().then(c => c.waitForVaultReady());
+
await client.verifyCredentialExists(serviceName);
await client.screenshot('9.2-credential-saved-in-vault.png');
diff --git a/apps/browser-extension/tests/fixtures/TestClient.ts b/apps/browser-extension/tests/fixtures/TestClient.ts
index fe1c272ab..27d4f4891 100644
--- a/apps/browser-extension/tests/fixtures/TestClient.ts
+++ b/apps/browser-extension/tests/fixtures/TestClient.ts
@@ -363,7 +363,7 @@ export class TestClient {
* Verify a credential exists in the vault list.
*/
async verifyCredentialExists(name: string, timeout: number = Timeouts.MEDIUM): Promise<this> {
- await expect(this.popup.locator(`text=${name}`)).toBeVisible({ timeout });
+ await expect(this.popup.locator('ul#items-list').getByText(name).first()).toBeVisible({ timeout });
return this;
}