Udpate cypress
This commit is contained in:
11
test/cypress/support/functions.js
Normal file
11
test/cypress/support/functions.js
Normal file
@ -0,0 +1,11 @@
|
||||
module.exports = {
|
||||
generateRandomString: function (length) {
|
||||
var result = '';
|
||||
var characters = 'ABCDEFGHIJK LMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
|
||||
var charactersLength = characters.length;
|
||||
for (var i = 0; i < length; i++) {
|
||||
result += characters.charAt(Math.floor(Math.random() * charactersLength));
|
||||
}
|
||||
return result;
|
||||
},
|
||||
};
|
Reference in New Issue
Block a user