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

OZG-7252 update E2E test

parent 9882b9ca
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@ import { HeaderE2EComponent } from 'apps/alfa-e2e/src/page-objects/header.po';
import { MainPage, waitForSpinnerToDisappear } from 'apps/alfa-e2e/src/page-objects/main.po';
import { isKeyboardFocused, isOdsFocused } from 'apps/alfa-e2e/src/support/angular.util';
import { dropCollections, pressTab } from 'apps/alfa-e2e/src/support/cypress-helper';
import { exist, haveFocus } from 'apps/alfa-e2e/src/support/cypress.util';
import { exist, haveFocus, shouldHaveAttribute } from 'apps/alfa-e2e/src/support/cypress.util';
import { initUsermanagerUsers, loginAsSabine } from 'apps/alfa-e2e/src/support/user-util';
describe('VorgangList Page', () => {
......@@ -19,6 +19,9 @@ describe('VorgangList Page', () => {
const navigation: NavigationE2EComponent = mainPage.getNavigation();
const accTooltip: string = 'Barrierefreiheit';
const accLink: string = 'http://bam.de';
before(() => {
initUsermanagerUsers();
......@@ -58,7 +61,11 @@ describe('VorgangList Page', () => {
pressTab();
isOdsFocused(header.getAccessibilityIcon());
//get tooltip
});
it('should contain tooltip and link for Barrierefreiheit', () => {
shouldHaveAttribute(header.getAccessibilityIcon().parent(), 'tooltip', accTooltip);
shouldHaveAttribute(header.getAccessibilityIcon(), 'href', accLink);
});
it('should focus help menu icon', () => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment