Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions test/functional/apps/console/_console.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ GET _search
export default function ({ getService, getPageObjects }) {
const retry = getService('retry');
const log = getService('log');
const screenshots = getService('screenshots');
const PageObjects = getPageObjects(['common', 'console']);

describe('console app', function describeIndexTests() {
Expand All @@ -24,11 +23,9 @@ export default function ({ getService, getPageObjects }) {
});

it('should show the default request', function () {
screenshots.take('Console-help-expanded');
// collapse the help pane because we only get the VISIBLE TEXT, not the part that is scrolled
return PageObjects.console.collapseHelp()
.then(function () {
screenshots.take('Console-help-collapsed');
return retry.try(function () {
return PageObjects.console.getRequest()
.then(function (actualRequest) {
Expand All @@ -43,7 +40,6 @@ export default function ({ getService, getPageObjects }) {

return PageObjects.console.clickPlay()
.then(function () {
screenshots.take('Console-default-request');
return retry.try(function () {
return PageObjects.console.getResponse()
.then(function (actualResponse) {
Expand Down
8 changes: 0 additions & 8 deletions test/functional/apps/dashboard/_dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export default function ({ getService, getPageObjects }) {
const retry = getService('retry');
const log = getService('log');
const remote = getService('remote');
const screenshots = getService('screenshots');
const PageObjects = getPageObjects(['common', 'dashboard', 'header', 'visualize']);

describe('dashboard tab', function describeIndexTests() {
Expand All @@ -30,8 +29,6 @@ export default function ({ getService, getPageObjects }) {
});

it('should be able to add visualizations to dashboard', async function addVisualizations() {
await screenshots.take('Dashboard-no-visualizations');

// This flip between apps fixes the url so state is preserved when switching apps in test mode.
// Without this flip the url in test mode looks something like
// "http://localhost:5620/app/kibana?_t=1486069030837#/dashboard?_g=...."
Expand All @@ -43,7 +40,6 @@ export default function ({ getService, getPageObjects }) {
await PageObjects.dashboard.addVisualizations(PageObjects.dashboard.getTestVisualizationNames());

log.debug('done adding visualizations');
await screenshots.take('Dashboard-add-visualizations');
});

it('set the timepicker time to that which contains our test data', async function setTimepicker() {
Expand All @@ -60,7 +56,6 @@ export default function ({ getService, getPageObjects }) {
log.debug('now re-load previously saved dashboard');
return PageObjects.dashboard.loadSavedDashboard(dashboardName);
});
await screenshots.take('Dashboard-load-saved');
});

it('should have all the expected visualizations', function checkVisualizations() {
Expand All @@ -72,7 +67,6 @@ export default function ({ getService, getPageObjects }) {
});
})
.then(function () {
screenshots.take('Dashboard-has-visualizations');
});
});

Expand All @@ -93,7 +87,6 @@ export default function ({ getService, getPageObjects }) {
return PageObjects.dashboard.getPanelSizeData()
.then(function (panelTitles) {
log.info('visualization titles = ' + panelTitles);
screenshots.take('Dashboard-visualization-sizes');
expect(panelTitles).to.eql(visObjects);
});
});
Expand Down Expand Up @@ -306,7 +299,6 @@ export default function ({ getService, getPageObjects }) {
return retry.tryForTime(10000, async function () {
const panelTitles = await PageObjects.dashboard.getPanelSizeData();
log.info('visualization titles = ' + panelTitles.map(item => item.title));
screenshots.take('Dashboard-visualization-sizes');
expect(panelTitles.length).to.eql(visualizations.length + 1);
});
});
Expand Down
3 changes: 0 additions & 3 deletions test/functional/apps/discover/_collapse_expand.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ export default function ({ getService, getPageObjects }) {
const log = getService('log');
const esArchiver = getService('esArchiver');
const kibanaServer = getService('kibanaServer');
const screenshots = getService('screenshots');
const PageObjects = getPageObjects(['common', 'discover', 'header']);

describe('discover tab', function describeIndexTests() {
Expand Down Expand Up @@ -37,7 +36,6 @@ export default function ({ getService, getPageObjects }) {

describe('field data', function () {
it('should initially be expanded', function () {
screenshots.take('Discover-sidebar-expanded');
return PageObjects.discover.getSidebarWidth()
.then(function (width) {
log.debug('expanded sidebar width = ' + width);
Expand All @@ -48,7 +46,6 @@ export default function ({ getService, getPageObjects }) {
it('should collapse when clicked', function () {
return PageObjects.discover.toggleSidebarCollapse()
.then(function () {
screenshots.take('Discover-sidebar-collapsed');
log.debug('PageObjects.discover.getSidebarWidth()');
return PageObjects.discover.getSidebarWidth();
})
Expand Down
4 changes: 0 additions & 4 deletions test/functional/apps/discover/_discover.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ export default function ({ getService, getPageObjects }) {
const esArchiver = getService('esArchiver');
const remote = getService('remote');
const kibanaServer = getService('kibanaServer');
const screenshots = getService('screenshots');
const queryBar = getService('queryBar');
const filterBar = getService('filterBar');
const PageObjects = getPageObjects(['common', 'discover', 'header']);
Expand Down Expand Up @@ -52,7 +51,6 @@ export default function ({ getService, getPageObjects }) {

const expectedToastMessage = `Discover: Saved Data Source "${queryName1}"`;
expect(toastMessage).to.be(expectedToastMessage);
await screenshots.take('Discover-save-query-toast');

await PageObjects.header.waitForToastMessageGone();
const actualQueryNameString = await PageObjects.discover.getCurrentQueryName();
Expand All @@ -66,7 +64,6 @@ export default function ({ getService, getPageObjects }) {
await retry.try(async function () {
expect(await PageObjects.discover.getCurrentQueryName()).to.be(queryName1);
});
await screenshots.take('Discover-load-query');
});

it('should show the correct hit count', async function () {
Expand Down Expand Up @@ -212,7 +209,6 @@ export default function ({ getService, getPageObjects }) {
it('should show "no results"', async () => {
const isVisible = await PageObjects.discover.hasNoResults();
expect(isVisible).to.be(true);
await screenshots.take('Discover-no-results');
});

it('should suggest a new time range is picked', async () => {
Expand Down
4 changes: 0 additions & 4 deletions test/functional/apps/discover/_field_data.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ export default function ({ getService, getPageObjects }) {
const retry = getService('retry');
const esArchiver = getService('esArchiver');
const kibanaServer = getService('kibanaServer');
const screenshots = getService('screenshots');
const PageObjects = getPageObjects(['common', 'header', 'discover']);

describe('discover app', function describeIndexTests() {
Expand Down Expand Up @@ -34,7 +33,6 @@ export default function ({ getService, getPageObjects }) {
return retry.try(function tryingForTime() {
return PageObjects.discover.getHitCount()
.then(function compareData(hitCount) {
screenshots.take('Discover-field-data');
expect(hitCount).to.be(expectedHitCount);
});
});
Expand Down Expand Up @@ -207,7 +205,6 @@ export default function ({ getService, getPageObjects }) {
return retry.try(function tryingForTime() {
return PageObjects.discover.getDocTableIndex(1)
.then(function (rowData) {
screenshots.take('Discover-sort-down');
expect(rowData).to.be(ExpectedDoc);
});
});
Expand All @@ -222,7 +219,6 @@ export default function ({ getService, getPageObjects }) {
return PageObjects.header.getToastMessage();
})
.then(function (toastMessage) {
screenshots.take('Discover-syntax-error-toast');
expect(toastMessage).to.contain(expectedError);
})
.then(function () {
Expand Down
4 changes: 0 additions & 4 deletions test/functional/apps/discover/_shared_links.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ export default function ({ getService, getPageObjects }) {
const log = getService('log');
const esArchiver = getService('esArchiver');
const kibanaServer = getService('kibanaServer');
const screenshots = getService('screenshots');
const PageObjects = getPageObjects(['common', 'discover', 'header']);

describe('shared links', function describeIndexTests() {
Expand Down Expand Up @@ -61,7 +60,6 @@ export default function ({ getService, getPageObjects }) {
const expectedCaption = 'Share saved';
return PageObjects.discover.clickShare()
.then(function () {
screenshots.take('Discover-share-link');
return PageObjects.discover.getShareCaption();
})
.then(function (actualCaption) {
Expand Down Expand Up @@ -91,7 +89,6 @@ export default function ({ getService, getPageObjects }) {
return PageObjects.header.getToastMessage();
})
.then(function (toastMessage) {
screenshots.take('Discover-copy-to-clipboard-toast');
expect(toastMessage).to.match(expectedToastMessage);
})
.then(function () {
Expand All @@ -105,7 +102,6 @@ export default function ({ getService, getPageObjects }) {
return PageObjects.discover.clickShortenUrl()
.then(function () {
return retry.try(function tryingForTime() {
screenshots.take('Discover-shorten-url-button');
return PageObjects.discover.getSharedUrl()
.then(function (actualUrl) {
expect(actualUrl).to.match(re);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ export default function ({ getService, getPageObjects }) {
const remote = getService('remote');
const log = getService('log');
const retry = getService('retry');
const screenshots = getService('screenshots');
const PageObjects = getPageObjects(['settings', 'common']);

describe('creating and deleting default index', function describeIndexTests() {
Expand All @@ -31,7 +30,6 @@ export default function ({ getService, getPageObjects }) {
it('should have index pattern in page header', async function () {
const indexPageHeading = await PageObjects.settings.getIndexPageHeading();
const patternName = await indexPageHeading.getVisibleText();
screenshots.take('Settings-indices-new-index-pattern');
expect(patternName).to.be('logstash-*');
});

Expand Down Expand Up @@ -77,7 +75,6 @@ export default function ({ getService, getPageObjects }) {
const expectedAlertText = 'Are you sure you want to remove this index pattern?';
return PageObjects.settings.removeIndexPattern()
.then(function (alertText) {
screenshots.take('Settings-indices-confirm-remove-index-pattern');
expect(alertText).to.be(expectedAlertText);
});
});
Expand Down
3 changes: 0 additions & 3 deletions test/functional/apps/management/_index_pattern_popularity.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import expect from 'expect.js';
export default function ({ getService, getPageObjects }) {
const kibanaServer = getService('kibanaServer');
const log = getService('log');
const screenshots = getService('screenshots');
const PageObjects = getPageObjects(['settings', 'common']);

describe('index result popularity', function describeIndexTests() {
Expand Down Expand Up @@ -52,7 +51,6 @@ export default function ({ getService, getPageObjects }) {
const popularity = await PageObjects.settings.getPopularity();
log.debug('popularity = ' + popularity);
expect(popularity).to.be('1');
screenshots.take('Settings-indices-result-popularity-updated');
});

it('should be reset on cancel', async function () {
Expand All @@ -74,7 +72,6 @@ export default function ({ getService, getPageObjects }) {
const popularity = await PageObjects.settings.getPopularity();
log.debug('popularity = ' + popularity);
expect(popularity).to.be('1');
screenshots.take('Settings-indices-result-popularity-saved');
});
}); // end 'change popularity'
}); // end index result popularity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import expect from 'expect.js';
export default function ({ getService, getPageObjects }) {
const kibanaServer = getService('kibanaServer');
const retry = getService('retry');
const screenshots = getService('screenshots');
const PageObjects = getPageObjects(['settings', 'common']);

describe('index result field sort', function describeIndexTests() {
Expand Down Expand Up @@ -51,7 +50,6 @@ export default function ({ getService, getPageObjects }) {
return col.selector();
})
.then(function (rowText) {
screenshots.take(`Settings-indices-column-${col.heading}-sort-ascending`);
expect(rowText).to.be(col.first);
});
});
Expand All @@ -65,7 +63,6 @@ export default function ({ getService, getPageObjects }) {
return col.selector();
})
.then(function (rowText) {
screenshots.take(`Settings-indices-column-${col.heading}-sort-descending`);
expect(rowText).to.be(col.last);
});
});
Expand Down Expand Up @@ -109,7 +106,6 @@ export default function ({ getService, getPageObjects }) {
for (let pageNum = 1; pageNum <= LAST_PAGE_NUMBER; pageNum += 1) {
await PageObjects.settings.goToPage(pageNum);
const pageFieldNames = await retry.tryMethod(PageObjects.settings, 'getFieldNames');
await screenshots.take(`Settings-indexed-fields-page-${pageNum}`);

if (pageNum === LAST_PAGE_NUMBER) {
expect(pageFieldNames).to.have.length(EXPECTED_LAST_PAGE_COUNT);
Expand Down
3 changes: 0 additions & 3 deletions test/functional/apps/management/_scripted_fields.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export default function ({ getService, getPageObjects }) {
const log = getService('log');
const remote = getService('remote');
const retry = getService('retry');
const screenshots = getService('screenshots');
const PageObjects = getPageObjects(['common', 'header', 'settings', 'visualize', 'discover']);

describe('scripted fields', () => {
Expand Down Expand Up @@ -103,7 +102,6 @@ export default function ({ getService, getPageObjects }) {
await log.debug('getDataTableData = ' + data.split('\n'));
await log.debug('data=' + data);
await log.debug('data.length=' + data.length);
await screenshots.take('Visualize-vertical-bar-chart');
expect(data.trim().split('\n')).to.eql(expectedChartValues);
});
});
Expand Down Expand Up @@ -170,7 +168,6 @@ export default function ({ getService, getPageObjects }) {
await log.debug('getDataTableData = ' + data.split('\n'));
await log.debug('data=' + data);
await log.debug('data.length=' + data.length);
await screenshots.take('Visualize-vertical-bar-chart');
expect(data.trim().split('\n')).to.eql(expectedChartValues);
});
});
Expand Down
2 changes: 0 additions & 2 deletions test/functional/apps/status_page/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import expect from 'expect.js';

export default function ({ getService, getPageObjects }) {
const retry = getService('retry');
const screenshots = getService('screenshots');
const testSubjects = getService('testSubjects');
const PageObjects = getPageObjects(['common']);

Expand All @@ -14,7 +13,6 @@ export default function ({ getService, getPageObjects }) {
it('should show the kibana plugin as ready', async function () {
await retry.tryForTime(6000, async () => {
const text = await testSubjects.getVisibleText('statusBreakdown');
screenshots.take('Status');
expect(text.indexOf('plugin:kibana')).to.be.above(-1);
});
});
Expand Down
3 changes: 0 additions & 3 deletions test/functional/apps/visualize/_area_chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import expect from 'expect.js';
export default function ({ getService, getPageObjects }) {
const log = getService('log');
const retry = getService('retry');
const screenshots = getService('screenshots');
const PageObjects = getPageObjects(['common', 'visualize', 'header', 'settings']);

describe('visualize app', function describeIndexTests() {
Expand Down Expand Up @@ -86,7 +85,6 @@ export default function ({ getService, getPageObjects }) {
return PageObjects.visualize.saveVisualization(vizName1)
.then(function (message) {
log.debug('Saved viz message = ' + message);
screenshots.take('Visualize-area-chart-save-toast');
expect(message).to.be('Visualization Editor: Saved Visualization \"' + vizName1 + '\"');
})
.then(function testVisualizeWaitForToastMessageGone() {
Expand Down Expand Up @@ -135,7 +133,6 @@ export default function ({ getService, getPageObjects }) {
.then(function (paths) {
log.debug('expectedAreaChartData = ' + expectedAreaChartData);
log.debug('actual chart data = ' + paths);
screenshots.take('Visualize-area-chart');
expect(paths).to.eql(expectedAreaChartData);
});
});
Expand Down
2 changes: 0 additions & 2 deletions test/functional/apps/visualize/_chart_types.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import expect from 'expect.js';

export default function ({ getService, getPageObjects }) {
const log = getService('log');
const screenshots = getService('screenshots');
const PageObjects = getPageObjects(['common', 'visualize']);

describe('visualize app', function describeIndexTests() {
Expand Down Expand Up @@ -40,7 +39,6 @@ export default function ({ getService, getPageObjects }) {
.then(function testChartTypes(chartTypes) {
log.debug('returned chart types = ' + chartTypes);
log.debug('expected chart types = ' + expectedChartTypes);
screenshots.take('Visualize-chart-types');
expect(chartTypes).to.eql(expectedChartTypes);
});
});
Expand Down
2 changes: 0 additions & 2 deletions test/functional/apps/visualize/_data_table.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import expect from 'expect.js';
export default function ({ getService, getPageObjects }) {
const log = getService('log');
const retry = getService('retry');
const screenshots = getService('screenshots');
const PageObjects = getPageObjects(['common', 'visualize', 'header']);

describe('visualize app', function describeIndexTests() {
Expand Down Expand Up @@ -79,7 +78,6 @@ export default function ({ getService, getPageObjects }) {
return PageObjects.visualize.getDataTableData()
.then(function showData(data) {
log.debug(data.split('\n'));
screenshots.take('Visualize-data-table');
expect(data.split('\n')).to.eql(expectedChartData);
});
});
Expand Down
2 changes: 0 additions & 2 deletions test/functional/apps/visualize/_gauge_chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import expect from 'expect.js';
export default function ({ getService, getPageObjects }) {
const log = getService('log');
const retry = getService('retry');
const screenshots = getService('screenshots');
const PageObjects = getPageObjects(['common', 'visualize', 'header']);

describe('visualize app', function describeIndexTests() {
Expand Down Expand Up @@ -35,7 +34,6 @@ export default function ({ getService, getPageObjects }) {
return retry.try(function tryingForTime() {
return PageObjects.visualize.getGaugeValue()
.then(function (metricValue) {
screenshots.take('Visualize-gauge-chart');
expect(expectedCount).to.eql(metricValue[0].split('\n'));
});
});
Expand Down
Loading