test set scheduling ui

This commit is contained in:
Yisroel Baum 2026-08-10 20:11:09 +03:00
parent b812a4b21b
commit b7fb594c26
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
5 changed files with 262 additions and 0 deletions

View file

@ -31,6 +31,14 @@ describe('guest authentication pages', () => {
cy.location('search').should('include', 'redirect=/sets/41')
})
it('redirects guests away from protected schedule routes', () => {
cy.visit('/sets/41/schedules/new')
cy.location('pathname').should('equal', '/login')
cy.visit('/schedules/73')
cy.location('pathname').should('equal', '/login')
})
it('shows the login form and links to signup', () => {
cy.visit('/login')