mirror of
https://github.com/abhinavxd/libredesk.git
synced 2025-11-03 13:33:32 +00:00
fix cypress test
This commit is contained in:
@@ -6,18 +6,28 @@ describe('Login Component', () => {
|
||||
cy.visit('/')
|
||||
|
||||
// Mock the API response for OIDC providers
|
||||
cy.intercept('GET', '**/api/v1/oidc/enabled', {
|
||||
cy.intercept('GET', '**/api/v1/config', {
|
||||
statusCode: 200,
|
||||
body: {
|
||||
data: [
|
||||
data: {
|
||||
"app.favicon_url": "http://localhost:9000/favicon.ico",
|
||||
"app.lang": "en",
|
||||
"app.logo_url": "http://localhost:9000/logo.png",
|
||||
"app.site_name": "Libredesk",
|
||||
"sso_providers": [
|
||||
{
|
||||
id: 1,
|
||||
name: 'Google',
|
||||
logo_url: 'https://example.com/google-logo.png',
|
||||
disabled: false
|
||||
"client_id": "xx",
|
||||
"enabled": true,
|
||||
"id": 1,
|
||||
"logo": "/images/google-logo.png",
|
||||
"name": "asdas",
|
||||
"provider": "Google",
|
||||
"provider_url": "https://accounts.google.com",
|
||||
"redirect_uri": "http://localhost:9000/api/v1/oidc/1/finish"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}).as('getOIDCProviders')
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user