-
Notifications
You must be signed in to change notification settings - Fork 308
Conversation
❗️
|
travis-ci/travis-ci#3225 (comment) (an hour ago :o) |
Could also potentially switch to Firefox (post-#4322 :o). |
The failures w/ 2.0.0 I think I'm also seeing locally w/ 2.1.1. Looking into it ... |
Didn't I already post this somewhere?
|
I believe our ttw tests function by injecting scripts into the page, and that is running afoul of our CSP. |
Looks like 2.1.1 chokes on the CSP as 2.0.0 does, and then also on cross-domain cookies.
|
Best suggestion in ariya/phantomjs#11337 is to run through a proxy and strip the CSP header. ariya/phantomjs#13114 is longer ... |
I'm going to explore the Firefox option. |
(Best workaround to date in ariya/phantomjs#13114 is also to use a proxy.) |
Having pretty good luck with Firefox, though I'm having to upgrade Selenium to duck a "profile not found" error, and the latest Selenium requires this geckodriver to be installed—I'm pretty sure you need that and Firefox itself. Then I believe I'm seeing some timing bugs that I may have been seeing occasionally under Chrome anyway. |
Alright, pushed dd833f2. I'm expecting some timing failures in |
Will we need this xvfb hack? |
|
https://travis-ci.org/gratipay/gratipay.com/builds/214804197 💃 |
Yes! |
f7e4974
to
27202ac
Compare
With 27202ac I'm expecting Travis to be green! 💃 |
Ready for review and merge! Note that this includes #4390. |
This should squash #4362. Also: - adapt to Firefox (`Keys.ENTER` vs `\n`) - fix js memory leak in notifications (`delete $dialog`) - only open one browser; reuse between classes - git ignore geckodriver.log
b680cf4
to
6786d35
Compare
Ready for review @rohitpaulk @nobodxbodon @JessaWitzel @kaguillera et al. |
@@ -20,5 +20,8 @@ docs/gratipay.rst | |||
_vimrc_local.vim | |||
.transifexrc | |||
npm-debug.log | |||
|
|||
# ttw tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoopsy doopsy
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh it's a valid comment :D I thought it was a line used for testing :P
gratipay/testing/browser.py
Outdated
while time.time() < end_time: | ||
if not self.has_element(selector): | ||
return | ||
raise NeverLeft() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this could make it a bit difficult to debug failures - (What never left?). Maybe we could make it better by adding a message saying that The element specified by #{selector} did not disappear
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks in 3c1e47e like passing in the selector is sufficient to get it out again in a traceback.
You good here, @rohitpaulk? |
Looks good to me! |
!m @rohitpaulk 💃 |
Fix #4359.