mirror of
https://github.com/HangarMC/Hangar.git
synced 2024-11-27 06:01:08 +08:00
test: actually use random util in tests
This commit is contained in:
parent
122f110c1d
commit
0d8aa07de9
@ -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']");
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user