Skip to content
Snippets Groups Projects
Commit fb32b154 authored by Cord Westhoff's avatar Cord Westhoff
Browse files

OZG-7405 OZG-7416 fix E2E for new popup buttons

parent a5949555
Branches
Tags
1 merge request!16OZG-7405 OZG-7416 fix E2E for new popup buttons
......@@ -24,6 +24,7 @@
export class HelpMenuE2EComponent {
private readonly root: string = 'help-menu';
private readonly button: string = 'help-menu-button';
private readonly dropdownButton: string ='dropdown-button';
private readonly openDocumentationButton: string = 'open-documentation-button';
public getRoot() {
......@@ -34,6 +35,10 @@ export class HelpMenuE2EComponent {
return this.getRoot().getTestElementWithOid(this.button);
}
public getDropdownButton() {
return this.getRoot().getTestElement(this.dropdownButton);
}
public getOpenDocumentationButton() {
return this.getRoot().getTestElementWithOid(this.openDocumentationButton);
}
......
......@@ -28,6 +28,7 @@ export class CurrentUserProfileE2EComponent {
private readonly locatorLogoutButton: string = 'logout-button';
private readonly locatorRoot: string = 'current-user';
private readonly dropdownButton: string = 'dropdown-button';
public getRoot() {
return cy.getTestElement(this.locatorRoot);
......@@ -46,6 +47,10 @@ export class CurrentUserProfileE2EComponent {
return cy.getTestElement(this.locatorUserIconButton);
}
public getDropdownButton() {
return this.getRoot().getTestElement(this.dropdownButton);
}
public getLogoutButton() {
return cy.getTestElement(this.locatorLogoutButton);
}
......
......@@ -94,7 +94,7 @@ describe('VorgangList Page', () => {
it('should focus help menu icon', () => {
pressTab();
isKeyboardFocused(header.getHelpMenu().getButton());
isOdsFocused(header.getHelpMenu().getDropdownButton());
});
it('should focus settings icon', () => {
......@@ -106,7 +106,7 @@ describe('VorgangList Page', () => {
it('should focus user icon', () => {
pressTab();
isKeyboardFocused(header.getCurrentUserProfile().getUserIconButton());
isOdsFocused(header.getCurrentUserProfile().getDropdownButton());
});
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment