mirror of https://github.com/grafana/grafana
Chore: adding platform independent typings for e2e tests. (#27768)
* added typings that are platform independent in the tests. * fixing nits.pull/27771/head
parent
42476811a4
commit
7feaddea8f
@ -0,0 +1 @@ |
||||
export { undo } from './undo'; |
||||
@ -0,0 +1,19 @@ |
||||
// 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'; |
||||
} |
||||
}; |
||||
Loading…
Reference in new issue