Skip to content

Commit

Permalink
test: actually use random util in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MiniDigger committed May 4, 2024
1 parent 122f110 commit 0d8aa07
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion e2e/tests/pages/NewOrganizationPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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']");
Expand Down
2 changes: 1 addition & 1 deletion e2e/tests/pages/NewProjectPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 0d8aa07

Please sign in to comment.