Skip to content

Commit

Permalink
[FTR]: update test order
Browse files Browse the repository at this point in the history
  • Loading branch information
mgadewoll committed Sep 4, 2024
1 parent 4fc8437 commit 5d9970e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
10 changes: 5 additions & 5 deletions test/functional/apps/context/classic/_discover_navigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await kibanaServer.uiSettings.replace({});
});

it('should open the context view with the same columns', async () => {
const columnNames = await docTable.getHeaderFields();
expect(columnNames).to.eql(['@timestamp', ...TEST_COLUMN_NAMES]);
});

it('should open the context view with the selected document as anchor and allows selecting next anchor', async () => {
/**
* Helper function to get the first timestamp of the document table
Expand Down Expand Up @@ -92,11 +97,6 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
});
});

it('should open the context view with the same columns', async () => {
const columnNames = await docTable.getHeaderFields();
expect(columnNames).to.eql(['@timestamp', ...TEST_COLUMN_NAMES]);
});

it('should open the context view with the filters disabled', async () => {
let disabledFilterCounter = 0;
for (const [_, value, columnId] of TEST_FILTER_COLUMN_NAMES) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await PageObjects.timePicker.resetDefaultAbsoluteRangeViaUiSettings();
});

it('should open the context view with the same columns', async () => {
const columnNames = await dataGrid.getHeaderFields();
expect(columnNames).to.eql(['@timestamp', ...TEST_COLUMN_NAMES]);
});

it('should open the context view with the selected document as anchor', async () => {
// check the anchor timestamp in the context view
await retry.waitFor('selected document timestamp matches anchor timestamp ', async () => {
Expand All @@ -82,11 +87,6 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
});
});

it('should open the context view with the same columns', async () => {
const columnNames = await dataGrid.getHeaderFields();
expect(columnNames).to.eql(['@timestamp', ...TEST_COLUMN_NAMES]);
});

it('should open the context view with the filters disabled', async () => {
let disabledFilterCounter = 0;
for (const [_, value, columnId] of TEST_FILTER_COLUMN_NAMES) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await kibanaServer.uiSettings.replace({});
});

it('should open the context view with the same columns', async () => {
const columnNames = await dataGrid.getHeaderFields();
expect(columnNames).to.eql(['@timestamp', ...TEST_COLUMN_NAMES]);
});

it('should open the context view with the selected document as anchor and allows selecting next anchor', async () => {
/**
* Helper function to get the first timestamp of the document table
Expand Down Expand Up @@ -101,11 +106,6 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
});
});

it('should open the context view with the same columns', async () => {
const columnNames = await dataGrid.getHeaderFields();
expect(columnNames).to.eql(['@timestamp', ...TEST_COLUMN_NAMES]);
});

it('should open the context view with the filters disabled', async () => {
let disabledFilterCounter = 0;
for (const [columnName, value] of TEST_FILTER_COLUMN_NAMES) {
Expand Down

0 comments on commit 5d9970e

Please sign in to comment.