mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
e2e: correct login step definition
This commit is contained in:
parent
9b989431f2
commit
0b7a004c90
@ -7,7 +7,7 @@ defineStep('I am logged in as {string}', slug => {
|
||||
.then(user => {
|
||||
return new Cypress.Promise((resolve, reject) => {
|
||||
if(!user) {
|
||||
return reject(`User ${email} not found in database`)
|
||||
return reject(`User ${slug} not found in database`)
|
||||
}
|
||||
return user.toJson().then((user) => resolve(user))
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user