* fix: font size broken * add first cypress test * save onboarding language * load language * get first test to work * update command * install pnpm * update workflow * install * update * test * increase timeout * another update * update 2 * update 3 * upsdada 4 * sfgsfgf 5 * add def supabase url * fix supabase issue * add ci * fix ci * update .env.example * update port * tired * prepare * preview * this is it * ????? * 99999900 * fix log issue * ci * nkkh * ===== * 200000
33 lines
913 B
JavaScript
33 lines
913 B
JavaScript
describe('classroomio dashboard', () => {
|
|
beforeEach(() => {
|
|
cy.visit('http://localhost:4173');
|
|
});
|
|
|
|
it('shows the signup and login button', () => {
|
|
cy.get('nav button').should('have.length', 2);
|
|
|
|
cy.get('nav button').first().contains('Login');
|
|
cy.get('nav button').last().contains('Sign Up');
|
|
});
|
|
|
|
it('can redirect to login page', () => {
|
|
cy.get('nav button').contains('Login').click();
|
|
|
|
cy.url().should('contain', '/login');
|
|
|
|
cy.contains('Welcome back').should('be.visible');
|
|
|
|
cy.get('form button[type="submit"]').contains('Log In').should('be.visible');
|
|
});
|
|
|
|
it('can redirect to signup page', () => {
|
|
cy.get('nav button').contains('Sign Up').click();
|
|
|
|
cy.url().should('contain', '/signup');
|
|
|
|
cy.contains('Create a free account').should('be.visible');
|
|
|
|
cy.get('form button[type="submit"]').contains('Create Account').should('be.visible');
|
|
});
|
|
});
|