Skip to content

Commit

Permalink
test(list): add inset list test to highlight the inconsistencies in MD
Browse files Browse the repository at this point in the history
  • Loading branch information
brandyscarney committed Mar 12, 2018
1 parent fcdf355 commit 12c78bc
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/core/src/components/list/test/basic/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
</ion-list>
</ion-content>


</ion-app>
</body>
</html>
Expand Down
19 changes: 19 additions & 0 deletions packages/core/src/components/list/test/inset/e2e.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
'use strict';

const { By, until } = require('selenium-webdriver');
const { register, Page, platforms } = require('../../../../../scripts/e2e');

class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/list/test/inset?ionicplatform=${platform}`);
}
}

platforms.forEach(platform => {
describe('list/inset', () => {
register('should init', driver => {
const page = new E2ETestPage(driver, platform);
return page.navigate('#content');
});
});
});
70 changes: 70 additions & 0 deletions packages/core/src/components/list/test/inset/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
<!DOCTYPE html>
<html dir="ltr">
<head>
<meta charset="UTF-8">
<title>List - Basic</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-header>
<ion-toolbar>
<ion-title>List - Inset</ion-title>
</ion-toolbar>
</ion-header>

<ion-content id="content">
<ion-list inset>
<ion-item>
<ion-label>Normal Input</ion-label>
<ion-input></ion-input>
</ion-item>

<ion-item>
<ion-label stacked>Stacked Input</ion-label>
<ion-input></ion-input>
</ion-item>

<ion-item>
<ion-label>Normal Select</ion-label>
<ion-select>
<ion-select-option>1</ion-select-option>
<ion-select-option>2</ion-select-option>
<ion-select-option>3</ion-select-option>
</ion-select>
</ion-item>

<ion-item>
<ion-label stacked>Stacked Select</ion-label>
<ion-select>
<ion-select-option>1</ion-select-option>
<ion-select-option>2</ion-select-option>
<ion-select-option>3</ion-select-option>
</ion-select>
</ion-item>

<ion-item>
<ion-label>Normal Datetime</ion-label>
<ion-datetime></ion-datetime>
</ion-item>

<ion-item>
<ion-label stacked>Stacked Datetime</ion-label>
<ion-datetime></ion-datetime>
</ion-item>

</ion-list>
</ion-content>

</ion-app>

<style>
ion-content .scroll {
background: #e5e5e5;
}
</style>
</body>
</html>

0 comments on commit 12c78bc

Please sign in to comment.