mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 23:16:52 +08:00
test(button) add icon e2e test
This commit is contained in:
7
packages/core/src/components/button/test/icon/e2e.js
Normal file
7
packages/core/src/components/button/test/icon/e2e.js
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
const { register, navigate } = require('../../../../../scripts/e2e');
|
||||||
|
|
||||||
|
describe('button: icon', () => {
|
||||||
|
|
||||||
|
register('navigates', navigate('http://localhost:3333/src/components/button/test/icon'));
|
||||||
|
|
||||||
|
});
|
||||||
125
packages/core/src/components/button/test/icon/index.html
Normal file
125
packages/core/src/components/button/test/icon/index.html
Normal file
@ -0,0 +1,125 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html dir="ltr">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title>Button - Icon</title>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||||||
|
<script src="/dist/ionic.js"></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<ion-app>
|
||||||
|
<ion-page>
|
||||||
|
<ion-header>
|
||||||
|
<ion-toolbar>
|
||||||
|
<ion-title>Button - Icon</ion-title>
|
||||||
|
</ion-toolbar>
|
||||||
|
</ion-header>
|
||||||
|
|
||||||
|
<ion-content padding no-bounce>
|
||||||
|
<p>
|
||||||
|
<ion-button>
|
||||||
|
<ion-icon name="home" slot="start"></ion-icon>
|
||||||
|
Left Icon
|
||||||
|
</ion-button>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<ion-button href="./">
|
||||||
|
<ion-icon name="home" slot="start"></ion-icon>
|
||||||
|
Left Icon
|
||||||
|
</ion-button>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<ion-button>
|
||||||
|
<ion-icon name="star" slot="end"></ion-icon>
|
||||||
|
Right Icon
|
||||||
|
</ion-button>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<ion-button href="./">
|
||||||
|
<ion-icon name="star" slot="end"></ion-icon>
|
||||||
|
Right Icon
|
||||||
|
</ion-button>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<ion-button>
|
||||||
|
<ion-icon name="flag" slot="icon-only"></ion-icon>
|
||||||
|
</ion-button>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<ion-button href="./">
|
||||||
|
<ion-icon name="flag" slot="icon-only"></ion-icon>
|
||||||
|
</ion-button>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<ion-button size="large">
|
||||||
|
<ion-icon name="help-circle" slot="start"></ion-icon>
|
||||||
|
Left, Large
|
||||||
|
</ion-button>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<ion-button size="large" href="./">
|
||||||
|
<ion-icon name="help-circle" slot="start"></ion-icon>
|
||||||
|
Left, Large
|
||||||
|
</ion-button>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<ion-button size="large">
|
||||||
|
<ion-icon name="settings" slot="end"></ion-icon>
|
||||||
|
Right, Large
|
||||||
|
</ion-button>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<ion-button size="large" href="./">
|
||||||
|
<ion-icon name="settings" slot="end"></ion-icon>
|
||||||
|
Right, Large
|
||||||
|
</ion-button>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<ion-button size="large">
|
||||||
|
<ion-icon name="heart" slot="icon-only"></ion-icon>
|
||||||
|
</ion-button>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<ion-button size="large" href="./">
|
||||||
|
<ion-icon name="heart" slot="icon-only"></ion-icon>
|
||||||
|
</ion-button>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<ion-button size="small">
|
||||||
|
<ion-icon name="checkmark" slot="start"></ion-icon>
|
||||||
|
Left, Small
|
||||||
|
</ion-button>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<ion-button size="small" href="./">
|
||||||
|
<ion-icon name="checkmark" slot="start"></ion-icon>
|
||||||
|
Left, Small
|
||||||
|
</ion-button>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<ion-button size="small">
|
||||||
|
<ion-icon name="arrow-forward" slot="end"></ion-icon>
|
||||||
|
Right, Small
|
||||||
|
</ion-button>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<ion-button size="small" href="./">
|
||||||
|
<ion-icon name="arrow-forward" slot="end"></ion-icon>
|
||||||
|
Right, Small
|
||||||
|
</ion-button>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<ion-button size="small">
|
||||||
|
<ion-icon name="search" slot="icon-only"></ion-icon>
|
||||||
|
</ion-button>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<ion-button size="small" href="./">
|
||||||
|
<ion-icon name="search" slot="icon-only"></ion-icon>
|
||||||
|
</ion-button>
|
||||||
|
</p>
|
||||||
|
</ion-content>
|
||||||
|
</ion-page>
|
||||||
|
</ion-app>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Reference in New Issue
Block a user