Skip to content

Commit

Permalink
chore(angular): upgrade test app to cypress 10 (#25521)
Browse files Browse the repository at this point in the history
  • Loading branch information
sean-perkins authored Jun 24, 2022
1 parent c53785c commit d65e5a7
Show file tree
Hide file tree
Showing 6 changed files with 561 additions and 1,597 deletions.
16 changes: 16 additions & 0 deletions angular/test/test-app/cypress.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { defineConfig } from 'cypress'

export default defineConfig({
video: false,
screenshotOnRunFailure: false,
e2e: {
// We've imported your old cypress plugins here.
// You may want to clean this up later by importing these.
setupNodeEvents(on, config) {
return require('./cypress/plugins/index.js')(on, config)
},
specPattern: './e2e/**/*.spec.ts',
baseUrl: 'http://localhost:4200/',
excludeSpecPattern: '**/examples/*',
},
})
8 changes: 0 additions & 8 deletions angular/test/test-app/cypress.json

This file was deleted.

5 changes: 1 addition & 4 deletions angular/test/test-app/e2e/src/virtual-scroll.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ describe('Virtual Scroll', () => {
})

it('should open virtual-scroll', () => {
cy.document().then((doc) => {
const virtualElements = doc.querySelectorAll('ion-virtual-scroll > *');
expect(virtualElements.length).to.be.greaterThan(0);
});
cy.get('ion-virtual-scroll > *').its('length').should('be.gt', 0);
});
});

Loading

0 comments on commit d65e5a7

Please sign in to comment.