Add webdriver and fixed travis build

This commit is contained in:
Sambo Chea 2020-08-20 14:01:32 +07:00
parent 40549a6303
commit 963e48e56f
2 changed files with 16 additions and 1 deletions

View File

@ -52,7 +52,7 @@ matrix:
env: RUST_BACKTRACE=1
before_script:
- (test -x $HOME/.cargo/bin/cargo-install-update || cargo install cargo-update)
- (test -x $HOME/.cargo/bin/cargo-generate || cargo install --vers "^0.2" cargo-generate)
- (test -x $HOME/.cargo/bin/cargo-generate || cargo install --vers "0.2.2" cargo-generate)
- cargo install-update -a
- rustup target add wasm32-unknown-unknown
script:

15
webdriver.json Normal file
View File

@ -0,0 +1,15 @@
{
"moz:firefoxOptions": {
"prefs": {
"media.navigator.streams.fake": true,
"media.navigator.permission.disabled": true
},
"args": []
},
"goog:chromeOptions": {
"args": [
"--use-fake-device-for-media-stream",
"--use-fake-ui-for-media-stream"
]
}
}