Closed
Bug 1434906
Opened 6 years ago
Closed 6 years ago
Remove dependency to datetimePage.html in test_date_time_value.py
Categories
(Remote Protocol :: Marionette, enhancement, P3)
Tracking
(firefox60 fixed)
RESOLVED
FIXED
mozilla60
Tracking | Status | |
---|---|---|
firefox60 | --- | fixed |
People
(Reporter: whimboo, Assigned: starsandspirals, Mentored)
References
Details
(Keywords: good-first-bug, Whiteboard: [lang=py])
User Story
For steps in how to get started please consult our documentation for new users: https://firefox-source-docs.mozilla.org/testing/marionette/marionette/NewContributors.html In the case of questions you can find us on IRC in the #ateam channel.
Attachments
(1 file, 1 obsolete file)
The following test is using an external HTML testcase, which is simple enough to get integrated as data URL directly into the test. For Marionette unit tests we make use of the `inline` method. Here an example: https://dxr.mozilla.org/mozilla-central/rev/a928be5dacc3b544e29c0612b3f8cda6447df802/testing/marionette/harness/marionette_harness/tests/unit/test_typing.py#14 The same method should be applied to the following test: https://dxr.mozilla.org/mozilla-central/rev/default/testing/marionette/harness/marionette_harness/tests/unit/test_date_time_value.py By adding as minimal necessary code from the following HTML testcase: https://dxr.mozilla.org/mozilla-central/rev/default/testing/marionette/harness/marionette_harness/www/datetimePage.html The HTML testcase should be deleted afterward.
Assignee | ||
Comment 1•6 years ago
|
||
Is it okay if I submit a patch for this? This is the first bug I've worked on!
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Reporter | ||
Comment 4•6 years ago
|
||
(In reply to Daniel Marshall (:starsandspirals) from comment #1) > Is it okay if I submit a patch for this? This is the first bug I've worked > on! Surely! It's great to see that you were even able to attach a patch via mozreview without any help. Good work! Once it is ready please make sure to also flag r? from me. You can do that when clicking review on one of your attachments. Thanks!
Assignee: nobody → daniel
Status: NEW → ASSIGNED
Assignee | ||
Updated•6 years ago
|
Attachment #8948813 -
Flags: review?(hskupin)
Attachment #8948814 -
Flags: review?(hskupin)
Reporter | ||
Comment 5•6 years ago
|
||
mozreview-review |
Comment on attachment 8948813 [details] Bug 1434906 - Removed dependency to datetimePage.html in test_date_time_value.py https://reviewboard.mozilla.org/r/218184/#review224952 Did you run the test to verify that it works? As what I can see it fails. Please run the test and verify yourself what's missing. ::: testing/marionette/harness/marionette_harness/tests/unit/test_date_time_value.py:20 (Diff revision 1) > + return "data:text/html;charset=utf-8,{}".format(urllib.quote(doc)) > + > + > class TestDateTime(MarionetteTestCase): > def test_set_date(self): > - test_html = self.marionette.absolute_url("datetimePage.html") > + self.marionette.navigate(inline("<input id=\"date-test\" type=\"date\"/>") You can use single quotes inside the string to not have to use the escape characters.
Attachment #8948813 -
Flags: review?(hskupin) → review-
Reporter | ||
Comment 6•6 years ago
|
||
mozreview-review |
Comment on attachment 8948814 [details] Bug 1434906 - Removed dependency to datetimePage.html in test_date_time_value.py; https://reviewboard.mozilla.org/r/218186/#review224956 Please combine this commit with the other one by using `hg histedit`. Thanks.
Attachment #8948814 -
Flags: review?(hskupin)
Comment hidden (mozreview-request) |
Assignee | ||
Updated•6 years ago
|
Attachment #8948813 -
Attachment is obsolete: true
Assignee | ||
Comment 8•6 years ago
|
||
I fixed the missing import statement, replaced the escape characters with single quotes, and combined the commits. Thanks for the feedback!
Reporter | ||
Comment 9•6 years ago
|
||
mozreview-review |
Comment on attachment 8948814 [details] Bug 1434906 - Removed dependency to datetimePage.html in test_date_time_value.py; https://reviewboard.mozilla.org/r/218186/#review225590 This patch now misses the removal of the HTML testcase file. Maybe it got lost during a rebase?
Attachment #8948814 -
Flags: review?(hskupin) → review-
Assignee | ||
Comment 10•6 years ago
|
||
The patch seems to include the removal of the HTML file to me; I can't find the file any more, and when I look at the commit on reviewboard.mozilla.org, it says that datetimePage.html has been deleted. Am I making a silly mistake?
Flags: needinfo?(hskupin)
Reporter | ||
Comment 11•6 years ago
|
||
It's strange. When I checked it this morning I haven't seen it. Now it is present. Sorry, so that seems to have been my own fault. The patch is indeed fine! Thanks a lot.
Flags: needinfo?(hskupin)
Reporter | ||
Comment 12•6 years ago
|
||
mozreview-review |
Comment on attachment 8948814 [details] Bug 1434906 - Removed dependency to datetimePage.html in test_date_time_value.py; https://reviewboard.mozilla.org/r/218186/#review225756
Attachment #8948814 -
Flags: review- → review+
Reporter | ||
Comment 13•6 years ago
|
||
Additionally to the review I triggered a try build via mozreview. If results are all green I will get it landed.
Comment 14•6 years ago
|
||
Pushed by hskupin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/659180649c65 Removed dependency to datetimePage.html in test_date_time_value.py; r=whimboo
Comment 15•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/659180649c65
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
status-firefox60:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla60
Reporter | ||
Comment 16•6 years ago
|
||
Daniel, if you are interested to work on a more challenging bug please let me know.
Assignee | ||
Comment 17•6 years ago
|
||
(In reply to Henrik Skupin (:whimboo) from comment #16) > Daniel, if you are interested to work on a more challenging bug please let > me know. Yes, I would definitely be interested in working on something else!
Updated•1 year ago
|
Product: Testing → Remote Protocol
You need to log in
before you can comment on or make changes to this bug.
Description
•