Closed
Bug 971625
Opened 11 years ago
Closed 11 years ago
[settings] refactor marionette test for support panel
Categories
(Firefox OS Graveyard :: Gaia::Settings, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: gasolin, Assigned: gasolin)
References
Details
Attachments
(1 file)
Overview Description:
Refactor marionette test for support panel
Steps to Reproduce:
1) run make test-perf APP=settings
2) run make test-integration APP=settings
Actual Results:
No such integration test for support panel
Expected Results:
fix criteria addressed by Evan
Reproducibility:
100%
Additional Information:
Please refer to bug 969265 for more information.
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → gasolin
Assignee | ||
Comment 1•11 years ago
|
||
Assignee | ||
Comment 2•11 years ago
|
||
Comment on attachment 8376982 [details] [review]
pull request redirect to github
refactor to fit jshint, and only enable test without SIM custom
Attachment #8376982 -
Flags: review?(evanxd)
Attachment #8376982 -
Flags: review?(arthur.chen)
Assignee | ||
Comment 3•11 years ago
|
||
Comment 4•11 years ago
|
||
Comment on attachment 8376982 [details] [review]
pull request redirect to github
Can we re-enable the tests with SIM custom? I believe that we disabled them because of there is no support.json file in the resource folder. I would suggest to mock the loadJSON function and make it returns a mock object of the support information for testing.
Attachment #8376982 -
Flags: review?(arthur.chen)
Comment 5•11 years ago
|
||
Hi Arthur,
If we could access loadJSON function in window.xxx.loadJSON.
We could just do
```
client.executeScript(function() {
var window = window.wrappedJSObject;
window.xxx.loadJSON({
json: data
});
});
```
to let it get the json data.
How do you think?
But why could we not just create the json file in the resource folder?
We just cannot do that technically, or?
Comment 6•11 years ago
|
||
The approach looks good!
support.json is a customization option. I think mocking the function would be easier and robust in this case.
Comment 7•11 years ago
|
||
Comment on attachment 8376982 [details] [review]
pull request redirect to github
It looks good.
Attachment #8376982 -
Flags: review?(evanxd) → review+
Assignee | ||
Comment 8•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•