]> git.proxmox.com Git - ceph.git/blame - ceph/src/pybind/mgr/dashboard/frontend/e2e/ui/notification.po.ts
d/control: depend on python3-yaml for ceph-mgr
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / e2e / ui / notification.po.ts
CommitLineData
9f95a23c
TL
1import { by, element } from 'protractor';
2
3import { PageHelper } from '../page-helper.po';
4
5export class NotificationSidebarPageHelper extends PageHelper {
6 getNotificatinoIcon() {
7 return element(by.css('cd-notifications a'));
8 }
9
10 getSidebar() {
11 return element(by.css('cd-notifications-sidebar'));
12 }
13
14 getTasks() {
15 return this.getSidebar().all(by.css('.card.tc_task'));
16 }
17
18 getNotifications() {
19 return this.getSidebar().all(by.css('.card.tc_notification'));
20 }
21
22 getClearNotficationsBtn() {
23 return this.getSidebar().element(by.css('button.btn-block'));
24 }
25
26 getCloseBtn() {
27 return this.getSidebar().element(by.css('button.close'));
28 }
29
30 async open() {
31 await this.waitClickableAndClick(this.getNotificatinoIcon());
32 return this.waitVisibility(this.getSidebar());
33 }
34}