diff --git a/cypress/utils/index.js b/cypress/utils/index.js index 3ecf7c41c..3df987f62 100644 --- a/cypress/utils/index.js +++ b/cypress/utils/index.js @@ -30,4 +30,4 @@ export const getSearchParams = url => { }, {}) } -export const randHash = () => Math.random().toString(36).replace(/[^a-z]+/g, '').substr(0, 10) +export const randHash = () => Math.random().toString(36).replace(/[^a-z]+/g, '').slice(0, 10)