Skip to content
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

feat(material-experimental): add sidenav test harness #16695

Merged
merged 1 commit into from
Aug 15, 2019

Conversation

crisbeto
Copy link
Member

@crisbeto crisbeto commented Aug 6, 2019

Adds a test harness for the sidenav.

Adds a test harness for the sidenav.
@crisbeto crisbeto added P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent pr: merge safe labels Aug 6, 2019
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Aug 6, 2019
Copy link
Contributor

@mmalerba mmalerba left a comment

Choose a reason for hiding this comment

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

Interesting that there's a harness for the sub-component (sidenav) but not the parent (sidenav-container). I think it makes sense though, there's nothing interesting a user can really do with the container.

* @dynamic
*/
export class MatSidenavHarness extends ComponentHarness {
static hostSelector = '.mat-sidenav';
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this could extend a MatDrawerHarness and just add the isFixedInViewport check.

Copy link
Member Author

Choose a reason for hiding this comment

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

The reason why I didn't do anything with mat-drawer is because we haven't really exposed it anywhere. E.g. we don't have any live examples of it and it's nowhere in the docs from what I can tell.

Copy link
Contributor

Choose a reason for hiding this comment

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

It doesn't have a separate page on our docs site, but it is actually discussed in the sidenav docs.

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 labels Aug 15, 2019
@mmalerba
Copy link
Contributor

I'm ok with figuring out the drawer thing in a followup sometime

@jelbourn
Copy link
Member

jelbourn commented Aug 15, 2019

Anything for drawer can go in a follow-up if we decide to do that

@mmalerba mmalerba merged commit 02a3f3e into angular:master Aug 15, 2019
andrewseguin pushed a commit that referenced this pull request Aug 26, 2019
Adds a test harness for the sidenav.

(cherry picked from commit 02a3f3e)
crisbeto added a commit to crisbeto/material2 that referenced this pull request Sep 8, 2019
Follow-up from angular#16695. Adds a separate harness for `mat-drawer` and has `mat-sidenav` inherit from it.
crisbeto added a commit to crisbeto/material2 that referenced this pull request Sep 8, 2019
Follow-up from angular#16695. Adds a separate harness for `mat-drawer` and has `mat-sidenav` inherit from it.
crisbeto added a commit to crisbeto/material2 that referenced this pull request Sep 9, 2019
Follow-up from angular#16695. Adds a separate harness for `mat-drawer` and has `mat-sidenav` inherit from it.
@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 15, 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 P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants