Skip to content
This repository has been archived by the owner on Jun 10, 2020. It is now read-only.

Commit

Permalink
Add first spec.
Browse files Browse the repository at this point in the history
  • Loading branch information
garetht committed Aug 5, 2017
1 parent ec2bcbd commit 5c6ebab
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions cypress/integration/basic_infinite_spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/* eslint-disable */

describe('React Infinite Basic Lists', function() {

it('is able to render a basic list', function () {
cy.visit('http://localhost:8080/examples/example.html');

cy.get("#infinite-example-one").as('basic');

// Shows only
for (var i = 0; i < 8; i++) {
cy.get('@basic').should('contain', `List Item ${i}`);
}

cy.get('@basic').should('not.contain', 'List Item 8')
.should('not.contain', 'List Item 9');

cy.get('@basic').then($con => {
$con.get(0).scrollTop = 400;
});
});
});

0 comments on commit 5c6ebab

Please sign in to comment.