1 import { ConfigurationPageHelper } from './configuration.po';
3 describe('Configuration page', () => {
4 const configuration = new ConfigurationPageHelper();
8 Cypress.Cookies.preserveOnce('token');
9 configuration.navigateTo();
12 describe('breadcrumb test', () => {
13 it('should open and show breadcrumb', () => {
14 configuration.expectBreadcrumbText('Configuration');
18 describe('fields check', () => {
20 configuration.getExpandCollapseElement().click();
23 it('should check that details table opens (w/o tab header)', () => {
24 configuration.getStatusTables().should('be.visible');
25 configuration.getTabsCount().should('eq', 1);
26 configuration.getTabText(0).should('eq', 'Details');
30 describe('edit configuration test', () => {
31 const configName = 'client_cache_size';
34 configuration.clearTableSearchInput();
38 configuration.configClear(configName);
41 it('should click and edit a configuration and results should appear in the table', () => {
53 it('should show only modified configurations', () => {
54 configuration.filterTable('Modified', 'yes');
55 configuration.getTableFoundCount().should('eq', 1);
58 it('should hide all modified configurations', () => {
59 configuration.filterTable('Modified', 'no');
60 configuration.getTableFoundCount().should('gt', 1);