Skip to content

Commit

Permalink
Fixed some expected values in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DianaDerevyankina committed Mar 16, 2020
1 parent 2c61ab9 commit c60a464
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/functional/apps/visualize/_area_chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -468,15 +468,15 @@ export default function({ getService, getPageObjects }) {
'[data-test-subj="visEditorAggAccordion2"] .visEditorSidebar__aggGroupAccordionButtonContent'
)
).getVisibleText();
expect(accordionLabel).to.include.string('per 3 hours');
expect(accordionLabel).to.include.string('per month');
});

it('should update label inside when scaled to milliseconds', async () => {
await PageObjects.visEditor.setInterval('Millisecond');
const accordionLabel = await (
await find.byCssSelector('[data-test-subj="currentlyScaledText"]')
).getVisibleText();
expect(accordionLabel).to.include.string('to hour');
expect(accordionLabel).to.include.string('to week');
});

it('should scale to 10 minutes and display the correct label when time range is changed and custom interval is set to 10s', async () => {
Expand Down

0 comments on commit c60a464

Please sign in to comment.