Closed Bug 805038 Opened 12 years ago Closed 6 years ago

write and automate-able marionette test for PermissionPromptService.js

Categories

(Core Graveyard :: DOM: Apps, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: ddahl, Unassigned)

References

Details

While working on bug 773114, I attempted several different times to write an automated test for the platform prompt that triggers the gaia front end that asks you to "remember the permission". 

There are several reasons why this was not working:

1. The contacts API is the only api that consumes this prompt, and Gaia via marionette does not have a scriptable way to load the contacts app. I event tried setting the homescreen to contacts, but that skipped over setting the initial permissions.

2. I attempted to use a python test as well, but was having too many stability issues with gaia.

I ended up testing the code by manually changing the sqlite value for the contacts app to "prompt", loading contacts and telling the prompt to remember the permission, then checking the database for the update.

I spent a fair amount of time talking to the automation team and decided to punt on this test - if anyone has ideas on this, please let me know.
Assignee: nobody → ddahl
Blocks: 773114
Jason:

Is this still an issue? Is there now a way to automate these tests?
Flags: needinfo?(jsmith)
Don't know.
Flags: needinfo?(jsmith)
(In reply to Jason Smith [:jsmith] from comment #2)
> Don't know.

Who should be cc'd that might know if we can write marionette tests for B2G permissions?
Assignee: ddahl → nobody
Product: Core → Core Graveyard
Core Graveyard / DOM: Apps is inactive. Closing all bugs in this component.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.