mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 17:41:40 -05:00
Set profiledir on OSX tests
This commit is contained in:
parent
3fe62b1be0
commit
c0d8324642
1 changed files with 2 additions and 2 deletions
|
@ -55,8 +55,8 @@ describe("webdriver", () => {
|
||||||
const newProfiles = fs.readdirSync(rootDir).map(p => path.join(rootDir, p))
|
const newProfiles = fs.readdirSync(rootDir).map(p => path.join(rootDir, p))
|
||||||
.filter(p => p.match("moz") && !profiles.includes(p))
|
.filter(p => p.match("moz") && !profiles.includes(p))
|
||||||
|
|
||||||
// Tridactyl's tmp profile detection is broken on windows
|
// Tridactyl's tmp profile detection is broken on windows and OSX
|
||||||
if (os.platform() == "win32") {
|
if (["win32", "darwin"].includes(os.platform())) {
|
||||||
await sendKeys(driver, `:set profiledir ${newProfiles[0]}<CR>`)
|
await sendKeys(driver, `:set profiledir ${newProfiles[0]}<CR>`)
|
||||||
await driver.sleep(1000)
|
await driver.sleep(1000)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue