Clean up users before each test,

as we don't know which order they run
This commit is contained in:
Jamie Curnow 2023-05-31 21:44:27 +10:00
parent ac8fa0d737
commit 8d8921a0dd
No known key found for this signature in database
GPG Key ID: FFBB624C43388E9E
5 changed files with 5 additions and 0 deletions

View File

@ -5,6 +5,7 @@ describe('Certificates endpoints', () => {
let certID;
before(() => {
cy.resetUsers();
cy.getToken().then((tok) => {
token = tok;
});

View File

@ -6,6 +6,7 @@ describe('Full Certificate Provisions', () => {
let dnsID;
before(() => {
cy.resetUsers();
cy.getToken().then((tok) => {
token = tok;

View File

@ -7,6 +7,7 @@ describe('Settings endpoints', () => {
let settingName;
before(() => {
cy.resetUsers();
cy.getToken().then((tok) => {
token = tok;
});

View File

@ -5,6 +5,7 @@ describe('Upstream endpoints', () => {
let upstreamId;
before(() => {
cy.resetUsers();
cy.getToken().then((tok) => {
token = tok;
});

View File

@ -6,6 +6,7 @@ describe('Users endpoints', () => {
let myUserID = 0;
before(() => {
cy.resetUsers();
cy.getToken().then((tok) => {
token = tok;
});