Skip to content

Commit

Permalink
Lifecycle
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Perez committed Jul 27, 2023
1 parent d8ae1df commit 745a2a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions portal-ui/e2e/lifecycle.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ test.describe("Add Lifecycle Rule Modal in bucket settings tests for object vers
await createBucketPage.createVersionedBucket(versionedBucketName);
await bucketListPage.clickOnBucketRow(versionedBucketName);
bucketSummaryPage = bucketSummaryPage(versionedBucketName);
await bucketSummaryPage.clickOnTab("Lifecycle"); //Tab Text is used.
await bucketSummaryPage.clickOnTab("lifecycle"); //Tab Text is used.
});

await test.step("Check if object version option is available on a versioned bucket", async () => {
Expand Down Expand Up @@ -93,7 +93,7 @@ test.describe("Add Lifecycle Rule Modal in bucket settings tests for object vers
await createBucketPage.createBucket(nonVersionedBucketName);
await bucketListPage.clickOnBucketRow(nonVersionedBucketName);
bucketSummaryPage = bucketSummaryPage(versionedBucketName);
await bucketSummaryPage.clickOnTab("Lifecycle");
await bucketSummaryPage.clickOnTab("lifecycle");
});

await test.step("Check if object version option is NOT available on a non versioned bucket", async () => {
Expand Down
4 changes: 2 additions & 2 deletions portal-ui/e2e/pom/BucketSummaryPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ export class BucketSummaryPage {
await this.clickOnTab(`Summary`);
}

async clickOnTab(tabName: string) {
await this.page.getByRole("button", { name: tabName }).click();
async clickOnTab(tabID: string) {
await this.getLocator(`#${tabID}`).click();

// await page.goto(`${BUCKET_LIST_PAGE}/${this.bucketName}/admin/${tabName}`);
}
Expand Down

0 comments on commit 745a2a5

Please sign in to comment.