generated from graasp/graasp-repo
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: use tanstack-router * chore: setup fixed versions in package usign npmrc * fix: add zod and login logic for external pages * fix: move to tanstack * fix: lockfile issues * fix: type issues * fix: package.json scripts with regex * fix: tests * fix: add language select and support languages * chore: cleanup * fix: update tests * fix: make changes to AuthContext * fix: email translation improvement * fix: apply review comments * fix: auth context lang and not found naming link * fix: dependencies
- Loading branch information
Showing
68 changed files
with
2,961 additions
and
1,781 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
save-prefix="" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
src/routeTree.gen.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { ACCOUNT_HOME_PATH } from '../../src/config/paths'; | ||
import { | ||
LOGIN_REQUIRED_BUTTON_ID, | ||
LOGIN_REQUIRED_TEXT_ID, | ||
} from '../../src/config/selectors'; | ||
import { SIGN_IN_PATH } from '../support/server'; | ||
|
||
describe('Redirect when not logged in', () => { | ||
beforeEach(() => { | ||
cy.setUpApi({ currentMember: null }); | ||
cy.visit(ACCOUNT_HOME_PATH); | ||
}); | ||
|
||
it('redirects to the login page when not logged in', () => { | ||
cy.wait('@getCurrentMember'); | ||
cy.get(`#${LOGIN_REQUIRED_TEXT_ID}`).should('be.visible'); | ||
cy.get(`#${LOGIN_REQUIRED_BUTTON_ID}`).click(); | ||
cy.wait('@signInRedirection'); | ||
cy.url().should('contain', `${SIGN_IN_PATH}?url=`); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.