test: actually use random util in tests

This commit is contained in:
MiniDigger | Martin 2024-05-04 12:06:49 +02:00
parent 122f110c1d
commit 0d8aa07de9
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ Feature("New Org Page");
Scenario("Test New Org", async ({ I, util, IndexPage }) => {
await util.login();
util.openHangarPage("/neworganization");
const name = "E2EOrg-" + Math.floor(Math.random() * 10000);
const name = "E2EOrg-" + util.randomNumber(10000);
I.fillField("input[name='name']", name);
I.wait(1);
I.click("button[title='Create Org']");

View File

@ -5,7 +5,7 @@ Scenario("Test New Project", async ({ I, util, IndexPage }) => {
util.openHangarPage("/new");
I.click("Agree");
const name = "E2E-" + Math.floor(Math.random() * 10000);
const name = "E2E-" + util.randomNumber(10000);
I.fillField("input[name='name']", name);
I.fillField("input[name='description']", "E2E Test Project");
I.selectOption("select[name='category']", "Games");