From 6d0bf1c68bed5f76dfd29c1942c541c53b32d7c0 Mon Sep 17 00:00:00 2001 From: Jamie Curnow Date: Tue, 10 Jan 2023 12:47:01 +1000 Subject: [PATCH] fix failing test because of whitespace in randstring --- test/cypress/integration/api/Settings.spec.js | 1 + test/cypress/integration/api/Users.spec.js | 1 + 2 files changed, 2 insertions(+) diff --git a/test/cypress/integration/api/Settings.spec.js b/test/cypress/integration/api/Settings.spec.js index 5b9d636f..5b68d342 100644 --- a/test/cypress/integration/api/Settings.spec.js +++ b/test/cypress/integration/api/Settings.spec.js @@ -10,6 +10,7 @@ describe('Settings endpoints', () => { }); cy.randomString(12).then((str) => { settingName = 'cypressSetting_' + str; + settingName = settingName.trim(); }); }); diff --git a/test/cypress/integration/api/Users.spec.js b/test/cypress/integration/api/Users.spec.js index ade53df2..b28ebe48 100644 --- a/test/cypress/integration/api/Users.spec.js +++ b/test/cypress/integration/api/Users.spec.js @@ -11,6 +11,7 @@ describe('Users endpoints', () => { }); cy.randomString(10).then((str) => { uniqueEmail = 'jc_' + str + '@example.com'; + uniqueEmail = uniqueEmail.trim(); }); });