-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #858 from webdriverio-community/sm/improve-no-binary
feat: improved standalone interface
- Loading branch information
Showing
65 changed files
with
1,237 additions
and
1,224 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# JS Test Files (these are transpiled from TS) | ||
e2e/test/js/*.spec.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,15 @@ | ||
import { contextBridge, ipcRenderer } from 'electron'; | ||
const { contextBridge, ipcRenderer } = require('electron'); | ||
const isTest = process.env.TEST === 'true'; | ||
|
||
(async () => { | ||
// util.js is an ESM module so we need to use dynamic import | ||
const { isTest } = await import('./util.js'); | ||
if (isTest) { | ||
require('wdio-electron-service/preload'); | ||
} | ||
|
||
if (isTest) { | ||
require('wdio-electron-service/preload'); | ||
} | ||
const validChannels = ['increase-window-size', 'decrease-window-size']; | ||
|
||
const validChannels = ['increase-window-size', 'decrease-window-size']; | ||
const invoke = (channel: string, ...data: unknown[]) => | ||
validChannels.includes(channel) ? ipcRenderer.invoke(channel, data) : Promise.reject(); | ||
|
||
const invoke = (channel: string, ...data: unknown[]) => | ||
validChannels.includes(channel) ? ipcRenderer.invoke(channel, data) : Promise.reject(); | ||
|
||
contextBridge.exposeInMainWorld('api', { | ||
invoke, | ||
}); | ||
})(); | ||
contextBridge.exposeInMainWorld('api', { | ||
invoke, | ||
}); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,16 @@ | ||
import { contextBridge, ipcRenderer } from 'electron'; | ||
|
||
(async () => { | ||
// util.js is an ESM module so we need to use dynamic import | ||
const { isTest } = await import('./util.js'); | ||
const isTest = process.env.TEST === 'true'; | ||
|
||
if (isTest) { | ||
require('wdio-electron-service/preload'); | ||
} | ||
if (isTest) { | ||
require('wdio-electron-service/preload'); | ||
} | ||
|
||
const validChannels = ['increase-window-size', 'decrease-window-size']; | ||
const validChannels = ['increase-window-size', 'decrease-window-size']; | ||
|
||
const invoke = (channel: string, ...data: unknown[]) => | ||
validChannels.includes(channel) ? ipcRenderer.invoke(channel, data) : Promise.reject(); | ||
const invoke = (channel: string, ...data: unknown[]) => | ||
validChannels.includes(channel) ? ipcRenderer.invoke(channel, data) : Promise.reject(); | ||
|
||
contextBridge.exposeInMainWorld('api', { | ||
invoke, | ||
}); | ||
})(); | ||
contextBridge.exposeInMainWorld('api', { | ||
invoke, | ||
}); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,16 @@ | ||
import { contextBridge, ipcRenderer } from 'electron'; | ||
|
||
(async () => { | ||
// util.js is an ESM module so we need to use dynamic import | ||
const { isTest } = await import('./util.js'); | ||
const isTest = process.env.TEST === 'true'; | ||
|
||
if (isTest) { | ||
require('wdio-electron-service/preload'); | ||
} | ||
if (isTest) { | ||
require('wdio-electron-service/preload'); | ||
} | ||
|
||
const validChannels = ['increase-window-size', 'decrease-window-size']; | ||
const validChannels = ['increase-window-size', 'decrease-window-size']; | ||
|
||
const invoke = (channel: string, ...data: unknown[]) => | ||
validChannels.includes(channel) ? ipcRenderer.invoke(channel, data) : Promise.reject(); | ||
const invoke = (channel: string, ...data: unknown[]) => | ||
validChannels.includes(channel) ? ipcRenderer.invoke(channel, data) : Promise.reject(); | ||
|
||
contextBridge.exposeInMainWorld('api', { | ||
invoke, | ||
}); | ||
})(); | ||
contextBridge.exposeInMainWorld('api', { | ||
invoke, | ||
}); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# JS Test Files (these are transpiled from TS) | ||
test/js | ||
|
||
# Logs | ||
wdio-logs* | ||
wdio-multiremote-logs* |
Oops, something went wrong.