Change testgroups to remove whitespaces
Affected: - nightly/test_cluster_workflows - nightly/test_deployment_history Closes-bug: #1672671 Change-Id: If55cff67e1707c0ff02d9bb2da1ff441a9d57163
This commit is contained in:
parent
e5df777d2d
commit
c0c37ba4da
@ -58,7 +58,8 @@ registerSuite(() => {
|
||||
.then(() => clusterPage.goToTab('Workflows'))
|
||||
.assertElementAppears(workflowTab, 5000, '"Workflows" tab appears');
|
||||
},
|
||||
'Check that default "Workflow" is not avaliable as deployment mode'() {
|
||||
wfDefaultNotAvailable() {
|
||||
// Check that default "Workflow" is not avaliable as deployment mode
|
||||
var deployModeMenu = 'ul.dropdown-menu';
|
||||
|
||||
return this.remote
|
||||
@ -74,7 +75,8 @@ registerSuite(() => {
|
||||
error);
|
||||
});
|
||||
},
|
||||
'Check that "Workflows" tab is worked'() {
|
||||
wfTab() {
|
||||
// Check that "Workflows" tab is worked
|
||||
var workflowTitle = workflowTab + 'div.title';
|
||||
var tableHeader = workflowTable + 'thead';
|
||||
|
||||
@ -105,7 +107,8 @@ registerSuite(() => {
|
||||
.assertElementExists(tableRow + ':last-child ' + deleteGraphButton,
|
||||
'User can delete default cluster graph');
|
||||
},
|
||||
'Check "Workflows" tab support filtering'() {
|
||||
wfFiltering() {
|
||||
// Check "Workflows" tab support filtering
|
||||
var filtersPane = toolbar + 'div.filters ';
|
||||
var graphTypeButton = filtersPane + 'div.filter-by-graph_type button';
|
||||
var graphLevelButton = filtersPane + 'div.filter-by-graph_level button';
|
||||
@ -152,7 +155,8 @@ registerSuite(() => {
|
||||
.assertElementsExist(tableRow, 3, 'Table includes release- and cluster-level default ' +
|
||||
'workflows after filter reset');
|
||||
},
|
||||
'Check that user can upload new custom Graph'() {
|
||||
wfUploadCustom() {
|
||||
// Check that user can upload new custom Graph
|
||||
var dialogUploadBody = 'div.upload-graph-form ';
|
||||
var dialogUploadError = dialogUploadBody + 'div.has-error span.help-block';
|
||||
|
||||
@ -190,7 +194,8 @@ registerSuite(() => {
|
||||
.assertElementContainsText(tableRow + ':nth-child(5)', 'Environment',
|
||||
'New graph includes cluster-level for just uploaded workflow');
|
||||
},
|
||||
'Check that custom Workflow can be executed'() {
|
||||
wfExecute() {
|
||||
// Check that custom Workflow can be executed
|
||||
this.timeout = 75000;
|
||||
|
||||
var progress = 'div.dashboard-tab div.progress';
|
||||
@ -234,7 +239,8 @@ registerSuite(() => {
|
||||
.assertElementContainsText(runWorkflowButton, 'Run Workflow on 2 Nodes',
|
||||
'User can run custom graph for operational cluster');
|
||||
},
|
||||
'Check "Workflows" nodes selection dialog supports Quick Search, Sorting and Filtering'() {
|
||||
wfSelectNodes() {
|
||||
// Check "Workflows" nodes selection dialog supports Quick Search, Sorting and Filtering
|
||||
this.timeout = 45000;
|
||||
|
||||
var deepCheck = [controllerName, computeName, ['input[name="error"]']];
|
||||
@ -243,7 +249,8 @@ registerSuite(() => {
|
||||
.then(() => clusterPage.goToTab('Dashboard'))
|
||||
.then(() => dashboardLib.selectNodes('Custom Workflow', 1, 1, 1, 0, deepCheck));
|
||||
},
|
||||
'Check that user can delete Workflow'() {
|
||||
wfDelete() {
|
||||
// Check that user can delete Workflow
|
||||
var tableRowLast = tableRow + ':last-child ';
|
||||
var confirmationForm = 'div.confirmation-form ';
|
||||
var deleteWorkflow = 'div.modal-footer button.remove-graph-btn';
|
||||
|
@ -85,7 +85,8 @@ registerSuite(() => {
|
||||
.then((nodeName) => {controllerName = nodeName;})
|
||||
.end();
|
||||
},
|
||||
'Check "History" tab before deployment'() {
|
||||
historyBeforeDeployment() {
|
||||
// Check "History" tab before deployment
|
||||
return this.remote
|
||||
.then(() => clusterPage.goToTab('History'))
|
||||
|
||||
@ -99,7 +100,8 @@ registerSuite(() => {
|
||||
.assertElementMatchesRegExp(historyAlert, /No deployment finished yet./i,
|
||||
'Alert message is correct');
|
||||
},
|
||||
'Check "History" tab after first deployment'() {
|
||||
historyAfterFirstDeployment() {
|
||||
// Check "History" tab after first deployment
|
||||
this.timeout = 70000;
|
||||
|
||||
return this.remote
|
||||
@ -149,7 +151,8 @@ registerSuite(() => {
|
||||
.clickByCssSelector(timelineViewButton)
|
||||
.assertElementsAppear(timelinePane, 5000, '"Timeline pane" appears');
|
||||
},
|
||||
'Check that "History timeline" progress indicator is worked'() {
|
||||
historyTimelineProgress() {
|
||||
// Check that "History timeline" progress indicator is worked
|
||||
this.timeout = 75000;
|
||||
|
||||
var currentTimeMarkerPosition;
|
||||
@ -193,7 +196,8 @@ registerSuite(() => {
|
||||
|
||||
.assertElementDisappears(progress, 30000, 'Deployment is finished');
|
||||
},
|
||||
'Check "History" tab after third cluster deployment'() {
|
||||
historyAfterThirdDeployment() {
|
||||
// Check "History" tab after third cluster deployment
|
||||
this.timeout = 80000;
|
||||
|
||||
var thirdDeployDate;
|
||||
@ -267,7 +271,8 @@ registerSuite(() => {
|
||||
activeHistoryPoint + ':hover',
|
||||
greenColor, blueColor, blueColor));
|
||||
},
|
||||
'Check that "Deployment History" results are saved'() {
|
||||
historyResultsSaved() {
|
||||
// Check that "Deployment History" results are saved
|
||||
this.timeout = 60000;
|
||||
|
||||
var activeHistoryPoint = historyPoint + '.active';
|
||||
@ -320,7 +325,8 @@ registerSuite(() => {
|
||||
'other page');
|
||||
return chain;
|
||||
},
|
||||
'Check that "Timeline View" is worked'() {
|
||||
historyTimelineView() {
|
||||
// Check that "Timeline View" is worked
|
||||
this.timeout = 60000;
|
||||
|
||||
var nodeNameColumn = timelinePane + 'div.node-names-column ';
|
||||
@ -354,7 +360,8 @@ registerSuite(() => {
|
||||
.then(() => genericLib.moveCursorTo(historyPoint))
|
||||
.assertElementDisappears(taskPopover, 3000, 'Node task popover disappears');
|
||||
},
|
||||
'Check that "Table View" is worked'() {
|
||||
historyTableView() {
|
||||
// Check that "Table View" is worked
|
||||
var currentTime = firstDeployDate.split(' ')[0];
|
||||
var currentDate = firstDeployDate.split(' ')[1];
|
||||
var tableHeader = tablePane + 'thead th';
|
||||
@ -397,7 +404,8 @@ registerSuite(() => {
|
||||
.assertElementContainsText(tableBodyRow + ' td:nth-child(5)', currentDate,
|
||||
'Task start date the same as real via "Table View"');
|
||||
},
|
||||
'Check that "Timeline View" data equals to "Table View" data'() {
|
||||
historyTimelineEqulsTableView() {
|
||||
// Check that "Timeline View" data equals to "Table View" data
|
||||
this.timeout = 60000;
|
||||
|
||||
var filterByNode = 'div.filters div.filter-by-node_id button';
|
||||
@ -420,7 +428,8 @@ registerSuite(() => {
|
||||
.clickByCssSelector('.btn-reset-filters') // .discard-changes-icon
|
||||
.clickByCssSelector('.btn-filters');
|
||||
},
|
||||
'Check "History" tab support filtering'() {
|
||||
historyFiltering() {
|
||||
// Check "History" tab support filtering
|
||||
var filtersPane = 'div.filters ';
|
||||
var taskNameButton = filtersPane + 'div.filter-by-task_name button';
|
||||
var nodeNameButton = filtersPane + 'div.filter-by-node_id button';
|
||||
@ -464,7 +473,8 @@ registerSuite(() => {
|
||||
.clickByCssSelector(resetFilter).sleep(1000)
|
||||
.assertElementsExist(tableBodyRow, 8, '8 node tasks are observed after filter resetting');
|
||||
},
|
||||
'Check that "Previous Deployments" dropdown is worked'() {
|
||||
historyPrevDropdown() {
|
||||
// Check that "Previous Deployments" dropdown is worked
|
||||
this.timeout = 300000;
|
||||
|
||||
var lastHistoryPoint = historyPoint + ':last-child';
|
||||
|
Loading…
Reference in New Issue
Block a user