Skip to content

Commit d1df7bf

Browse files
authored
Merge pull request #232 from queshouhui/XTAP-55439
XTAP-55439 add some mock methods for A11y axe tools
2 parents fb72dcf + ccafd4d commit d1df7bf

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

packages/web-application/src/web-client.ts

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,4 +399,31 @@ export class WebClient implements IWebApplicationClient {
399399
public getMockData(url: string) {
400400
return this.makeRequest(BrowserProxyActions.getMockData, [url]);
401401
}
402+
403+
// XTAP-55439 For A11y Testing ONLY ---start
404+
public switchToFrame(name) {
405+
return name;
406+
}
407+
408+
public switchToParentFrame() {
409+
return null as any;
410+
}
411+
412+
public getWindowHandle() {
413+
return null as any;
414+
}
415+
416+
public createWindow(windowName = '') {
417+
const handles = {handle: windowName};
418+
return Object.assign({}, handles, null);
419+
}
420+
421+
public closeWindow() {
422+
return null as any;
423+
}
424+
425+
public switchToWindow(tabId) {
426+
return tabId;
427+
}
428+
// XTAP-55439 For A11y Testing ONLY ---end
402429
}

0 commit comments

Comments
 (0)