Skip to content

Commit a5c1479

Browse files
authored
Fix describe test (#2128)
1 parent e5f7a03 commit a5c1479

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

portal-ui/tests/operator/tenants.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,9 @@ test("Create Tenant Without Audit Log", async (t) => {
4444
});
4545

4646
test("Test describe section for PODs in new tenant", async (t) => {
47-
const tenantName = `tenant-${Math.floor(Math.random() * 10000)}`;
47+
const tenantName = "storage-lite";
4848
await loginToOperator();
49-
await createTenant(tenantName);
50-
await t.wait(20000); // wait for PODs to be created
5149
await testPODDescribe(tenantName);
52-
await redirectToTenantsList();
53-
await deleteTenant(tenantName);
5450
});
5551

5652
const testPODDescribe = async (tenantName: string) => {
@@ -81,8 +77,6 @@ test("Test describe section for PVCs in new tenant", async (t) => {
8177
const tenantName = `storage-lite`;
8278
await loginToOperator();
8379
await testPvcDescribe(tenantName);
84-
await redirectToTenantsList();
85-
await deleteTenant(tenantName);
8680
});
8781

8882
const testPvcDescribe = async (tenantName: string) => {

portal-ui/tests/operator/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export const goToVolumesInTenant = async (tenantName: string) => {
7878
};
7979

8080
export const goToPodsInTenant = async (tenantName: string) => {
81-
await t.click(`#list-tenant-${tenantName}`);
81+
await t.click(`#list-tenant-${tenantName}`).wait(2000);
8282
await t.click(Selector(`a[href$="/pods"]`));
8383
};
8484

@@ -95,7 +95,7 @@ export const goToPodSection = async (index: number) => {
9595
};
9696

9797
export const goToPvcsInTenant = async (tenantName: string) => {
98-
await t.click(`#list-tenant-${tenantName}`);
98+
await t.click(`#list-tenant-${tenantName}`).wait(2000);
9999
await t.click(Selector(`a[href$="/volumes"]`));
100100
};
101101

0 commit comments

Comments
 (0)