2021-07-23 11:08:44 +00:00
|
|
|
describe('AdminDashboardAuthentication', function () {
|
2020-07-21 14:41:22 +00:00
|
|
|
before(() => {
|
|
|
|
cy.app('clean');
|
2021-07-23 11:08:44 +00:00
|
|
|
cy.appScenario('default');
|
2020-07-21 14:41:22 +00:00
|
|
|
});
|
|
|
|
|
2021-07-23 11:08:44 +00:00
|
|
|
it('authenticates an admin ', function () {
|
2020-07-21 14:41:22 +00:00
|
|
|
cy.visit('/');
|
|
|
|
|
|
|
|
cy.get("[data-testid='email_input']")
|
|
|
|
.clear()
|
|
|
|
.type('john@acme.inc');
|
|
|
|
cy.get("[data-testid='password_input']")
|
|
|
|
.clear()
|
2021-07-23 11:08:44 +00:00
|
|
|
.type('Password1!');
|
2020-07-21 14:41:22 +00:00
|
|
|
|
|
|
|
cy.get("[data-testid='submit_button']").click();
|
|
|
|
});
|
2021-07-23 11:08:44 +00:00
|
|
|
|
2020-07-21 14:41:22 +00:00
|
|
|
});
|