Closed
Bug 1219631
Opened 9 years ago
Closed 9 years ago
Implement *test_browser_share_link.py* as an integration test in JavaScript
Categories
(Firefox OS Graveyard :: Gaia::Browser, defect)
Tracking
(feature-b2g:2.6+)
RESOLVED
FIXED
feature-b2g | 2.6+ |
People
(Reporter: whsu, Assigned: apastor)
References
Details
(Whiteboard: [gip-to-gij])
Attachments
(1 file)
Reporter | ||
Updated•9 years ago
|
Component: Gaia::UI Tests → Gaia::Browser
Updated•9 years ago
|
feature-b2g: --- → 2.6+
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → apastor
Comment 1•9 years ago
|
||
Assignee | ||
Comment 2•9 years ago
|
||
Comment on attachment 8696232 [details] [review]
[gaia] albertopq:1219631-share-test > mozilla-b2g:master
Jayme, could you please review that it covers the same case than the original one? Thanks!
Attachment #8696232 -
Flags: review?(jmercado)
Comment 3•9 years ago
|
||
Comment on attachment 8696232 [details] [review]
[gaia] albertopq:1219631-share-test > mozilla-b2g:master
As with bug 1219632, I believe this was meant to go to Johan not me.
Attachment #8696232 -
Flags: review?(jmercado) → review?(jlorenzo)
Assignee | ||
Comment 4•9 years ago
|
||
That's right, sorry for the confusion Jayme!
Comment 5•9 years ago
|
||
Comment on attachment 8696232 [details] [review]
[gaia] albertopq:1219631-share-test > mozilla-b2g:master
Like in bug 1219632, the test looks okay to me regarding the existing style.
Also like there, we can hide the implementation details (the waits, and frame switches), to just have the user's intent. For example:
> test('share url', function() {
> var url = server.url('windowopen.html');
>
> var browser = rocketbar.gotoBrowser(url);
> var activityPicker = browser.shareLink();
> var messageApp = activityPicker.chooseSms();
> assert.equal(messagesApp.Composer.messageInput.text(), url);
> });
Attachment #8696232 -
Flags: review?(jlorenzo) → review+
Assignee | ||
Comment 6•9 years ago
|
||
Fixed readability and landed!
Thanks
master: https://github.com/mozilla-b2g/gaia/commit/e3e744f65a9235c1827ee98e42e22a56b74295b2
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•