Skip to content

Add Repository Settings E2E test#8854

Merged
itaigilo merged 4 commits intomasterfrom
task/add-repo-settings-e2e-test
Mar 25, 2025
Merged

Add Repository Settings E2E test#8854
itaigilo merged 4 commits intomasterfrom
task/add-repo-settings-e2e-test

Conversation

@itaigilo
Copy link
Contributor

Adding some more E2E tests,
For the "Settings" tab of the Repository page.

@itaigilo itaigilo added exclude-changelog PR description should not be included in next release changelog minor-change Used for PRs that don't require issue attached e2e-tests labels Mar 24, 2025
@github-actions
Copy link

github-actions bot commented Mar 24, 2025

E2E Test Results - DynamoDB Local - Local Block Adapter

13 passed, 1 failed

Test failures:
  Object Viewer - Parquet File › view parquet object w/ logout and login: common/viewParquetObject.spec.ts

viewParquetObject.spec.ts:28:9 view parquet object w/ logout and login

[common] › common/viewParquetObject.spec.ts:28:9 › Object Viewer - Parquet File › view parquet object w/ logout and login

Error: page.goto: Navigation to "http://localhost:8000/repositories" is interrupted by another navigation to "http://localhost:8000/"
Call log:
  - navigating to "http://localhost:8000/repositories", waiting until "load"


   at poms/repositoriesPage.ts:25

  23 |
  24 |     async goto(): Promise<void> {
> 25 |         await this.page.goto("/repositories");
     |                         ^
  26 |     }
  27 |
  28 |     async goToRepository(repoName: string): Promise<void> {

    at RepositoriesPage.goto (/home/runner/work/lakeFS/lakeFS/webui/test/e2e/poms/repositoriesPage.ts:25:25)
    at /home/runner/work/lakeFS/lakeFS/webui/test/e2e/common/viewParquetObject.spec.ts:41:32

attachment #1: trace (application/zip) ─────────────────────────────────────────────────────────
test-results/common-viewParquetObject-Object-Viewer---Parquet-File-view-parquet-object-w-logout-and-login-common/trace.zip
Usage:

    npx playwright show-trace test-results/common-viewParquetObject-Object-Viewer---Parquet-File-view-parquet-object-w-logout-and-login-common/trace.zip

────────────────────────────────────────────────────────────────────────────────────────────────

This test report was produced by the test-summary action.  Made with ❤️ in Cambridge.

@github-actions
Copy link

github-actions bot commented Mar 24, 2025

E2E Test Results - Quickstart

12 passed

@itaigilo itaigilo requested a review from a team March 24, 2025 16:54
}

await validateRow("Repository name", QUICKSTART_REPO_NAME);
await validateRow("Storage namespace");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not have some sort of validation(strict, loose) on all 3 text box values?

Copy link
Contributor

@nadavsteindler nadavsteindler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had a couple questions/suggestions. If it's a problem let me know

Copy link
Contributor Author

@itaigilo itaigilo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @nadavsteindler for the review.
Fixed your comments, PTAL again.

Copy link
Member

@N-o-Z N-o-Z left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌🏽

await expect(rowText).toBeVisible();
const valueInput = rowText.locator('..').getByRole("textbox");
await expect(valueInput).toBeVisible();
if (inputValue) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you still need this if?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, for using in another repo 🙏

@itaigilo itaigilo merged commit 4c35276 into master Mar 25, 2025
41 of 42 checks passed
@itaigilo itaigilo deleted the task/add-repo-settings-e2e-test branch March 25, 2025 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

e2e-tests exclude-changelog PR description should not be included in next release changelog minor-change Used for PRs that don't require issue attached

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments