You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

21 lines
566 B

  1. describe('DataTable init', function () {
  2. it('instance is created without any errors', () => {
  3. cy.visit('/');
  4. cy.window()
  5. .its('DataTable')
  6. .then(DataTable => {
  7. // eslint-disable-next-line
  8. new DataTable('#datatable2', {
  9. columns: ['Name', 'Position'],
  10. data: [
  11. ['Faris', 'Developer']
  12. ]
  13. });
  14. });
  15. cy.get('#datatable2 .datatable')
  16. .contains('Faris');
  17. });
  18. });