Skip to content

Conversation

@mmalerba
Copy link
Contributor

fixes #7316

@mmalerba mmalerba requested a review from jelbourn September 26, 2017 20:37
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Sep 26, 2017
jelbourn
jelbourn approved these changes Sep 26, 2017
@jelbourn
Copy link
Member

Actually, add a unit test for stepper + autosize?

@mmalerba
Copy link
Contributor Author

I feel like this kind of thing is better caught with a screenshot test, which I did for tabs. Didn't add it to the stepper e2e test because it uses the stepper overview example, and I didn't want to start adding irrelevant stuff to the example

@jelbourn
Copy link
Member

An easy sanity test would be to make the initial text really long and assert that the height is above some small-ish threshold

@mmalerba
Copy link
Contributor Author

done

const fixtureWithForms = TestBed.createComponent(AutosizeTextareaInATab);
fixtureWithForms.detectChanges();
textarea = fixtureWithForms.nativeElement.querySelector('textarea');
expect(textarea.getBoundingClientRect().height).toBeGreaterThan(0);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would greater than 1 work?

Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jelbourn jelbourn added pr: lgtm action: merge The PR is ready for merge by the caretaker and removed pr: needs review labels Sep 26, 2017
@mmalerba mmalerba added the P2 The issue is important to a large percentage of users, with a workaround label Sep 29, 2017
@andrewseguin andrewseguin added pr: needs rebase and removed action: merge The PR is ready for merge by the caretaker labels Sep 29, 2017
@mmalerba mmalerba added action: merge The PR is ready for merge by the caretaker and removed pr: needs rebase labels Sep 30, 2017
@kara kara merged commit c6824d5 into angular:master Oct 3, 2017
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement P2 The issue is important to a large percentage of users, with a workaround

Projects

None yet

Development

Successfully merging this pull request may close these issues.

md-autosize initialized with height of 0 inside stepper & tabs

5 participants