2022-11-08 04:21:10 -08:00
|
|
|
import {DEFAULT_USER_EMAIL, DEFAULT_USER_PASSWORD} from "../constants";
|
|
|
|
import {randFirstName, randLastName} from "@ngneat/falso";
|
|
|
|
|
|
|
|
const username = DEFAULT_USER_EMAIL;
|
|
|
|
const password = DEFAULT_USER_PASSWORD;
|
|
|
|
const firstName = randFirstName();
|
|
|
|
const lastName = randLastName();
|
|
|
|
|
2022-11-22 01:37:26 -08:00
|
|
|
describe('Authentication', () => {
|
2022-11-24 03:52:09 -08:00
|
|
|
it('should setup owner', () => {
|
2022-11-08 04:21:10 -08:00
|
|
|
cy.signup(username, firstName, lastName, password);
|
|
|
|
});
|
|
|
|
|
|
|
|
it('should sign user in', () => {
|
|
|
|
cy.on('uncaught:exception', (err, runnable) => {
|
|
|
|
expect(err.message).to.include('Not logged in');
|
|
|
|
|
|
|
|
return false;
|
|
|
|
})
|
|
|
|
|
|
|
|
cy.signin(username, password);
|
|
|
|
});
|
|
|
|
});
|