-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(input): make autosize work inside tabs & stepper #7341
Conversation
Actually, add a unit test for stepper + autosize? |
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 |
An easy sanity test would be to make the initial text really long and assert that the height is above some small-ish threshold |
done |
src/lib/input/autosize.spec.ts
Outdated
const fixtureWithForms = TestBed.createComponent(AutosizeTextareaInATab); | ||
fixtureWithForms.detectChanges(); | ||
textarea = fixtureWithForms.nativeElement.querySelector('textarea'); | ||
expect(textarea.getBoundingClientRect().height).toBeGreaterThan(0); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
fixes #7316