ci: cypres test setup(#274)

* 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
This commit is contained in:
Rotimi Best
2024-04-20 04:39:16 +01:00
committed by GitHub
parent 4f9844bdd2
commit a95be6d620
19 changed files with 827 additions and 65 deletions
@@ -0,0 +1,32 @@
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');
});
});