mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
Deprecate Bootstrap buttons (#11352)
* Migrate Console to kuiButton. * Convert angular-bootstrap Timepicker and Tabs components to use kuiButtons. * Convert Timelion to use kuiButtons. * Convert Visualize and visTypes to use kuiButtons. - Convert Heatmap vistype to use kuiButtons. - Convert Visualize editor, AggTypes controls, and Heatmap options to use kuiButtons. - Convert VisType control rows_or_columns to kuiButton. - Adjust formatting of kuiButtons in AggTypes controls and Heatmap options. - Convert Visualization save prompt to use kuiButtons. - Convert visualize legend to use kuiButtons. - Convert Visualize Spy to use kuiSelect instead of Bootstrap buttons. * Convert Notify to use kuiButtons. - Fix appearance of Notifier countdown. * - Convert Dashboard to use kuiButtons and kuiMenuButtons. - Convert Dashboard save panel to use KuiButtons. * Convert Discover sidebar to use kuiButtons, and have an improved UX and accessibility. - Convert Discover field chooser to use kuiButtons. - Convert Discover no-results to use kuiButtons. - Convert Discover save panel to use KuiButtons. * Convert filter bar to use kuiButtons. * Convert fatal splash screen to use UI Framework components. * Convert number list to use kuiButtons. * Convert stringify color editor to use kuiButtons. * Convert timepicker directive to use kuiButtons. * Convert Index Pattern Management to use kuiButtons. - Convert Index Pattern Management field editor to use kuiButtons. - Remove unnecessary ng-class from Create Index Pattern submit button. * Remove unused global_config.html partial. * Fix functional tests. - Rename discover-save-search-btn test subject selector to discoverSaveSearchButton. - Convert Notifier tests to use kuiButtons. - Convert functional tests to use test subject selectors instead of relying on btn classes. - Update HeaderPage and VisualizePage page objects to refer to timePickerGoButton. - Fix broken functional tests for Discover, Visualize, and Settings. - Fix failing Discover scripted fields tests. * Fix visual bugs with FieldChooser string, Notifier buttons, and NumberList. * Fix Number List so the 'remove' buttons are small. * Fix FieldEditor to have space between Popularity input and dec/increment buttons. * Update FieldChooser string partial to have padding around 'Visualize' button.
This commit is contained in:
parent
b5269cff10
commit
4209774dde
64 changed files with 715 additions and 575 deletions
|
@ -39,7 +39,6 @@ export default function ({ getService, getPageObjects }) {
|
|||
});
|
||||
|
||||
describe('creating and using Lucence expression scripted fields', function describeIndexTests() {
|
||||
|
||||
const scriptedExpressionFieldName = 'ram_expr1';
|
||||
|
||||
it('should create scripted field', async function () {
|
||||
|
@ -75,7 +74,6 @@ export default function ({ getService, getPageObjects }) {
|
|||
const rowData = await PageObjects.discover.getDocTableIndex(1);
|
||||
expect(rowData).to.be('September 18th 2015, 18:20:57.916 18');
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
it('should filter by scripted field value in Discover', async function () {
|
||||
|
@ -95,7 +93,6 @@ export default function ({ getService, getPageObjects }) {
|
|||
'8 16', '15 14', '3 13', '2 12', '9 10', '4 9'
|
||||
];
|
||||
await PageObjects.discover.removeAllFilters();
|
||||
await PageObjects.discover.clickFieldListItem(scriptedExpressionFieldName);
|
||||
await PageObjects.discover.clickFieldListItemVisualize(scriptedExpressionFieldName);
|
||||
await PageObjects.header.waitUntilLoadingHasFinished();
|
||||
await PageObjects.visualize.waitForVisualization();
|
||||
|
@ -108,11 +105,9 @@ export default function ({ getService, getPageObjects }) {
|
|||
await PageObjects.common.saveScreenshot('Visualize-vertical-bar-chart');
|
||||
expect(data.trim().split('\n')).to.eql(expectedChartValues);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
describe('creating and using Painless numeric scripted fields', function describeIndexTests() {
|
||||
|
||||
const scriptedPainlessFieldName = 'ram_Pain1';
|
||||
|
||||
it('should create scripted field', async function () {
|
||||
|
@ -165,7 +160,6 @@ export default function ({ getService, getPageObjects }) {
|
|||
'8 16', '15 14', '3 13', '2 12', '9 10', '4 9'
|
||||
];
|
||||
await PageObjects.discover.removeAllFilters();
|
||||
await PageObjects.discover.clickFieldListItem(scriptedPainlessFieldName);
|
||||
await PageObjects.discover.clickFieldListItemVisualize(scriptedPainlessFieldName);
|
||||
await PageObjects.header.waitUntilLoadingHasFinished();
|
||||
await PageObjects.visualize.waitForVisualization();
|
||||
|
@ -178,11 +172,9 @@ export default function ({ getService, getPageObjects }) {
|
|||
await PageObjects.common.saveScreenshot('Visualize-vertical-bar-chart');
|
||||
expect(data.trim().split('\n')).to.eql(expectedChartValues);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
describe('creating and using Painless string scripted fields', function describeIndexTests() {
|
||||
|
||||
const scriptedPainlessFieldName2 = 'painString';
|
||||
|
||||
it('should create scripted field', async function () {
|
||||
|
@ -233,7 +225,6 @@ export default function ({ getService, getPageObjects }) {
|
|||
});
|
||||
|
||||
it('should visualize scripted field in vertical bar chart', async function () {
|
||||
await PageObjects.discover.clickFieldListItem(scriptedPainlessFieldName2);
|
||||
await PageObjects.discover.clickFieldListItemVisualize(scriptedPainlessFieldName2);
|
||||
await PageObjects.header.waitUntilLoadingHasFinished();
|
||||
await PageObjects.visualize.waitForVisualization();
|
||||
|
@ -245,12 +236,9 @@ export default function ({ getService, getPageObjects }) {
|
|||
await log.debug('data.length=' + data.length);
|
||||
expect(data.trim().split('\n')).to.eql([ 'good 359', 'bad 27' ]);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
describe('creating and using Painless boolean scripted fields', function describeIndexTests() {
|
||||
|
||||
const scriptedPainlessFieldName2 = 'painBool';
|
||||
|
||||
it('should create scripted field', async function () {
|
||||
|
@ -301,7 +289,6 @@ export default function ({ getService, getPageObjects }) {
|
|||
});
|
||||
|
||||
it('should visualize scripted field in vertical bar chart', async function () {
|
||||
await PageObjects.discover.clickFieldListItem(scriptedPainlessFieldName2);
|
||||
await PageObjects.discover.clickFieldListItemVisualize(scriptedPainlessFieldName2);
|
||||
await PageObjects.header.waitUntilLoadingHasFinished();
|
||||
await PageObjects.visualize.waitForVisualization();
|
||||
|
@ -313,12 +300,9 @@ export default function ({ getService, getPageObjects }) {
|
|||
await log.debug('data.length=' + data.length);
|
||||
expect(data.trim().split('\n')).to.eql([ 'true 359', 'false 27' ]);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
describe('creating and using Painless date scripted fields', function describeIndexTests() {
|
||||
|
||||
const scriptedPainlessFieldName2 = 'painDate';
|
||||
|
||||
it('should create scripted field', async function () {
|
||||
|
@ -369,7 +353,6 @@ export default function ({ getService, getPageObjects }) {
|
|||
});
|
||||
|
||||
it('should visualize scripted field in vertical bar chart', async function () {
|
||||
await PageObjects.discover.clickFieldListItem(scriptedPainlessFieldName2);
|
||||
await PageObjects.discover.clickFieldListItemVisualize(scriptedPainlessFieldName2);
|
||||
await PageObjects.header.waitUntilLoadingHasFinished();
|
||||
await PageObjects.visualize.waitForVisualization();
|
||||
|
@ -402,7 +385,6 @@ export default function ({ getService, getPageObjects }) {
|
|||
'2015-09-18 07:00 1',
|
||||
]);
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue