diff --git a/tests/api/ipapolicies/ipapolicies.post.spec.ts b/tests/api/ipapolicies/ipapolicies.post.spec.ts index f5fd660..4e859c0 100644 --- a/tests/api/ipapolicies/ipapolicies.post.spec.ts +++ b/tests/api/ipapolicies/ipapolicies.post.spec.ts @@ -30,7 +30,7 @@ test.describe("List IPAPolicies @IPAPolicies", async () => { for (const { pagination } of pageParams) { test(`Should return IPAPolicies list with pagination ${JSON.stringify( pagination - )} @bug`, async ({ request }) => { + )}`, async ({ request }) => { const payload = { options: { pagination: pagination }, }; @@ -71,7 +71,7 @@ test.describe("List IPAPolicies @IPAPolicies", async () => { { orderBy: "blockTimestamp", orderDirection: "asc" }, ]; for (const { orderBy, orderDirection } of orderParams) { - test(`Should return IPAPolicies list ordered by ${orderBy} ${orderDirection} @bug`, async ({ + test(`Should return IPAPolicies list ordered by ${orderBy} ${orderDirection}`, async ({ request, }) => { const payload = { @@ -86,8 +86,14 @@ test.describe("List IPAPolicies @IPAPolicies", async () => { expect(errors).toBeUndefined(); expect(data.length).toBeGreaterThan(0); for (let i = 0; i < data.length - 1; i++) { - const item = data[i][orderBy].trim() || "\uFFFF"; - const nextItem = data[i + 1][orderBy].trim() || "\uFFFF"; + const item = + typeof data[i][orderBy] === "string" + ? data[i][orderBy].trim() || "\uFFFF" + : data[i][orderBy]; + const nextItem = + typeof data[i + 1][orderBy] === "string" + ? data[i + 1][orderBy].trim() || "\uFFFF" + : data[i + 1][orderBy]; if (orderDirection === "asc") { expect(item <= nextItem).toBeTruthy(); } else { @@ -112,9 +118,7 @@ test.describe("List IPAPolicies @IPAPolicies", async () => { for (const { pagination, orderBy, orderDirection } of pageAndOrderParams) { test(`Should return IPAPolicies list with pagination ${JSON.stringify( pagination - )} and ordered by ${orderBy} ${orderDirection} @bug`, async ({ - request, - }) => { + )} and ordered by ${orderBy} ${orderDirection}`, async ({ request }) => { const payload = { options: { pagination: pagination, @@ -213,7 +217,7 @@ test.describe("List IPAPolicies @IPAPolicies", async () => { } }); - test("Should return IPAPolicies list with pagination, orders and filters", async ({ + test("Should return IPAPolicies list with pagination, orders and filters @bug", async ({ request, ipapolicies, }) => { diff --git a/tests/api/permissions/permissions.get.spec.ts b/tests/api/permissions/permissions.get.spec.ts index 9d5c4e9..f62f84b 100644 --- a/tests/api/permissions/permissions.get.spec.ts +++ b/tests/api/permissions/permissions.get.spec.ts @@ -4,7 +4,7 @@ import { ApiPrefix } from "../../constants"; const endpoint = ApiPrefix + "/permissions"; test.describe("Get a Permission @Permissions", async () => { - test("Should return Permissions detail", async ({ + test("Should return Permissions detail @bug", async ({ request, permissionsList, }) => { diff --git a/tests/api/royalties/royalties.splits.get.spec.ts b/tests/api/royalties/royalties.splits.get.spec.ts index 579efda..6a8c378 100644 --- a/tests/api/royalties/royalties.splits.get.spec.ts +++ b/tests/api/royalties/royalties.splits.get.spec.ts @@ -4,7 +4,7 @@ import { ApiPrefix } from "../../constants"; const endpoint = ApiPrefix + "/royalties/splits"; test.describe("Get a Royalties Split @Royalties", () => { - test("Should return Royalties Split detail", async ({ + test("Should return Royalties Split detail @bug", async ({ request, royaltiesPolicies, }) => { diff --git a/tests/api/transactions/transactions.post.spec.ts b/tests/api/transactions/transactions.post.spec.ts index 0796f41..9f1576e 100644 --- a/tests/api/transactions/transactions.post.spec.ts +++ b/tests/api/transactions/transactions.post.spec.ts @@ -216,7 +216,7 @@ test.describe("List Transactions @Transactions", async () => { }, { where: { - actionType: transactions[1].actionType, + actionType: transactions[0].actionType, resourceId: transactions[0].resourceId, }, orderBy: "ipId",