Skip to content

Commit

Permalink
withdraw failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mbondyra committed Nov 7, 2024
1 parent 0e808a2 commit 5173f8d
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 13 deletions.
3 changes: 3 additions & 0 deletions x-pack/test/functional/apps/lens/group2/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export default ({ getService, loadTestFile, getPageObjects }: FtrProviderContext
const log = getService('log');
const esArchiver = getService('esArchiver');
const kibanaServer = getService('kibanaServer');
const { timePicker } = getPageObjects(['timePicker']);

describe('lens app - group 2', () => {
const esArchive = 'x-pack/test/functional/es_archives/logstash_functional';
Expand Down Expand Up @@ -41,13 +42,15 @@ export default ({ getService, loadTestFile, getPageObjects }: FtrProviderContext
});
await kibanaServer.importExport.load(fixtureDirs.lensBasic);
await kibanaServer.importExport.load(fixtureDirs.lensDefault);
await timePicker.setDefaultAbsoluteRangeViaUiSettings();
});

after(async () => {
await esNode.unload(esArchive);
await kibanaServer.importExport.unload(fixtureDirs.lensBasic);
await kibanaServer.importExport.unload(fixtureDirs.lensDefault);
await kibanaServer.savedObjects.cleanStandardList();
await timePicker.resetDefaultAbsoluteRangeViaUiSettings();
});

// total run time ~ 16m 20s
Expand Down
1 change: 1 addition & 0 deletions x-pack/test/functional/apps/lens/group2/table_dashboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await visualize.gotoVisualizationLandingPage();
await listingTable.searchForItemWithName('lnsXYvis');
await lens.clickVisualizeListItemTitle('lnsXYvis');
await lens.goToTimeRange();
await lens.switchToVisualization('lnsDatatable');
await lens.save('New Table', true, false, false, 'new');

Expand Down
19 changes: 10 additions & 9 deletions x-pack/test/functional/apps/lens/group5/formula.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await visualize.gotoVisualizationLandingPage();
await listingTable.searchForItemWithName('lnsXYvis');
await lens.clickVisualizeListItemTitle('lnsXYvis');
await lens.goToTimeRange();

