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

OZG-6780 add test structure for user tab

parent 89e00c24
No related branches found
No related tags found
No related merge requests found
export class PostfachE2EComponent {
private readonly benutzerTabelle: string = '';
private readonly benutzerHinzufuegenButton: string = '';
public getUserTable(): any {
return cy.getTestElement(this.benutzerTabelle);
}
public getHinzufuegenButton(): Cypress.Chainable<Element> {
return cy.getTestElement(this.benutzerHinzufuegenButton);
}
public addUser(): void {
this.getHinzufuegenButton().click();
}
public tableContains(compare: string): void {}
}
import { getUserAriane, loginByUi } from 'apps/admin-e2e/src/support/user-util';
import { PostfachE2EComponent } from '../../components/postfach/postfach.e2e.component';
import { UserE2E } from '../../model/user';
import { HeaderE2EComponent } from '../../page-objects/header.po';
import { MainPage, waitForSpinnerToDisappear } from '../../page-objects/main.po';
import { exist } from '../../support/cypress.util';
describe('Benutzer und Rollen', () => {
const user: UserE2E = getUserAriane();
const mainPage: MainPage = new MainPage();
const header: HeaderE2EComponent = mainPage.getHeader();
const postfachTab: PostfachE2EComponent = new PostfachE2EComponent();
before(() => {
//loginAsAriane();
});
it('login as Ariane', () => {
loginByUi(user);
});
it('should show Benutzer tab', () => {
waitForSpinnerToDisappear();
//klick auf Benutzer tab
//Benutzer hinzufügen Button ist sichtbar
//Tabelle ist sichtbar
});
it('should show existing users in table', () => {
//Inhalt der Tabelle kontrollieren
});
it('should logout', () => {
header.getCurrentUserProfile().logout();
exist(cy.get('#kc-login'));
});
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment