0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Fixed subscriber table tests in FF (#1011)

no issue
- `ember-in-viewport` was forced to a newer version in 13351afe38 which has resulted in the subscriber table's infinite scroll triggering immediately in FF when testing
This commit is contained in:
Kevin Ansfield 2018-04-25 11:03:15 +01:00 committed by GitHub
parent bc32beef38
commit 923a1f8372

View file

@ -80,8 +80,11 @@ describe('Acceptance: Subscribers', function () {
.to.equal('Subscribers - Test Blog');
// it loads the first page
// TODO: latest ember-in-viewport causes infinite scroll issues with
// FF here where it loads two pages straight away so we need to check
// if rows are greater than or equal to a single page
expect(find('.subscribers-table .lt-body .lt-row').length, 'number of subscriber rows')
.to.equal(30);
.to.be.at.least(30);
// it shows the total number of subscribers
expect(find('[data-test-total-subscribers]').text().trim(), 'displayed subscribers total')