mirror of
https://github.com/grafana/grafana.git
synced 2025-08-01 06:11:51 +08:00

* Mark Scenes feature toggles as GA * Move old arch e2e to a new folder * Run E2E on scenes by default * Upgrade e2e-selectors to ensure the tests in Playwright works
20 lines
354 B
TypeScript
20 lines
354 B
TypeScript
// https://nodejs.org/api/os.html#os_os_platform
|
|
enum Platform {
|
|
osx = 'darwin',
|
|
windows = 'win32',
|
|
linux = 'linux',
|
|
aix = 'aix',
|
|
freebsd = 'freebsd',
|
|
openbsd = 'openbsd',
|
|
sunos = 'sunos',
|
|
}
|
|
|
|
export const undo = () => {
|
|
switch (Cypress.platform) {
|
|
case Platform.osx:
|
|
return '{cmd}z';
|
|
default:
|
|
return '{ctrl}z';
|
|
}
|
|
};
|