mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-28 05:54:43 -04:00
refactor: replace TypeORM with knex.js
Co-authored-by: Philip Molares <philip.molares@udo.edu> Signed-off-by: Philip Molares <philip.molares@udo.edu> Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
parent
6e151c8a1b
commit
c0ce00b3f9
242 changed files with 4601 additions and 6871 deletions
|
@ -3,10 +3,10 @@
|
|||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
import type { ProviderType } from '../../src/api/config/types'
|
||||
import { ProviderType } from '../../src/api/config/types'
|
||||
import type { AuthProviderType } from '../../src/api/config/types'
|
||||
import { AuthProviderType } from '../../src/api/config/types'
|
||||
|
||||
const initLoggedOutTestWithCustomAuthProviders = (cy: Cypress.cy, enabledProviders: ProviderType[]) => {
|
||||
const initLoggedOutTestWithCustomAuthProviders = (cy: Cypress.cy, enabledProviders: AuthProviderType[]) => {
|
||||
cy.logOut()
|
||||
cy.loadConfig({
|
||||
authProviders: enabledProviders
|
||||
|
@ -48,7 +48,7 @@ describe('When logged-out ', () => {
|
|||
it('sign-in button points to login route: internal', () => {
|
||||
initLoggedOutTestWithCustomAuthProviders(cy, [
|
||||
{
|
||||
type: ProviderType.LOCAL
|
||||
type: AuthProviderType.LOCAL
|
||||
}
|
||||
])
|
||||
cy.getByCypressId('sign-in-button')
|
||||
|
@ -60,7 +60,7 @@ describe('When logged-out ', () => {
|
|||
it('sign-in button points to login route: ldap', () => {
|
||||
initLoggedOutTestWithCustomAuthProviders(cy, [
|
||||
{
|
||||
type: ProviderType.LDAP,
|
||||
type: AuthProviderType.LDAP,
|
||||
identifier: 'cy-ldap',
|
||||
providerName: 'cy LDAP'
|
||||
}
|
||||
|
@ -76,7 +76,7 @@ describe('When logged-out ', () => {
|
|||
it('sign-in button points to auth-provider', () => {
|
||||
initLoggedOutTestWithCustomAuthProviders(cy, [
|
||||
{
|
||||
type: ProviderType.OIDC,
|
||||
type: AuthProviderType.OIDC,
|
||||
identifier: 'github',
|
||||
providerName: 'GitHub',
|
||||
theme: 'github'
|
||||
|
@ -94,13 +94,13 @@ describe('When logged-out ', () => {
|
|||
it('sign-in button points to login route', () => {
|
||||
initLoggedOutTestWithCustomAuthProviders(cy, [
|
||||
{
|
||||
type: ProviderType.OIDC,
|
||||
type: AuthProviderType.OIDC,
|
||||
identifier: 'github',
|
||||
providerName: 'GitHub',
|
||||
theme: 'github'
|
||||
},
|
||||
{
|
||||
type: ProviderType.OIDC,
|
||||
type: AuthProviderType.OIDC,
|
||||
identifier: 'gitlab',
|
||||
providerName: 'GitLab',
|
||||
theme: 'gitlab'
|
||||
|
@ -117,13 +117,13 @@ describe('When logged-out ', () => {
|
|||
it('sign-in button points to login route', () => {
|
||||
initLoggedOutTestWithCustomAuthProviders(cy, [
|
||||
{
|
||||
type: ProviderType.OIDC,
|
||||
type: AuthProviderType.OIDC,
|
||||
identifier: 'github',
|
||||
providerName: 'GitHub',
|
||||
theme: 'github'
|
||||
},
|
||||
{
|
||||
type: ProviderType.LOCAL
|
||||
type: AuthProviderType.LOCAL
|
||||
}
|
||||
])
|
||||
cy.getByCypressId('sign-in-button')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue