Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sort Buckets table test #2207

Merged
merged 4 commits into from
Jun 30, 2022
Merged

sort Buckets table test #2207

merged 4 commits into from
Jun 30, 2022

Conversation

juans-chainsafe
Copy link
Contributor

closes #2202

Very similar to the test of sorting Files table.

@juans-chainsafe juans-chainsafe added the Type: Maintenance Added to issues and PRs when a change is for repository maintenance , such as CI or linter changes. label Jun 28, 2022
@juans-chainsafe juans-chainsafe self-assigned this Jun 28, 2022
@render
Copy link

render bot commented Jun 28, 2022

@render
Copy link

render bot commented Jun 28, 2022

@render
Copy link

render bot commented Jun 28, 2022

Copy link
Contributor

@tanmoyAtb tanmoyAtb left a comment

Choose a reason for hiding this comment

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

Looks good, quick comment about the table header name and data-cy

@Tbaut Tbaut enabled auto-merge (squash) June 30, 2022 11:26
@Tbaut Tbaut merged commit 4db26de into dev Jun 30, 2022
@Tbaut Tbaut deleted the mnt/sort-columns-buckets-table-test-2202 branch June 30, 2022 11:27
@@ -22,11 +24,19 @@ export const bucketsPage = {
deleteBucketMenuOption: () => cy.get("[data-cy=menu-delete-bucket]"),

// helpers and convenience functions
createBucket(bucketName: string) {
createBucket(bucketName: string, bucketType: FILE_SYSTEM_TYPES) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I checked after merging, but this is somewhat of an outlier. It's working as you want, but we usually use type in a different way, without using enum, and a little less wordy, but effectively achieving the same, with type safety, this would be something like

type BucketType = "ipfs" | "chainsafe"

createBucket(bucketName: string, bucketType: BucketType) {
// ...
case "ipfs"
// ...
case "chainsafe"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks for that Tbaut! I forget about type, but I remember that I use that to replace the enum 3 years ago haha, I will make this change in the "rename folder and file test" PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Maintenance Added to issues and PRs when a change is for repository maintenance , such as CI or linter changes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Storage] Sort columns in Buckets view test
4 participants