From d8f643d340c33aeca223f3fabc4bcbd95ac1dc3f Mon Sep 17 00:00:00 2001 From: Brandy Carney Date: Tue, 27 Oct 2015 15:16:37 -0400 Subject: [PATCH] test(segment): added e2e tests for segment Cleaned up some of the UI for the tests --- ionic/components/segment/test/basic/e2e.ts | 12 +++++ ionic/components/segment/test/basic/main.html | 44 ++++++++++--------- 2 files changed, 36 insertions(+), 20 deletions(-) create mode 100644 ionic/components/segment/test/basic/e2e.ts diff --git a/ionic/components/segment/test/basic/e2e.ts b/ionic/components/segment/test/basic/e2e.ts new file mode 100644 index 0000000000..b05a27407d --- /dev/null +++ b/ionic/components/segment/test/basic/e2e.ts @@ -0,0 +1,12 @@ + +it('friends should be selected', function() { + element(by.css('.e2eSegmentFriends')).click(); +}); + +it('standard should be selected', function() { + element(by.css('.e2eSegmentStandard')).click(); +}); + +it('model c should be selected', function() { + element(by.css('.e2eSegmentModelC')).click(); +}); diff --git a/ionic/components/segment/test/basic/main.html b/ionic/components/segment/test/basic/main.html index f4e78deb60..6fd612d02a 100644 --- a/ionic/components/segment/test/basic/main.html +++ b/ionic/components/segment/test/basic/main.html @@ -1,7 +1,7 @@ - + Friends @@ -12,9 +12,11 @@ +

Map mode: NgControl

+
- + Standard @@ -24,26 +26,25 @@ Satellite -
- Map mode: {{myForm.controls.mapStyle.value}} +

+ Map mode: {{myForm.controls.mapStyle.value}} - -

-
-

Standard

-
-
-

Hybrid

-
-
-

Satellite!!

-
-
+ + + Standard + + + Hybrid + + + Satellite + + +

-
- -

NgModel

+

Model style: NgModel

@@ -52,10 +53,13 @@ Model B - + Model C + + Model D + - Model Style: Model {{ modelStyle }} +

Model Style: Model {{ modelStyle }}