Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

fix(inputs): ignoring input events in IE caused by placeholder changes #9697

Closed
wants to merge 1 commit into from

Conversation

caitp
Copy link
Contributor

@caitp caitp commented Oct 20, 2014

No description provided.

@caitp
Copy link
Contributor Author

caitp commented Oct 20, 2014

@jbedard want to add a few variations to this test? This only captures a tiny subset of the issues I think.

Anyways, if travis is green I want to land this, but I'm going to be out for a few hours, so you have some time to add stuff if needed

@caitp
Copy link
Contributor Author

caitp commented Oct 20, 2014

@IgorMinar we don't seem to be running e2e tests on ie anyways, so this doesn't seem supper helpful. Adding another browser would probably cause zillions of flakes

var supportInputEvent = 'oninput' in document.createElement('div');

if (msie < 12) {
// IE10/11 have many bugs with input event, don't use it.
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't IE9 be mentioned here ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ie 9v doesn't support input events

Copy link
Member

Choose a reason for hiding this comment

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

In sniffer.js and its spec, it is implied that it does implement input events, we just prefer to ignore them, because the implementation is so fubared.
Either way (no implementation vs fubared&ignored) it probably makes sense to add a comment here, so future "touchers" don't wonder: "Hm...did we miss IE9 here ?"

@jbedard
Copy link
Collaborator

jbedard commented Oct 20, 2014

I can add more hopefully later today. Should we remove the unit tests and replace them all with e2e?

@caitp
Copy link
Contributor Author

caitp commented Oct 20, 2014

Yeah probably

@caitp
Copy link
Contributor Author

caitp commented Oct 20, 2014

@juliemr what do these mean:

[internet explorer 11 Windows 8.1 #4] 1) doc.angularjs.org API pages should change the page content when clicking a link to a service
[internet explorer 11 Windows 8.1 #4] at 26.986s [Mon, 20 Oct 2014 20:31:26 GMT]
[internet explorer 11 Windows 8.1 #4] Message:
[internet explorer 11 Windows 8.1 #4] Expected 'AngularJS API Docs' to equal 'ngClick'.
[internet explorer 11 Windows 8.1 #4] Stacktrace:
[internet explorer 11 Windows 8.1 #4] Error: Failed expectation
[internet explorer 11 Windows 8.1 #4] at null. (/home/travis/build/angular/angular.js/docs/app/e2e/api-docs/api-pages.scenario.js:22:34)
[internet explorer 11 Windows 8.1 #4]

It's pretty hard to understand that error :(

@petebacondarwin
Copy link
Contributor

That test is testing the docs application - compared to the examples in the docs

@caitp
Copy link
Contributor Author

caitp commented Oct 20, 2014

Yes, but the problem is that it's failing, we need it to not fail. If we don't care about IE11 errors in the docs app, then we can conditionally not run IE for it. Otherwise we need to figure out what specifically is failing, and fix it

@petebacondarwin
Copy link
Contributor

I suspect that the e2e middleware might be messing with the test?

@petebacondarwin
Copy link
Contributor

Or not :-)

@petebacondarwin
Copy link
Contributor

So I guess the problem is that the page is not changing correctly when you click on the ngClick link on the home page.

https://github.com/angular/angular.js/blob/master/docs/app/e2e/api-docs/api-pages.scenario.js#L22

@caitp
Copy link
Contributor Author

caitp commented Oct 20, 2014

there are like at least 5 docs app failures in IE11, which is not a great sign

@petebacondarwin
Copy link
Contributor

Question is - is the app failing because it is broken on IE or is Protractor failing because webDriver on IE is bit rubbish?

@petebacondarwin
Copy link
Contributor

Let me boot up my Win8 machine

@caitp
Copy link
Contributor Author

caitp commented Oct 20, 2014

I think the app is at least usable in IE11 --- but it's possible that the tests aren't testing very important things. It worked on SL last time I tried it

@petebacondarwin
Copy link
Contributor

If I go to the docs site (in IE11) and click on the ngClick link then it does navigate to the ngClick page.

@caitp
Copy link
Contributor Author

caitp commented Oct 20, 2014

Could be an issue with webdriver

@caitp
Copy link
Contributor Author

caitp commented Oct 20, 2014

could also just be mis-configured, not sure exactly

@caitp
Copy link
Contributor Author

caitp commented Oct 20, 2014

@juliemr is my protractor configuration (for adding IE) just really wrong, or do you think these are legitimate failures? I'm not sure

@caitp
Copy link
Contributor Author

caitp commented Oct 30, 2014

ping @juliemr

@juliemr
Copy link
Member

juliemr commented Nov 7, 2014

Sorry, the ping hit me in the middle of "aaaah conferences ignore all email".

Let me know if there's still any issues I could help with.

@caitp
Copy link
Contributor Author

caitp commented Nov 7, 2014

well I still haven't gotten e2e tests running on IE

If you could have a go at getting tests running on IE, it would be good. It doesn't need to merge today though

@caitp
Copy link
Contributor Author

caitp commented Dec 1, 2014

@juliemr we still really need to get these tests running on IE --- I haven't been able to get that working during my attempts, so it would be really good to get some help with that.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants