-
Notifications
You must be signed in to change notification settings - Fork 20
/
SideBarView.ts
36 lines (33 loc) · 1.03 KB
/
SideBarView.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import { ViewContent, ViewTitlePart } from '../index.js'
import {
PageDecorator, IPageDecorator, BasePage, LocatorComponents
} from '../utils.js'
import { SideBarView as SideBarViewLocators } from '../../locators/1.73.0.js'
// eslint-disable-next-line @typescript-eslint/no-unused-vars
export interface SideBarView<T> extends IPageDecorator<typeof SideBarViewLocators> { }
/**
* Page object for the side bar view
*
* @category Sidebar
*/
@PageDecorator(SideBarViewLocators)
export class SideBarView<T> extends BasePage<T> {
/**
* @private
*/
public locatorKey = 'SideBarView' as LocatorComponents
/**
* Get the top part of the open view (contains title and possibly some buttons)
* @returns ViewTitlePart object
*/
getTitlePart (): ViewTitlePart {
return new ViewTitlePart(this.locatorMap, this)
}
/**
* Get the content part of the open view
* @returns ViewContent object
*/
getContent (): ViewContent {
return new ViewContent(this.locatorMap, this)
}
}