Run Chrome headless tests on CI

Closes #622
This commit is contained in:
Alex Crichton
2018-08-02 22:37:35 -07:00
parent 16c2bee9c5
commit 5d4c135c31
2 changed files with 26 additions and 3 deletions

View File

@ -300,6 +300,16 @@ impl Client {
}
let request = json!({
"desiredCapabilities": {
"goog:chromeOptions": {
"args": [
"headless",
// See https://stackoverflow.com/questions/50642308/
// for what this funky `disable-dev-shm-usage`
// option is
"disable-dev-shm-usage",
"no-sandbox",
],
},
}
});
let x: Response = self.post("/session", &request)?;