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

Testing of datepicker with protractor #14052

Open
danielsuter opened this issue Nov 9, 2018 · 1 comment
Open

Testing of datepicker with protractor #14052

danielsuter opened this issue Nov 9, 2018 · 1 comment
Labels
area: material/datepicker P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Comments

@danielsuter
Copy link

Bug, feature request, or proposal:

I'm trying to e2e test with protractor a page containing a angular material datepicker. I'm using the latest version of Angular and Angular material (7). I'm matching the input field
await $('input[placeholder="mytext"]').clear();
await $('input[placeholder="mytext"]').sendKeys("01.01.2011");

The sendkeys works but not the clear. Usually that's the way to clear an input field. I'm using Chrome as a test browser.

What is the expected behavior?

$().clear() should clear the input field.

What is the current behavior?

$().clear() does nothing.

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Angular 7
Typescript 3.1.x
Latest chrome

@vivian-hu-zz vivian-hu-zz added the P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent label Nov 9, 2018
@dik-garri
Copy link

dik-garri commented Aug 5, 2022

@andrewseguin @vivian-hu-zz @mmalerba Any updates here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: material/datepicker P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Projects
None yet
Development

No branches or pull requests

5 participants