From be0ad2d29513758b294e58fb90ac687fd5e3a8c0 Mon Sep 17 00:00:00 2001 From: Brandy Carney Date: Tue, 6 Oct 2015 16:42:52 -0400 Subject: [PATCH 1/2] docs(testing): Adding some testing steps to the README --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) 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 From 319fc9db1f071daa73e4eb1442314c108761ad9b Mon Sep 17 00:00:00 2001 From: Brandy Carney Date: Tue, 6 Oct 2015 17:28:20 -0400 Subject: [PATCH 2/2] test(search-bar): added tests for input focus animation References #247 --- ionic/components/search-bar/test/floating/e2e.ts | 4 ++++ ionic/components/search-bar/test/floating/main.html | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 ionic/components/search-bar/test/floating/e2e.ts 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 @@
- +