diff --git a/README.md b/README.md index 31a0cc2e7c..e9321be57f 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,15 @@ Ionic 2 is based on the new [2.x version of AngularJS](https://angular.io/), and 3. Go to [http://localhost:8000/e2e/](http://localhost:8000/e2e/) 4. Stay cool +### Running Snapshot + +1. Install [Protractor](https://angular.github.io/protractor/#/): `npm install -g protractor` +2. Export `IONIC_SNAPSHOT_KEY` (get from someone) +3. Run `gulp snapshot` + +### Running Tests + +1. `gulp karma` ### Distribution diff --git a/ionic/components/search-bar/test/floating/e2e.ts b/ionic/components/search-bar/test/floating/e2e.ts new file mode 100644 index 0000000000..b9a75978aa --- /dev/null +++ b/ionic/components/search-bar/test/floating/e2e.ts @@ -0,0 +1,4 @@ + +it('should animate focus', function() { + element(by.css('.e2eFloatingSearchBar input')).sendKeys("Should animate"); +}); diff --git a/ionic/components/search-bar/test/floating/main.html b/ionic/components/search-bar/test/floating/main.html index 429fdf6eed..0f7912fd4f 100644 --- a/ionic/components/search-bar/test/floating/main.html +++ b/ionic/components/search-bar/test/floating/main.html @@ -6,7 +6,7 @@
- +