match seed data to cypress test data
This commit is contained in:
parent
eff7c5c281
commit
93a8533d76
2 changed files with 2 additions and 2 deletions
|
|
@ -15,7 +15,7 @@ class UserSeeder extends Seeder
|
|||
$userRepository = app(UserRepository::class);
|
||||
$passwordHasher = app(PasswordHasher::class);
|
||||
$userRepository->create(new CreateUserDto(
|
||||
email: new EmailAddress('test@example.com'),
|
||||
email: new EmailAddress('admin@rabbigerzi.test'),
|
||||
passwordHash: $passwordHasher->hash('password123!@#'),
|
||||
));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ describe('admin login page', () => {
|
|||
cy.visit('/login')
|
||||
|
||||
cy.get('[data-cy="login-email"]').type('admin@rabbigerzi.test')
|
||||
cy.get('[data-cy="login-password"]').type('password')
|
||||
cy.get('[data-cy="login-password"]').type('password123!@#')
|
||||
cy.get('[data-cy="login-submit"]').click()
|
||||
|
||||
cy.url().should('eq', Cypress.config().baseUrl + '/')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue