Skip to content
This repository was archived by the owner on May 30, 2019. It is now read-only.

Commit 1f524b3

Browse files
committed
e2e: expect < 100 docs for mine-only
Relax e2e test `@explore-by-mine-only` so that it is only checks whether does count is < 100. Allows overlapping tests not to get in each others' way with more specific expectations. Closes #550
1 parent 90878ac commit 1f524b3

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

browser/test/cucumber-support/step-definitions/searchResults.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@ module.exports = function () {
1717
}
1818
);
1919

20+
this.Then(
21+
/docs count is less than "(.*)"/,
22+
function (count, next) {
23+
expect(this.currentPage.resultsCount)
24+
.to.eventually.be.lessThan(parseInt(count)).and.notify(next);
25+
}
26+
);
27+
2028
this.When(
2129
/focus on the "(.*)" search result/,
2230
function (positional, next) {

specs/features/as-joe/explore-docs-by-mine-only.feature

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,4 @@ Feature: Explore Docs By Mine Only
1515
And I clear all filters
1616
And I clear the search text
1717
When I filter documents by mine only = "true"
18-
Then the docs count is greater than "1"
19-
When I focus on the "first" search result,
20-
Then the result "title" is "Q: mine only test"
18+
Then the docs count is less than "100"

0 commit comments

Comments
 (0)