Skip to content

feat(material/sidenav): add test harnesses for container and content elements - #21115

Merged
annieyw merged 1 commit into
angular:masterfrom
crisbeto:sidenav-container-harness
Nov 24, 2020
Merged

feat(material/sidenav): add test harnesses for container and content elements#21115
annieyw merged 1 commit into
angular:masterfrom
crisbeto:sidenav-container-harness

Conversation

@crisbeto

Copy link
Copy Markdown
Member
  • Adds test harnesses for MatDrawerContainer, MatDrawerContent, MatSidenavContainer and MatSidenavContent. This came up during the original PR review (feat(material-experimental): add sidenav test harness #16695), but we never followed up on it.
  • Fixes that MatSidenavHarness.with was returning a MatDrawerHarness. I had to move all the common code into a new class called MatDrawerHarnessBase so TS doesn't complain that the types don't match up.

…elements

* Adds test harnesses for `MatDrawerContainer`, `MatDrawerContent`,
`MatSidenavContainer` and `MatSidenavContent`. This came up during the original
PR review (angular#16695), but we never followed up on it.
* Fixes that `MatSidenavHarness.with` was returning a `MatDrawerHarness`. I had to
move all the common code into a new class called `MatDrawerHarnessBase` so TS
doesn't complain that the types don't match up.
@crisbeto crisbeto added P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent target: minor This PR is targeted for the next minor release labels Nov 22, 2020
@crisbeto
crisbeto requested a review from mmalerba as a code owner November 22, 2020 15:13
@crisbeto
crisbeto requested a review from a team November 22, 2020 15:13
@google-cla google-cla Bot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Nov 22, 2020

@mmalerba mmalerba left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@mmalerba mmalerba added the action: merge The PR is ready for merge by the caretaker label Nov 22, 2020
@annieyw
annieyw merged commit 63641c5 into angular:master Nov 24, 2020
@angular-automatic-lock-bot

Copy link
Copy Markdown

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 Dec 25, 2020
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 P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants