mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 13:32:54 +08:00
23 lines
786 B
JavaScript
23 lines
786 B
JavaScript
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');
|
|
});
|
|
})
|