Adding the data- prefix to the shared-item HTMLElements (#10888)

This commit is contained in:
Brandon Kobel 2017-04-05 08:03:46 -04:00 committed by GitHub
parent c09b69e432
commit 36f676cc2d
12 changed files with 21 additions and 21 deletions

View file

@ -104,16 +104,16 @@ bdd.it('retains dark theme in state', async function () {
expect(isDarkThemeOn).to.equal(true);
});
bdd.it('should have shared-items-count set to the number of visualizations', function checkSavedItemsCount() {
bdd.it('should have data-shared-items-count set to the number of visualizations', function checkSavedItemsCount() {
const visualizations = PageObjects.dashboard.getTestVisualizations();
return PageObjects.common.tryForTime(10000, () => PageObjects.dashboard.getSharedItemsCount())
.then(function (count) {
PageObjects.common.log('shared-items-count = ' + count);
PageObjects.common.log('data-shared-items-count = ' + count);
expect(count).to.eql(visualizations.length);
});
});
bdd.it('should have panels with expected shared-item title and description', function checkTitles() {
bdd.it('should have panels with expected data-shared-item title and description', function checkTitles() {
const visualizations = PageObjects.dashboard.getTestVisualizations();
return PageObjects.common.tryForTime(10000, function () {
return PageObjects.dashboard.getPanelSharedItemData()

View file

@ -226,8 +226,8 @@ bdd.describe('discover app', function describeIndexTests() {
});
bdd.describe('shared-item', function () {
bdd.it('should have correct shared-item title and description', async () => {
bdd.describe('data-shared-item', function () {
bdd.it('should have correct data-shared-item title and description', async () => {
const expected = {
title: 'A Saved Search',
description: 'A Saved Search Description'

View file

@ -13,9 +13,9 @@ bdd.describe('visualize app', function describeIndexTests() {
return PageObjects.common.navigateToApp('visualize');
});
bdd.describe('shared-item', function indexPatternCreation() {
bdd.describe('data-shared-item', function indexPatternCreation() {
bdd.it('should have the correct shared-item title and description', function () {
bdd.it('should have the correct data-shared-item title and description', function () {
const expected = {
title: 'Shared-Item Visualization AreaChart',
description: 'AreaChart'