mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
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';
|
||
|
|
}
|
||
|
|
};
|