test(button) add size e2e test

This commit is contained in:
Cam Wiegert
2017-11-30 15:12:24 -06:00
parent eef1ac6293
commit ab208ae10e
2 changed files with 64 additions and 0 deletions

View 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'));
});

View 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>