Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Conflicts: # example/package.json # example/yarn.lock # package.json
- Loading branch information
Showing
57 changed files
with
8,668 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
.eslintrc.js | ||
dist/ | ||
example/ | ||
fetchWindowsCapabilites.js | ||
mock.js | ||
|
||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import {driver, By2} from 'selenium-appium'; | ||
import {until} from 'selenium-webdriver'; | ||
|
||
const setup = require('../jest-setups/jest.setup'); | ||
jest.setTimeout(50000); | ||
|
||
beforeAll(() => { | ||
return driver.startWithCapabilities(setup.capabilites); | ||
}); | ||
|
||
afterAll(() => { | ||
return driver.quit(); | ||
}); | ||
|
||
describe('Test App', () => { | ||
test('Permissions present', async () => { | ||
await driver.wait( | ||
until.elementLocated(By2.nativeName('CODE_GENERATION:granted')), | ||
); | ||
await driver.wait( | ||
until.elementLocated(By2.nativeName('DOCUMENTS_LIBRARY:unavailable')), | ||
); | ||
await driver.wait(until.elementLocated(By2.nativeName('CONTACTS:denied'))); | ||
await driver.wait(until.elementLocated(By2.nativeName('LOCATION:blocked'))); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* eslint-disable no-undef */ | ||
import {windowsAppDriverCapabilities} from 'selenium-appium'; | ||
|
||
switch (platform) { | ||
case 'windows': | ||
const webViewWindowsAppId = 'PermissionsExample_nsp2ha5jnb6xr!App'; | ||
module.exports = { | ||
capabilites: windowsAppDriverCapabilities(webViewWindowsAppId), | ||
}; | ||
break; | ||
default: | ||
throw 'Unknown platform: ' + platform; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/* eslint-disable no-undef */ | ||
platform = 'windows'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.