-
Notifications
You must be signed in to change notification settings - Fork 367
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
test: [M3-8444] - Add assertions for bucket details drawer tests #10971
Conversation
Coverage Report: ✅ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I ran these tests locally on an account that didn't have Object Storage enabled in my Settings, and the tests failed consistently at the point where the 'Enable Object Storage' modal opens after Create Button is clicked. Should this test spec account for that?
Once I enabled OBJ, tests all passed and cover the cases outlined in the internal ticket. ✅
packages/manager/cypress/e2e/core/objectStorageGen2/bucket-create-gen2.spec.ts
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we have three variations for OBJ feature legacy, gen1 and gen2 are we planing to cover those scenarios with mock flags ?
I checked bucket details drawer by |
export const mockGetBucketAccess = ( | ||
label: string, | ||
cluster: string | ||
): Cypress.Chainable<null> => { | ||
return cy.intercept( | ||
'GET', | ||
apiMatcher(`object-storage/buckets/${cluster}/${label}/access`), | ||
{ | ||
body: {}, | ||
statusCode: 200, | ||
} | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @AzureLatte just a heads up that I'd also created a mock intercept for bucket access here. Will keep an eye on this PR, and if this gets merged in first will update my PR accordingly!
@AzureLatte This one's got a couple merge conflicts now to be resolved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ confirmed tests passed - thanks Azure!
Since this file is named bucket-create
, wondering if we should update the name to something like bucket-create-and-details-drawer
or something (maybe that's too wordy), or move these assertions to a different file?
/** | ||
* Confirms UI flow for creating a gen2 Object Storage bucket with endpoint E0 | ||
* Confirms all endpoints are displayed regardless if there's multiple of the same type | ||
* Confirms S3 endpoint hostname displayed to differentiate between identical options in the dropdown | ||
* Confirms correct information displays in the details drawer for all endpoint types |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this test is only for E0, should we specify that? + Same for the below tests
* Confirms correct information displays in the details drawer for all endpoint types | |
* Confirms correct information displays in the details drawer for a bucket with endpoint E0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice suggestion, I'll update it, thank you!
@@ -320,10 +403,12 @@ describe('Object Storage Gen2 create bucket tests', () => { | |||
|
|||
/** | |||
* Confirms UI flow for creating a gen2 Object Storage bucket with endpoint E2 | |||
* Confirms correct information displays in the details drawer for all endpoint types |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Confirms correct information displays in the details drawer for all endpoint types | |
* Confirms correct information displays in the details drawer for a bucket with endpoint E2 |
@@ -205,10 +279,12 @@ describe('Object Storage Gen2 create bucket tests', () => { | |||
|
|||
/** | |||
* Confirms UI flow for creating a gen2 Object Storage bucket with endpoint E1 | |||
* Confirms correct information displays in the details drawer for all endpoint types |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Confirms correct information displays in the details drawer for all endpoint types | |
* Confirms correct information displays in the details drawer for a bucket with endpoint E1 |
@@ -435,10 +525,12 @@ describe('Object Storage Gen2 create bucket tests', () => { | |||
|
|||
/** | |||
* Confirms UI flow for creating a gen2 Object Storage bucket with endpoint E3 | |||
* Confirms correct information displays in the details drawer for all endpoint types |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Confirms correct information displays in the details drawer for all endpoint types | |
* Confirms correct information displays in the details drawer for a bucket with endpoint E3 |
e2e failure Linode Create Region Select region select – region select is not related with this change |
Cloud Manager E2E Run #6663
Run Properties:
|
Project |
Cloud Manager E2E
|
Run status |
Failed #6663
|
Run duration | 29m 15s |
Commit |
d0927f8c24: test: [M3-8444] - Add assertions for bucket details drawer tests (#10971)
|
Committer | Azure-akamai |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
1
|
Flaky |
3
|
Pending |
2
|
Skipped |
0
|
Passing |
434
|
Tests for review
cypress/e2e/core/placementGroups/delete-placement-groups.spec.ts • 1 failed test
Test | Artifacts | |
---|---|---|
Placement Group deletion > can delete with Linodes assigned when unexpected error show up and retry |
Screenshots
Video
|
linodes/clone-linode.spec.ts • 1 flaky test
Test | Artifacts | |
---|---|---|
clone linode > can clone a Linode from Linode details page |
Screenshots
Video
|
linodes/rebuild-linode.spec.ts • 1 flaky test
Test | Artifacts | |
---|---|---|
rebuild linode > cannot rebuild a provisioning linode |
Screenshots
Video
|
objectStorageGen2/bucket-create-gen2.spec.ts • 1 flaky test
Test | Artifacts | |
---|---|---|
Object Storage Gen2 create bucket tests > can create a bucket with E2 endpoint type |
Screenshots
Video
|
Description 📝
Add a Cypress integration test to cover OBJ bucket details drawer changes for OBJ Gen 2.
Changes 🔄
mockGetBucketAccess
How to test 🧪
As an Author I have considered 🤔
Check all that apply