mirror of
https://github.com/Alvin-Zilverstand/nginx-proxy-manager.git
synced 2026-11-25 15:43:14 +01:00
Fix for cypress randomstrings
This commit is contained in:
1 parent
f6b219772d
commit
0a50672ab6
4 files changed
+20
-18
No files matched your search
@@ -1,15 +1,16 @@
|
||||
/// <reference types="Cypress" />
|
||||
|
||||
const fns = require('../support/functions');
|
||||
|
||||
describe('Settings endpoints', () => {
|
||||
let token;
|
||||
let settingName = 'cypressSetting_' + fns.generateRandomString(12);
|
||||
let settingName;
|
||||
|
||||
before(() => {
|
||||
cy.getToken().then((tok) => {
|
||||
token = tok;
|
||||
});
|
||||
cy.randomString(12).then((str) => {
|
||||
settingName = 'cypressSetting_' + str;
|
||||
});
|
||||
});
|
||||
|
||||
it('Should be able to create new setting', function() {
|
||||
|
||||
@@ -1,16 +1,17 @@
|
||||
/// <reference types="Cypress" />
|
||||
|
||||
const fns = require('../support/functions');
|
||||
|
||||
describe('Users endpoints', () => {
|
||||
let token;
|
||||
let uniqueEmail = 'jc_' + fns.generateRandomString(10) + '@example.com';
|
||||
let myUserID = 0;
|
||||
let uniqueEmail;
|
||||
let myUserID = 0;
|
||||
|
||||
before(() => {
|
||||
cy.getToken().then((tok) => {
|
||||
token = tok;
|
||||
});
|
||||
cy.randomString(10).then((str) => {
|
||||
uniqueEmail = 'jc_' + str + '@example.com';
|
||||
});
|
||||
});
|
||||
|
||||
it('Should be able to get yourself', function() {
|
||||
|
||||
Reference in new issue
Block a user