forked from ionic-team/ionic-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathicons.cy.js
22 lines (17 loc) · 786 Bytes
/
icons.cy.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
describe('Icons', () => {
it('should use ios svg', () => {
cy.visit('http://localhost:8080/icons?ionic:mode=ios');
cy.get('#customSvg').shadow().find('svg').should('have.class', 'ios');
cy.get('#customSvg').shadow().find('svg').should('have.class', 'apple');
});
it('should use md svg', () => {
cy.visit('http://localhost:8080/icons?ionic:mode=md');
cy.get('#customSvg').shadow().find('svg').should('have.class', 'md');
cy.get('#customSvg').shadow().find('svg').should('have.class', 'android');
});
it('should use fallback md svg', () => {
cy.visit('http://localhost:8080/icons');
cy.get('#customSvg').shadow().find('svg').should('have.class', 'md');
cy.get('#customSvg').shadow().find('svg').should('have.class', 'android');
});
})