mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 23:16:52 +08:00
test(button) add size e2e test
This commit is contained in:
7
packages/core/src/components/button/test/size/e2e.js
Normal file
7
packages/core/src/components/button/test/size/e2e.js
Normal file
@ -0,0 +1,7 @@
|
||||
const { register, navigate } = require('../../../../../scripts/e2e');
|
||||
|
||||
describe('button: size', () => {
|
||||
|
||||
register('navigates', navigate('http://localhost:3333/src/components/button/test/size'));
|
||||
|
||||
});
|
||||
57
packages/core/src/components/button/test/size/index.html
Normal file
57
packages/core/src/components/button/test/size/index.html
Normal file
@ -0,0 +1,57 @@
|
||||
<!DOCTYPE html>
|
||||
<html dir="ltr">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Button - Size</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 - Size</ion-title>
|
||||
</ion-toolbar>
|
||||
</ion-header>
|
||||
|
||||
<ion-content padding no-bounce>
|
||||
<p>
|
||||
<ion-button>Default</ion-button>
|
||||
<ion-button href="#">Default</ion-button>
|
||||
</p>
|
||||
<p>
|
||||
<ion-button size="small">Small</ion-button>
|
||||
<ion-button size="small" href="#">Small</ion-button>
|
||||
</p>
|
||||
<p>
|
||||
<ion-button size="small" fill="outline">Small</ion-button>
|
||||
<ion-button size="small" fill="outline" href="#">Small</ion-button>
|
||||
</p>
|
||||
<p>
|
||||
<ion-button size="small" fill="clear">Small</ion-button>
|
||||
<ion-button size="small" fill="clear" href="#">Small</ion-button>
|
||||
</p>
|
||||
<p>
|
||||
<ion-button size="large">Large</ion-button>
|
||||
<ion-button size="large" href="#">
|
||||
<span style="font-size:48px">H</span>
|
||||
<span style="font-size:38px">E</span>
|
||||
<span style="font-size:32px">L</span>
|
||||
<span style="font-size:24px">L</span>
|
||||
<span>O</span>
|
||||
</ion-button>
|
||||
</p>
|
||||
<p>
|
||||
<ion-button size="large" fill="outline">Large</ion-button>
|
||||
<ion-button size="large" fill="outline" href="#">Large</ion-button>
|
||||
</p>
|
||||
<p>
|
||||
<ion-button size="large" fill="clear">Large</ion-button>
|
||||
<ion-button size="large" fill="clear" href="#">Large</ion-button>
|
||||
</p>
|
||||
</ion-content>
|
||||
</ion-page>
|
||||
</ion-app>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user