1 import { PoolPageHelper } from '../pools/pools.po';
2 import { LogsPageHelper } from './logs.po';
4 describe('Logs page', () => {
5 const logs = new LogsPageHelper();
6 const pools = new PoolPageHelper();
8 const poolname = 'e2e_logs_test_pool';
9 const today = new Date();
10 let hour = today.getHours();
14 const minute = today.getMinutes();
20 describe('breadcrumb and tab tests', () => {
25 it('should open and show breadcrumb', () => {
26 logs.expectBreadcrumbText('Logs');
29 it('should show three tabs', () => {
30 logs.getTabsCount().should('eq', 3);
33 it('should show cluster logs tab at first', () => {
34 logs.getTabText(0).should('eq', 'Cluster Logs');
37 it('should show audit logs as a second tab', () => {
38 logs.getTabText(1).should('eq', 'Audit Logs');
41 it('should show daemon logs as a third tab', () => {
42 logs.getTabText(2).should('eq', 'Daemon Logs');
46 describe('audit logs respond to pool creation and deletion test', () => {
47 it('should create pool and check audit logs reacted', () => {
48 pools.navigateTo('create');
49 pools.create(poolname, 8);
51 pools.existTableCell(poolname, true);
52 logs.checkAuditForPoolFunction(poolname, 'create', hour, minute);
55 it('should delete pool and check audit logs reacted', () => {
57 pools.delete(poolname);
58 logs.checkAuditForPoolFunction(poolname, 'delete', hour, minute);