feat: season/episode list on series details (#2967)

This commit is contained in:
Ryan Cohen
2022-08-24 13:09:10 +09:00
committed by GitHub
parent 67f3a3829e
commit 8a2acb7f2b
17 changed files with 377 additions and 12 deletions

View File

@@ -24,3 +24,11 @@ Cypress.Commands.add('login', (email, password) => {
}
);
});
Cypress.Commands.add('loginAsAdmin', () => {
cy.login(Cypress.env('ADMIN_EMAIL'), Cypress.env('ADMIN_PASSWORD'));
});
Cypress.Commands.add('loginAsUser', () => {
cy.login(Cypress.env('USER_EMAIL'), Cypress.env('USER_PASSWORD'));
});

View File

@@ -5,6 +5,8 @@ declare global {
namespace Cypress {
interface Chainable {
login(email?: string, password?: string): Chainable<Element>;
loginAsAdmin(): Chainable<Element>;
loginAsUser(): Chainable<Element>;
}
}
}