Fix dashboard report image download (edx-release hotfix) - #106
Conversation
0f201e0 to
74f8cda
Compare
|
The tests are failing because the version of xblock-sdk this is using does not include the version of bok choy that allows us to test screenshots. @bradenmacdonald shall I just remove the tests from this hotfix PR and put them in a PR against master? |
e8f8faa to
415845d
Compare
| """ | ||
| self.assertScreenshot('image', 'dashboard-image', threshold=3000) | ||
|
|
||
| @check_dashboard_and_report(SIMPLE_DASHBOARD, image='//courses.edx.org/c4x/HarvardX/GSE3x/asset/swoop-bg.png') |
There was a problem hiding this comment.
If your test relies on an an external image, it should be hosted on GitHub.
|
@omarkhan Sure, if you want to use screenshot tests, you can include them only in the master version. For the screenshots, is it possible to include some colorization in one of the segments of the image? That would be a more comprehensive test. (See screenshot I attached to the OC ticket). |
a8b91d5 to
db51593
Compare
|
@bradenmacdonald I have removed the tests from this PR, but the existing tests are failing on circleci. I did some digging and it looks like none of the test setup (installing test requirements, using the |
|
@bradenmacdonald I have opened another PR for master that includes tests, including a test for the colorized overlays: #107 |
|
@omarkhan We use CircleCI on |
|
@bradenmacdonald then I guess this is ready to go, once I get your +1 |
|
👍 |
db51593 to
85f9a26
Compare
|
@tobz this is ready for upstream review, can you take a look? Thanks! |
|
LGTM. 👍 |
Fix dashboard report image download (edx-release hotfix)
The dashboard report image download can currently fail in 2 different ways:
SecurityErroris thrown, and nothing happens.//(no explicit protocol) or the url is relative (e.g./static/...), and it hasn't yet been cached by the browser, it will fail to show up in the downloaded report.This pull request fixes both issues, by: