Skip to content

Commit

Permalink
tests(elements): Match via regex instead of string
Browse files Browse the repository at this point in the history
  • Loading branch information
dstaley committed Aug 2, 2024
1 parent 4ebbbcf commit ce4a4c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion integration/tests/elements/validate-password.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ testAgainstRunningApps({ withEnv: [appConfigs.envs.withEmailCodes] })('Password
await u.po.signIn.setPassword('12345678');

await expect(page.getByTestId('state')).toHaveText('error');
await expect(page.getByTestId('codes')).toHaveText('require_special_char');
await expect(page.getByTestId('codes')).toHaveText(/require_special_char/);
await expect(page.getByTestId('message')).toHaveText('Your password must contain a special character.');
});

Expand Down

0 comments on commit ce4a4c4

Please sign in to comment.