Closed
Bug 1231467
Opened 9 years ago
Closed 9 years ago
[TV][2.5][Marketplace] Create offline cache content for Marketplace
Categories
(Tracking Graveyard :: Marketplace, defect, P1)
Tracking Graveyard
Marketplace
Tracking
(blocking-b2g:2.5+)
RESOLVED
FIXED
blocking-b2g | 2.5+ |
People
(Reporter: jocheng, Assigned: Fischer)
References
Details
(Whiteboard: [ft:conndevices])
Attachments
(1 file)
9.60 KB,
application/zip
|
Details |
We need to create a offline cache content for TV 2.5 marketplace.
Reporter | ||
Comment 1•9 years ago
|
||
We need:
1. Put offline content (https://github.com/jostw/marketplace-tv-front-end/tree/gh-pages) on a mock server.
2. Use Preload.py to create a offline package from the website.
3. Revise the "origin" to https://marketplace.allizom.org/tv
Flags: needinfo?(fliu)
Reporter | ||
Updated•9 years ago
|
blocking-b2g: --- → 2.5+
Comment 2•9 years ago
|
||
(In reply to Josh Cheng [:josh] from comment #1)
> We need:
> 1. Put offline content
> (https://github.com/jostw/marketplace-tv-front-end/tree/gh-pages) on a mock
> server.
> 2. Use Preload.py to create a offline package from the website.
> 3. Revise the "origin" to https://marketplace.allizom.org/tv
Correctness:
1. Use preload.py script to get a version from testing server, and manually edit it's manifest.
2. The origin / manifestURL should point to production server, i.e. https://marketplace.firefox.com/tv/
Test:
Since there is no production server now, we could only test offline cases. Should cover the following scenarios:
1. Boot-up without network connection, see if offline screen shows.
2. connected to a network, see if "sever not found" (or something similar) error page shows.
3. disconnect network, and the offline screen displays when you try to access any link.
Flags: needinfo?(fliu)
Comment 3•9 years ago
|
||
(In reply to Evelyn Hung [:evelyn] from comment #2)
> (In reply to Josh Cheng [:josh] from comment #1)
> > We need:
> > 1. Put offline content
> > (https://github.com/jostw/marketplace-tv-front-end/tree/gh-pages) on a mock
> > server.
> > 2. Use Preload.py to create a offline package from the website.
> > 3. Revise the "origin" to https://marketplace.allizom.org/tv
>
> Correctness:
> 1. Use preload.py script to get a version from testing server, and manually
> edit it's manifest.
> 2. The origin / manifestURL should point to production server, i.e.
> https://marketplace.firefox.com/tv/
>
> Test:
> Since there is no production server now, we could only test offline cases.
> Should cover the following scenarios:
> 1. Boot-up without network connection, see if offline screen shows.
> 2. connected to a network, see if "sever not found" (or something similar)
> error page shows.
should be marketplace's customized error page: "We're sorry...". :)
> 3. disconnect network, and the offline screen displays when you try to
> access any link.
Reporter | ||
Updated•9 years ago
|
Flags: needinfo?(fliu)
Reporter | ||
Comment 4•9 years ago
|
||
Hi Fischer,
DO you have any update? Thanks
Assignee | ||
Comment 5•9 years ago
|
||
Flags: needinfo?(fliu)
Assignee | ||
Comment 6•9 years ago
|
||
The test result as below:
1. Put the attachment marketplace.prod-1210.zip under the external-apps folder and then make TV build
2. without Internet, open the target marketplace.prod app for the 1st time
3. The preloaded offline cache content of the target marketplace.prod app is present as expected
4. Turn on Internet
5. Open the target marketplace.prod app with Internet. The screen is blank white because the network downloads stop at 404 response.
6. Reopen the target marketplace.prod app with Internet. The screen shows the standard marketplace's not-found page because the network downloads proceed to download the standard not-found page.
Conclusion:
1. The preloaded offline cache works as expected and pass this test.
2. In the step 5 & 6, since the real TV marketplace is still unavailable, not-found result is expected.
3. Although the outcomes of the step 5 & 6 are different, in the bug 1228974 the example preload hosted app(hosted app on a available website) loads page correctly with internet. Since this bug aims to verify if the preloaded offline cache could still works with hosted app on a unavailable website and the bug 1228974's test result is passed. We make this bug fixed currently and will test the scenario of internet connected when the real website is avaiable.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Updated•6 years ago
|
Product: Tracking → Tracking Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•