Skip :guiset test on OSX

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

View file

@ -114,6 +114,15 @@ describe("webdriver", () => {
return [newtab, result]
}
// A simple ternany doesn't work inline :(
function testbutskipplatforms(...platforms){
if (platforms.includes(os.platform)) {
return test.skip
}
return test
}
test("`:rssexec` works", async () => {
const driver = await getDriver()
try {
@ -174,7 +183,7 @@ describe("webdriver", () => {
}
})
test("`:guiset` works", async () => {
testbutskipplatforms("darwin")("`:guiset` works", async () => {
const { driver, newProfiles } = await getDriverAndProfileDirs()
try {
// Then, make sure `:guiset` is offering completions