[2.1] Uninstalling an app now generates a dialog prompt

RESOLVED FIXED

Status

Firefox OS
Certification Suite
RESOLVED FIXED
3 years ago
3 years ago

People

(Reporter: jgriffin, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

3 years ago
Running the cert tests on 2.1 fails, because the tests fail to completely uninstall test apps, so the next time the app is installed, we get e.g.:

  File "cert.py", line 744, in <module>
    cli()
  File "cert.py", line 738, in cli
    _run(args, logger)
  File "cert.py", line 611, in _run
    args.version, addr)
  File "cert.py", line 163, in test_open_remote_window
    'RESULTS_URI="http://%s:%s/webapi_results";' % addr})
  File "cert.py", line 115, in install_app
    fxos_appgen.install_app(appname, 'app.zip', script_timeout=120000)
  File "/home/jgriffin/fxos-certsuite/certsuite_venv/local/lib/python2.7/site-packages/fxos_appgen-0.9-py2.7.egg/fxos_appgen/generator.py", line 325, in install_app
    raise Exception("%s is already installed" % app_name)
Exception: Open Remote Window Test App is already installed

On the phone, I see that when we attempt to uninstall an app programatically, we get a prompt that must be physically accepted before the app is uninstalled.

If we could automate this prompt, this problem would be solved.
(Reporter)

Comment 1

3 years ago
The dialog reads:  "Embed Apps Test App (for example) and all of its data will be deleted."  "Cancel|Delete"
(Reporter)

Comment 2

3 years ago
(In reply to Jonathan Griffin (:jgriffin) from comment #1)
> The dialog reads:  "Embed Apps Test App (for example) and all of its data
> will be deleted."  "Cancel|Delete"

This is generated at https://github.com/mozilla-b2g/gaia/blob/master/apps/verticalhome/js/app_manager.js#L71
(Reporter)

Comment 3

3 years ago
We can press the "Delete" button by doing:

m.switch_to_frame()
b = m.find_element('css selector', 'gaia-confirm .confirm')
b.click()
(Reporter)

Comment 4

3 years ago
Fixed with https://github.com/mozilla-b2g/fxos-appgen/commit/2f0c53503c837a1252d229ca91f65704e80854da
Status: NEW → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.