1 import { PoolPageHelper } from '../pools/pools.po';
2 import { NotificationSidebarPageHelper } from './notification.po';
4 describe('Notification page', () => {
5 const notification = new NotificationSidebarPageHelper();
6 const pools = new PoolPageHelper();
7 const poolName = 'e2e_notification_pool';
11 pools.navigateTo('create');
12 pools.create(poolName, 8);
13 pools.edit_pool_pg(poolName, 4, false);
19 pools.delete(poolName);
27 it('should open notification sidebar', () => {
28 notification.getSidebar().should('not.be.visible');
30 notification.getSidebar().should('be.visible');
33 it('should display a running task', () => {
34 notification.getToast().should('not.exist');
36 // Check that running task is shown.
38 notification.getTasks().contains(poolName).should('exist');
40 // Delete pool after task is complete (otherwise we get an error).
41 notification.getTasks().contains(poolName, { timeout: 300000 }).should('not.exist');
44 it('should have notifications', () => {
46 notification.getNotifications().should('have.length.gt', 0);
49 it('should clear notifications', () => {
50 notification.getToast().should('not.exist');
52 notification.getNotifications().should('have.length.gt', 0);
53 notification.getClearNotficationsBtn().should('be.visible');
54 notification.clearNotifications();