Skip to content

Commit

Permalink
Merge "[FIX] sap.m.Page: ACC automation tests improvements"
Browse files Browse the repository at this point in the history
  • Loading branch information
Elena Nikolova authored and Gerrit Code Review committed Jan 31, 2025
2 parents dc6d583 + b5adc34 commit 64ee353
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/sap.m/test/sap/m/acc/Page.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ sap.ui.define([
"sap/m/Label",
"sap/m/Page",
"sap/m/PageAccessibleLandmarkInfo",
"sap/ui/core/AccessibleLandmarkRole",
"sap/m/Toolbar",
"sap/m/ToolbarSpacer"
], function(App, CheckBox, Input, Label, Page, PageAccessibleLandmarkInfo, Toolbar, ToolbarSpacer) {
], function(App, CheckBox, Input, Label, Page, PageAccessibleLandmarkInfo, AccessibleLandmarkRole, Toolbar, ToolbarSpacer) {
"use strict";

var oApp = new App("myApp", {
Expand All @@ -32,7 +33,16 @@ sap.ui.define([
}).addStyleClass("customLabel"),

oPage = new Page("page", {
landmarkInfo: new PageAccessibleLandmarkInfo(),
landmarkInfo: new PageAccessibleLandmarkInfo({
headerRole: AccessibleLandmarkRole.Banner,
headerLabel: "Header label from LandmarkInfo",
rootRole: AccessibleLandmarkRole.Region,
rootLabel: "Root label from LandmarkInfo",
contentRole: AccessibleLandmarkRole.Main,
contentLabel: "Content label from LandmarkInfo",
footerRole: AccessibleLandmarkRole.ContentInfo,
footerLabel: "Footer label from LandmarkInfo"
}),
title: "Page Accessibility Test Page",
content: [
oLabel,
Expand Down

0 comments on commit 64ee353

Please sign in to comment.