Browse Source

test(core): Fix broken e2e tests

Michael Bromley 3 years ago
parent
commit
ac65af700c
1 changed files with 4 additions and 0 deletions
  1. 4 0
      packages/core/e2e/shop-auth.e2e-spec.ts

+ 4 - 0
packages/core/e2e/shop-auth.e2e-spec.ts

@@ -82,6 +82,10 @@ const currentUserErrorGuard: ErrorResultGuard<CurrentUserShopFragment> = createE
 
 class TestPasswordValidationStrategy implements PasswordValidationStrategy {
     validate(ctx: RequestContext, password: string): boolean | string {
+        if (password === 'test') {
+            // allow the default seed data password
+            return true;
+        }
         if (password.length < 8) {
             return 'Password must be more than 8 characters';
         }