test(button) add expand e2e test

This commit is contained in:
Cam Wiegert
2017-11-28 15:42:42 -06:00
parent fe5d2f7c77
commit 08fd1e13ee
2 changed files with 54 additions and 0 deletions

View File

@ -0,0 +1,7 @@
const { register, navigate } = require('../../../../../scripts/e2e');
describe('button: expand', () => {
register('navigates', navigate('http://localhost:3333/src/components/button/test/expand'));
});

View File

@ -0,0 +1,47 @@
<!DOCTYPE html>
<html dir="ltr">
<head>
<meta charset="UTF-8">
<title>Button - Expand</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 - Expand</ion-title>
</ion-toolbar>
</ion-header>
<ion-content padding no-bounce>
<p>
<ion-button expand="block">Block</ion-button>
<ion-button expand="full">Full</ion-button>
</p>
<p>
<ion-button expand="block" color="dark" fill="outline">Block + Outline</ion-button>
<ion-button expand="full" color="dark" fill="outline">Full + Outline</ion-button>
</p>
<p>
<ion-button expand="block" fill="clear">Block + Clear</ion-button>
<ion-button expand="full" fill="clear">Full + Clear</ion-button>
</p>
<p>
<ion-button expand="block" color="danger" size="small">Block + Small</ion-button>
<ion-button expand="full" color="danger" size="small">Full + Small</ion-button>
</p>
<p>
<ion-button expand="block" color="secondary" size="large">Block + Large</ion-button>
<ion-button expand="full" color="secondary" size="large">Full + Large</ion-button>
</p>
<p>
<ion-button expand="block" round>Block + Round</ion-button>
<ion-button expand="full" round>Full + Round</ion-button>
</p>
</ion-content>
</ion-page>
</ion-app>
</body>
</html>