From 4584829b860ad6890de1ac7d52104632a4341cff Mon Sep 17 00:00:00 2001 From: Brandy Carney Date: Wed, 28 Oct 2015 15:31:06 -0400 Subject: [PATCH] test(card): added missing tests for card MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit for some reason the iOS clicks aren’t showing in the screenshots. references #369 --- ionic/components/card/test/advanced/e2e.ts | 7 +++++++ ionic/components/card/test/advanced/main.html | 18 +++++++++--------- ionic/components/card/test/basic/e2e.ts | 11 +++++++++++ ionic/components/card/test/basic/main.html | 6 +++--- 4 files changed, 30 insertions(+), 12 deletions(-) diff --git a/ionic/components/card/test/advanced/e2e.ts b/ionic/components/card/test/advanced/e2e.ts index 8b13789179..92b076d7f9 100644 --- a/ionic/components/card/test/advanced/e2e.ts +++ b/ionic/components/card/test/advanced/e2e.ts @@ -1 +1,8 @@ +it('share should be activated', function() { + element(by.css('.e2eAdvancedCardShareButton')).click(); +}); + +it('favorite should be activated', function() { + element(by.css('.e2eAdvancedCardFavoriteButton')).click(); +}); diff --git a/ionic/components/card/test/advanced/main.html b/ionic/components/card/test/advanced/main.html index c8b258ba5e..daf756d730 100644 --- a/ionic/components/card/test/advanced/main.html +++ b/ionic/components/card/test/advanced/main.html @@ -22,9 +22,9 @@ - @@ -52,17 +52,17 @@ - - - @@ -78,15 +78,15 @@ - - - diff --git a/ionic/components/card/test/basic/e2e.ts b/ionic/components/card/test/basic/e2e.ts index 8b13789179..4f15a98dbc 100644 --- a/ionic/components/card/test/basic/e2e.ts +++ b/ionic/components/card/test/basic/e2e.ts @@ -1 +1,12 @@ +it('view should be activated', function() { + element(by.css('.e2eBasicCardViewButton')).click(); +}); + +it('link 1 should be activated', function() { + element(by.css('.e2eBasicCardLink1')).click(); +}); + +it('button 1 should be activated', function() { + element(by.css('.e2eBasicCardButton1')).click(); +}); diff --git a/ionic/components/card/test/basic/main.html b/ionic/components/card/test/basic/main.html index afcac6f52c..352d064718 100644 --- a/ionic/components/card/test/basic/main.html +++ b/ionic/components/card/test/basic/main.html @@ -22,7 +22,7 @@ ion-iteam in a card, icon left, button right - + @@ -35,7 +35,7 @@ - + Card Link Item 1 @@ -45,7 +45,7 @@ Card Link Item 2 -