Skip to content
Snippets Groups Projects
Commit 8f9608b0 authored by OZGCloud's avatar OZGCloud
Browse files

Merge remote-tracking branch 'origin/master' into OZG-5665-xDomea-Bescheid-Dateien-Download

parents dbb9326c 512b4505
No related branches found
No related tags found
No related merge requests found
Showing
with 155 additions and 150 deletions
import { nxE2EPreset } from '@nx/cypress/plugins/cypress-preset'
import { defineConfig } from 'cypress'
import { nxE2EPreset } from '@nx/cypress/plugins/cypress-preset';
import { defineConfig } from 'cypress';
export default defineConfig({
e2e: nxE2EPreset(__filename, { cypressDir: 'src' })
})
e2e: nxE2EPreset(__filename, { cypressDir: 'src' }),
});
import { getGreeting } from '../support/app.po'
import { getGreeting } from '../support/app.po';
describe('admin-e2e', () => {
beforeEach(() => cy.visit('/'))
beforeEach(() => cy.visit('/'));
it('should display welcome message', () => {
// Custom command example, see `../support/commands.ts` file
cy.login('my-email@something.com', 'myPassword')
cy.login('my-email@something.com', 'myPassword');
// Function helper example, see `../support/app.po.ts` file
getGreeting().contains(/Welcome/)
})
})
getGreeting().contains(/Welcome/);
});
});
export const getGreeting = () => cy.get('h1')
export const getGreeting = () => cy.get('h1');
......@@ -14,14 +14,14 @@
declare namespace Cypress {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
interface Chainable<Subject> {
login(email: string, password: string): void
login(email: string, password: string): void;
}
}
// -- This is a parent command --
Cypress.Commands.add('login', (email, password) => {
console.log('Custom command example: Login', email, password)
})
console.log('Custom command example: Login', email, password);
});
//
// -- This is a child command --
// Cypress.Commands.add("drag", { prevSubject: 'element'}, (subject, options) => { ... })
......
......@@ -14,4 +14,4 @@
// ***********************************************************
// Import commands.ts using ES2015 syntax:
import './commands'
import './commands';
/* eslint-disable */
const esModules: string[] = ['@keycloak/keycloak-admin-client', 'url-join', 'url-template', 'camelize-ts'];
const esModules: string[] = [
'@keycloak/keycloak-admin-client',
'url-join',
'url-template',
'camelize-ts',
];
export default {
displayName: 'admin',
preset: '../../jest.preset.js',
......
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { AppComponent } from './app.component';
import { ApiRootLinkRel, ApiRootResource, ApiRootService } from '@alfa-client/api-root-shared';
import {
HasLinkPipe,
createEmptyStateResource,
createStateResource,
} from '@alfa-client/tech-shared';
import {
Mock,
existsAsHtmlElement,
getElementFromFixture,
mock,
Mock,
notExistsAsHtmlElement,
} from '@alfa-client/test-utils';
import { ApiRootLinkRel, ApiRootResource, ApiRootService } from '@alfa-client/api-root-shared';
import { getDataTestIdOf } from 'libs/tech-shared/test/data-test';
import {
createEmptyStateResource,
createStateResource,
HasLinkPipe,
} from '@alfa-client/tech-shared';
import { of } from 'rxjs';
import { createApiRootResource } from 'libs/api-root-shared/test/api-root';
import { MockComponent } from 'ng-mocks';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { Router } from '@angular/router';
import { NavigationComponent } from 'libs/admin-settings/src/lib/navigation/navigation.component';
import { RouterTestingModule } from '@angular/router/testing';
import { AuthenticationService } from 'authentication';
import { NavigationComponent } from 'libs/admin-settings/src/lib/navigation/navigation.component';
import { createApiRootResource } from 'libs/api-root-shared/test/api-root';
import { getDataTestIdOf } from 'libs/tech-shared/test/data-test';
import { MockComponent } from 'ng-mocks';
import { of } from 'rxjs';
import { UserProfileButtonContainerComponent } from '../common/user-profile-button-container/user-profile.button-container.component';
import { UnavailablePageComponent } from '../pages/unavailable/unavailable-page/unavailable-page.component';
import { AppComponent } from './app.component';
describe('AppComponent', () => {
let component: AppComponent;
......
import { ApiRootLinkRel, ApiRootResource, ApiRootService } from '@alfa-client/api-root-shared';
import { Component, OnInit } from '@angular/core';
import { Observable } from 'rxjs';
import { StateResource } from '@alfa-client/tech-shared';
import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { AuthenticationService } from 'libs/authentication/src/lib/authentication.service';
import { Observable } from 'rxjs';
@Component({
selector: 'app-root',
......
import { Route } from '@angular/router';
import { PostfachPageComponent } from '../pages/postfach/postfach-page/postfach-page.component';
import { OrganisationseinheitPageComponent } from '../pages/organisationseinheit/organisationseinheit-page/organisationseinheit-page.component';
import { PostfachPageComponent } from '../pages/postfach/postfach-page/postfach-page.component';
export const appRoutes: Route[] = [
{
......
......@@ -6,9 +6,9 @@ import {
} from '@alfa-client/test-utils';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { UserProfileButtonContainerComponent } from './user-profile.button-container.component';
import { getDataTestIdOf } from 'libs/tech-shared/test/data-test';
import { AuthenticationService } from 'authentication';
import { getDataTestIdOf } from 'libs/tech-shared/test/data-test';
import { UserProfileButtonContainerComponent } from './user-profile.button-container.component';
describe('UserProfileButtonContainerComponent', () => {
let component: UserProfileButtonContainerComponent;
......
......@@ -27,7 +27,7 @@
export const environment = {
production: false,
environmentUrl: ''
environmentUrl: '',
};
/*
......
import { loadEnvironment } from '@alfa-client/environment-shared';
import { enableProdMode } from '@angular/core';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './app/app.module';
import { isNil } from 'lodash-es';
import { AppModule } from './app/app.module';
import { environment } from './environments/environment';
loadEnvironment(environment.environmentUrl).then((env) => {
......
......@@ -23,7 +23,7 @@
#
apiVersion: v1
appVersion: "1.0"
appVersion: '1.0'
description: A Helm chart for Admin Client
name: admin-client
version: 0.0.0-MANAGED-BY-JENKINS
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment