also looking at this
test(mobile-e2e): prove Android reports approximate location as granted
#214
5 files
+85
-5
| @@ -170,8 +170,13 @@ | ||
| 170 | 170 | // already holds used to wait for an authorization change that never |
| 171 | 171 | // comes, because nothing changes. The harness grants it with |
| 172 | 172 | // `simctl privacy` before launch, so both calls must answer at once. |
| 173 | // | |
| 174 | // And #192 on Android, where a device with location granted reported | |
| 175 | // something other than `granted`. The harness grants approximate | |
| 176 | // location only, with `pm grant`, which is the case a bridge | |
| 177 | // requiring precise location gets wrong. | |
| 173 | 178 | name: 'permissions.location.granted', |
| 174 | platforms: ['ios'], | |
| 179 | platforms: ['ios', 'android'], | |
| 175 | 180 | run: function () { |
| 176 | 181 | return withTimeout(function () { return window.craft.permissions.check('location') }).then(function (checked) { |
| 177 | 182 | if (checked.state !== 'resolved') return 'permissions.check ' + checked.state + ' ' + (checked.error ? checked.error.message : '') |