Skip to content

Commit

Permalink
Set timeRange to default to trigger the error message (#73629)
Browse files Browse the repository at this point in the history
  • Loading branch information
kertal committed Jul 29, 2020
1 parent 754c353 commit 4f8e7ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/functional/apps/discover/_errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,21 @@ import expect from '@kbn/expect';
export default function ({ getService, getPageObjects }) {
const esArchiver = getService('esArchiver');
const testSubjects = getService('testSubjects');
const PageObjects = getPageObjects(['common', 'discover']);
const PageObjects = getPageObjects(['common', 'discover', 'timePicker']);

describe('errors', function describeIndexTests() {
before(async function () {
await esArchiver.loadIfNeeded('logstash_functional');
await esArchiver.load('invalid_scripted_field');
await PageObjects.timePicker.setDefaultAbsoluteRangeViaUiSettings();
await PageObjects.common.navigateToApp('discover');
});

after(async function () {
await esArchiver.unload('invalid_scripted_field');
});

// ES issue https://github.com/elastic/elasticsearch/issues/54235
describe.skip('invalid scripted field error', () => {
describe('invalid scripted field error', () => {
it('is rendered', async () => {
const isFetchErrorVisible = await testSubjects.exists('discoverFetchError');
expect(isFetchErrorVisible).to.be(true);
Expand Down

0 comments on commit 4f8e7ba

Please sign in to comment.