await lens.configureDimension({
dimension: 'lnsXY_yDimensionPanel > lns-dimensionTrigger',
Expand All @@ -42,7 +43,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
it('should update and delete a formula', async () => {
await visualize.navigateToNewVisualization();
await visualize.clickVisType('lens');

await lens.goToTimeRange();
await lens.switchToVisualization('lnsDatatable');

await lens.configureDimension({
Expand All @@ -63,7 +64,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
it('should insert single quotes and escape when needed to create valid KQL', async () => {
await visualize.navigateToNewVisualization();
await visualize.clickVisType('lens');

await lens.goToTimeRange();
await lens.switchToVisualization('lnsDatatable');

await lens.configureDimension({
Expand Down Expand Up @@ -95,7 +96,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
it('should insert single quotes and escape when needed to create valid field name', async () => {
await visualize.navigateToNewVisualization();
await visualize.clickVisType('lens');

await lens.goToTimeRange();
await lens.switchToVisualization('lnsDatatable');
await dataViews.clickAddFieldFromSearchBar();
await fieldEditor.setName(`ab' "'`, true, true);
Expand Down Expand Up @@ -144,7 +145,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
it('should keep the formula when entering expanded mode', async () => {
await visualize.navigateToNewVisualization();
await visualize.clickVisType('lens');

await lens.goToTimeRange();
await lens.switchToVisualization('lnsDatatable');

await lens.configureDimension({
Expand All @@ -163,7 +164,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
it('should allow an empty formula combined with a valid formula', async () => {
await visualize.navigateToNewVisualization();
await visualize.clickVisType('lens');

await lens.goToTimeRange();
await lens.switchToVisualization('lnsDatatable');

await lens.configureDimension({
Expand All @@ -183,7 +184,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
it('should duplicate a moving average formula and be a valid table with conditional coloring', async () => {
await visualize.navigateToNewVisualization();
await visualize.clickVisType('lens');

await lens.goToTimeRange();
await lens.switchToVisualization('lnsDatatable');

await lens.configureDimension({
Expand Down Expand Up @@ -218,7 +219,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
it('should keep the formula if the user does not fully transition to a quick function', async () => {
await visualize.navigateToNewVisualization();
await visualize.clickVisType('lens');

await lens.goToTimeRange();
await lens.switchToVisualization('lnsDatatable');

await lens.configureDimension({
Expand Down Expand Up @@ -267,7 +268,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
it('should allow numeric only formulas', async () => {
await visualize.navigateToNewVisualization();
await visualize.clickVisType('lens');

await lens.goToTimeRange();
await lens.switchToVisualization('lnsDatatable');

await lens.configureDimension({
Expand All @@ -287,7 +288,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
it('should apply a global filter to the current formula', async () => {
await visualize.navigateToNewVisualization();
await visualize.clickVisType('lens');

await lens.goToTimeRange();
await lens.switchToVisualization('lnsDatatable');

await lens.configureDimension({
Expand Down
4 changes: 3 additions & 1 deletion x-pack/test/functional/apps/lens/group6/rollup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
it('should allow creation of lens xy chart', async () => {
await visualize.navigateToNewVisualization();
await visualize.clickVisType('lens');
await lens.goToTimeRange();
await lens.configureDimension({
dimension: 'lnsXY_xDimensionPanel > lns-empty-dimension',
operation: 'date_histogram',
Expand All @@ -58,7 +59,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await visualize.gotoVisualizationLandingPage();
await listingTable.searchForItemWithName('Afancilenstest');
await lens.clickVisualizeListItemTitle('Afancilenstest');

await lens.goToTimeRange();
expect(await lens.getTitle()).to.eql('Afancilenstest');

// .echLegendItem__title is the only viable way of getting the xy chart's
Expand All @@ -77,6 +78,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
it('should allow to switch from regular index to rollup index retaining config', async () => {
await visualize.navigateToNewVisualization();
await visualize.clickVisType('lens');
await lens.goToTimeRange();
await lens.switchDataPanelIndexPattern('lens_regular_data');
await lens.switchToVisualization('lnsLegacyMetric');
await lens.configureDimension({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ export default function ({ loadTestFile, getService, getPageObjects }: FtrProvid

await esNode.load(esArchive);
// changing the timepicker default here saves us from having to set it in Discover (~8s)
await timePicker.setDefaultAbsoluteRangeViaUiSettings();
await kibanaServer.uiSettings.update({
defaultIndex: indexPatternString,
'dateFormat:tz': 'UTC',
});
await timePicker.setDefaultAbsoluteRangeViaUiSettings();
await kibanaServer.importExport.load(fixtureDirs.lensBasic);
await kibanaServer.importExport.load(fixtureDirs.lensDefault);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ import expect from '@kbn/expect';
import { FtrProviderContext } from '../../../../ftr_provider_context';

export default function ({ getPageObjects, getService }: FtrProviderContext) {
const { visEditor, visualize, lens, visChart } = getPageObjects([
const { visEditor, visualize, lens, visChart, timePicker } = getPageObjects([
'visEditor',
'visualize',
'visChart',
'lens',
'timePicker',
]);

const testSubjects = getService('testSubjects');
Expand All @@ -30,6 +31,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
await visualize.navigateToNewAggBasedVisualization();
await visualize.clickMetric();
await visualize.clickNewSearch();
await timePicker.setDefaultAbsoluteRange();
});

it('should show the "Edit Visualization in Lens" menu item', async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
'visualize',
'lens',
'visEditor',

'header',
'visChart',
]);
Expand Down

0 comments on commit 5173f8d

Please sign in to comment.