Skip to content

Commit d65e5a7

Browse files
authored
chore(angular): upgrade test app to cypress 10 (#25521)
1 parent c53785c commit d65e5a7

File tree

6 files changed

+561
-1597
lines changed

6 files changed

+561
-1597
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { defineConfig } from 'cypress'
2+
3+
export default defineConfig({
4+
video: false,
5+
screenshotOnRunFailure: false,
6+
e2e: {
7+
// We've imported your old cypress plugins here.
8+
// You may want to clean this up later by importing these.
9+
setupNodeEvents(on, config) {
10+
return require('./cypress/plugins/index.js')(on, config)
11+
},
12+
specPattern: './e2e/**/*.spec.ts',
13+
baseUrl: 'http://localhost:4200/',
14+
excludeSpecPattern: '**/examples/*',
15+
},
16+
})

angular/test/test-app/cypress.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

angular/test/test-app/e2e/src/virtual-scroll.spec.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@ describe('Virtual Scroll', () => {
55
})
66

77
it('should open virtual-scroll', () => {
8-
cy.document().then((doc) => {
9-
const virtualElements = doc.querySelectorAll('ion-virtual-scroll > *');
10-
expect(virtualElements.length).to.be.greaterThan(0);
11-
});
8+
cy.get('ion-virtual-scroll > *').its('length').should('be.gt', 0);
129
});
1310
});
1411

0 commit comments

Comments
 (0)