Add utilities to check platform to determine if a test should run (#5983)
* Add tests for utility to bypass unreliable tests * Limit skip to just Windows * Ignore unit tests from Playwright * A snapshot a day keeps the bugs away! 📷🐛 * A snapshot a day keeps the bugs away! 📷🐛 * A snapshot a day keeps the bugs away! 📷🐛 * A snapshot a day keeps the bugs away! 📷🐛 --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
		| @ -55,6 +55,18 @@ export const commonPoints = { | ||||
| export const editorSelector = '[role="textbox"][data-language="kcl"]' | ||||
| type PaneId = 'variables' | 'code' | 'files' | 'logs' | ||||
|  | ||||
| export function runningOnLinux() { | ||||
|   return process.platform === 'linux' | ||||
| } | ||||
|  | ||||
| export function runningOnMac() { | ||||
|   return process.platform === 'darwin' | ||||
| } | ||||
|  | ||||
| export function runningOnWindows() { | ||||
|   return process.platform === 'win32' | ||||
| } | ||||
|  | ||||
| export function orRunWhenFullSuiteEnabled() { | ||||
|   const branch = process.env.GITHUB_REF?.replace('refs/heads/', '') | ||||
|   return branch !== 'all-e2e' | ||||
|  | ||||
		Reference in New Issue
	
	Block a user