Skip to content

Test order aggs by term #8141#8154

Merged
LeeDr merged 4 commits intoelastic:masterfrom
LeeDr:orderAggsByTerm8141
Sep 7, 2016
Merged

Test order aggs by term #8141#8154
LeeDr merged 4 commits intoelastic:masterfrom
LeeDr:orderAggsByTerm8141

Conversation

@LeeDr
Copy link

@LeeDr LeeDr commented Sep 2, 2016

Add a test to _line_chart.js that changes the default order by from count to term.

'should show correct chart order by Term'

Passes on master (5.0). I assume this is going to fail on 4.6.0, and then pass on 4.6.1 but I haven't tried either yet.

@LeeDr
Copy link
Author

LeeDr commented Sep 2, 2016

Hold off on this PR. I think I missed checking part of it in.


bdd.it('should show correct chart order by Term', function pageHeader() {

var remote = this.remote;
Copy link
Contributor

@thomasneirynck thomasneirynck Sep 4, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think remote is used lower down this scope.

@LeeDr
Copy link
Author

LeeDr commented Sep 6, 2016

Jenkins, test this

@LeeDr LeeDr added the review label Sep 6, 2016
return PageObjects.visualize.selectOrderBy('_term')
.then(function clickGo() {
return PageObjects.visualize.clickGo();
})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason not to pass a direct reference to clickGo here?

.then(PageObjects.visualize.clickGo)

@cjcenizal
Copy link
Contributor

Just had some minor readability suggestions. LGTM otherwise!

@cjcenizal cjcenizal removed their assignment Sep 6, 2016
@LeeDr
Copy link
Author

LeeDr commented Sep 7, 2016

I removed all those bogus pageHeader function names (just left them anonymous now).

I didn't make any other changes like precomputing the expectedChartY values. I'd like to keep this PR limited to adding this one test for the escaped bug.

@LeeDr LeeDr merged commit 1cebdd7 into elastic:master Sep 7, 2016
airow pushed a commit to airow/kibana that referenced this pull request Feb 16, 2017
@LeeDr LeeDr deleted the orderAggsByTerm8141 branch May 23, 2017 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants