Fixes #1711. Ensure change event fires when same image is selected.#1718
Conversation
zoepage
left a comment
There was a problem hiding this comment.
It's a nice solution! Thanks!
One test is failing:
× firefox on any platform - Comments (auth) - Add a screenshot to a comment
AssertionError: The image was correctly uploaded and its URL was copied to the comment text.: expected '' to include '[
@zoepage Did that fail for you locally? In Chrome or Firefox? Interesting that Travis passed all tests. |
|
All tests are passing for me locally as well, in Chrome and Firefox.
|
workon webcompatcom
git checkout master
git fetch webcompat
git merge webcompat/master
node -v; npm -v
# v6.10.2
# 3.10.10
git checkout -b issues/1711/1 webcompat/issues/1711/1
# Branch issues/1711/1 set up to track remote branch issues/1711/1 from webcompat.
# Switched to a new branch 'issues/1711/1'
python run.py -t
# Starting server in ~*TEST MODE*~
# * Running on http://localhost:5000/ (Press CTRL+C to quit)
# * Restarting with stat
# Starting server in ~*TEST MODE*~Another window and Firefox 55.0.2 workon webcompatcom
java -version
# java version "1.8.0_111"
# Java(TM) SE Runtime Environment (build 1.8.0_111-b14)
# Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)
node_modules/.bin/intern-runner config=tests/internand… lol? |
|
What in the world. |
|
If tests are passing on Travis, I'm not sure what to do about failures on y'alls local machines. We trust Travis as the main source of truth for tests... |
|
@zoepage can you change the sleep here to like, 5000 or something and re-run this test? I wonder if we're running into timeouts based on different machines. (either way, this test failure shouldn't block, IMO -- these changes are unrelated to the codepaths this test is testing -- issue comment screenshots have nothing to do with |
Never trust the humans, I agree. |
|
FYI, tests are passing 🎉 |
thanks! |
|
Unrelated to this PR, but I wonder if @andreastt would be interested by the results in comment #1718 (comment) aka Chrome passing all the tests and Firefox randomly failing them. |
|
@karlcow With the limited amount of information that is available here, it is impossible to say anything definite about them. I am assuming you are expecting parity in results and for the Firefox tests to pass.
Without a concrete idea what you are doing and what you are expecting the result to be, and a geckodriver trace-level log (see the README on how to emit one), I can only make educated guesses what might be causing Firefox to “randomly fail them”. |
|
(note: travis is now failing on that same test that @zoepage mentioned, lol -- i'll push a follow up fix to master) |
|
@miketaylr is the reason for the failing test the timeout for the response? |


r? @zoepage