From 9565cca15b6d30aefb78bcec411dea4f7b305019 Mon Sep 17 00:00:00 2001
From: Julie
Date: Wed, 12 Feb 2014 15:07:08 -0800
Subject: chore(protractor tests): fix up e2e tests
---
src/ng/directive/booleanAttrs.js | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
(limited to 'src/ng/directive/booleanAttrs.js')
diff --git a/src/ng/directive/booleanAttrs.js b/src/ng/directive/booleanAttrs.js
index 099bdbbb..01b9ee67 100644
--- a/src/ng/directive/booleanAttrs.js
+++ b/src/ng/directive/booleanAttrs.js
@@ -176,9 +176,9 @@
it('should toggle button', function() {
- expect(element(by.css('.doc-example-live button')).getAttribute('disabled')).toBeFalsy();
+ expect(element(by.css('button')).getAttribute('disabled')).toBeFalsy();
element(by.model('checked')).click();
- expect(element(by.css('.doc-example-live button')).getAttribute('disabled')).toBeTruthy();
+ expect(element(by.css('button')).getAttribute('disabled')).toBeTruthy();
});
@@ -246,9 +246,9 @@
it('should toggle readonly attr', function() {
- expect(element(by.css('.doc-example-live [type="text"]')).getAttribute('readonly')).toBeFalsy();
+ expect(element(by.css('[type="text"]')).getAttribute('readonly')).toBeFalsy();
element(by.model('checked')).click();
- expect(element(by.css('.doc-example-live [type="text"]')).getAttribute('readonly')).toBeTruthy();
+ expect(element(by.css('[type="text"]')).getAttribute('readonly')).toBeTruthy();
});
--
cgit v1.2.3