Skip to content

Commit 20e704b

Browse files
robindijkhofmmalerba
authored andcommitted
test(input): add textarea e2e test (#5517)
* e2e(input): add textarea e2e test * test(input): remove fdescribe
1 parent e3f3233 commit 20e704b

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

e2e/components/input-e2e.spec.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,14 @@ describe('input', () => {
4343
expect(input.getAttribute('value')).toBe('0');
4444
});
4545
});
46+
47+
describe('textarea', () => {
48+
beforeEach(() => browser.get('/input'));
49+
50+
it('should update input value when user types', () => {
51+
let input = element(by.id('text-area'));
52+
input.sendKeys('abc123');
53+
expect(input.getAttribute('value')).toBe('abc123');
54+
});
55+
});
4656
});

src/e2e-app/input/input-e2e.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,9 @@
99
<input mdInput type="number" id="number-input" placeholder="Enter a number">
1010
</md-input-container>
1111
</p>
12+
<p>
13+
<md-input-container>
14+
<textarea mdInput id="text-area" placeholder="Enter some text"></textarea>
15+
</md-input-container>
16+
</p>
1217
</section>

0 commit comments

Comments
 (0)