Skip to content
Snippets Groups Projects
Select Git revision
  • main default protected
  • release
  • OZG-7856_schadcode_scanner
  • ci-pipeline
  • OZG-7526-signatur-nicht-uebernommen
  • OZG-6223-zip-download-bug
  • OZG-7367-tooltip-extension
  • OZG-7023-OZG-6956-E2E-externe-Stellen
  • OZG-6238-npm-durch-pnpm-ersetzen
  • release-admin
  • release-info
  • OZG-6700-admin-feature-toggle
  • E2E-Updates
  • OZG-7047-tooltips
  • OZG-6957-e2e-fachstellen-oe-daten
  • OZG-7006-ZuarbeitAnfragen
  • temp_OZG-7027
  • unit-tests-hotfix
  • OZG-6731-POC-keycloakResourceService-with-multiple-stateResources
  • e2e-add-zufi-version
  • 2.26.0
  • 2.25.0
  • 2.24.2
  • 2.24.1
  • 2.24.0
  • 2.23.0
  • 2.22.0
  • 2.21.0
  • 2.20.0
  • 2.21.0-SNAPSHOT
  • 2.19.0
  • 2.18.0
  • 2.17.1
  • 1.3.0
  • release-admin-1.3.0
  • release-info-1.3.0
  • 2.17.0
  • 2.16.0
  • 2.15.0
  • release-admin-1.1.0
40 results

user-profile-current-user-icon.e2e-spec.ts

Blame
  • user-profile-current-user-icon.e2e-spec.ts 1.51 KiB
    import { CurrentUserProfileE2EComponent } from "apps/goofy-e2e/src/components/user-profile/current-user-profile.component.e2e";
    import { UserE2E } from "apps/goofy-e2e/src/model/user";
    import { HeaderE2EComponent } from "apps/goofy-e2e/src/page-objects/header.po";
    import { MainPage, waitForSpinnerToDisappear } from "apps/goofy-e2e/src/page-objects/main.po";
    import { dropCollections } from "apps/goofy-e2e/src/support/cypress-helper";
    import { exist, haveText } from "apps/goofy-e2e/src/support/cypress.util";
    import { getUserManagerUserSabine, getUserSabine, initUsermanagerUsers, loginAsSabine } from "apps/goofy-e2e/src/support/user-util";
    
    describe('Current User Profile', () => {
    	const mainPage: MainPage = new MainPage();
    
    	const header: HeaderE2EComponent = mainPage.getHeader();
    	const currentUserProfile: CurrentUserProfileE2EComponent = header.getCurrentUserProfile();
    
    	const userSabine: UserE2E = getUserSabine();
    
    	describe('for sabine', () => {
    
    		before(() => {
    			initUsermanagerUsers([getUserManagerUserSabine()]);
    
    			loginAsSabine();
    
    			waitForSpinnerToDisappear();
    			exist(header.getRoot());
    		})
    
    		after(() => {
    			dropCollections();
    		})
    
    		it('should show current user profile', () => {
    			exist(currentUserProfile.getRoot());
    		})
    
    		it('should show assigned icon', () => {
    			exist(currentUserProfile.getUserProfile().getIconContainer().getAssignedIcon());
    		})
    
    		it('should show initials', () => {
    			haveText(currentUserProfile.getUserProfile().getIconContainer().getAssignedIcon(), userSabine.initials)
    		})
    	})
    })