diff --git a/src/components/TextInput/__tests__/index-test.js b/src/components/TextInput/__tests__/index-test.js index 2f7eb809..bf5f65a6 100644 --- a/src/components/TextInput/__tests__/index-test.js +++ b/src/components/TextInput/__tests__/index-test.js @@ -97,17 +97,14 @@ suite('components/TextInput', () => { return str } - let input = findInput(utils.renderAndInject( + const result = utils.shallowRender( - )) - const height = input.getBoundingClientRect().height - // need a range because of cross-browser differences - assert.ok(height >= 42, height) - assert.ok(height <= 48, height) + ) + assert.equal(findShallowInput(result).props.maxRows, 3) }) test('prop "multiline"', () => { @@ -126,10 +123,14 @@ suite('components/TextInput', () => { // with multiline input = findInput(utils.renderAndInject()) assert.equal(input.tagName, 'TEXTAREA') - const height = input.getBoundingClientRect().height - // need a range because of cross-browser differences - assert.ok(height >= 30, height) - assert.ok(height <= 36, height) + + const result = utils.shallowRender( + + ) + assert.equal(findShallowInput(result).props.minRows, 3) }) test('prop "onBlur"', (done) => {