Set profiledir on OSX tests

This commit is contained in:
Oliver Blanthorn 2020-06-21 12:20:42 +01:00
parent 3fe62b1be0
commit c0d8324642
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3

View file

@ -55,8 +55,8 @@ describe("webdriver", () => {
const newProfiles = fs.readdirSync(rootDir).map(p => path.join(rootDir, p))
.filter(p => p.match("moz") && !profiles.includes(p))
// Tridactyl's tmp profile detection is broken on windows
if (os.platform() == "win32") {
// Tridactyl's tmp profile detection is broken on windows and OSX
if (["win32", "darwin"].includes(os.platform())) {
await sendKeys(driver, `:set profiledir ${newProfiles[0]}<CR>`)
await driver.sleep(1000)
}