Repository navigation
test: [M3-8447] - Add cypress integration test for OBJ gen 2 Bucket Details Properties tab #11002
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
Merged
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
65b6273
skeleton tests
coliu-akamai 3ca3c1a
test for E0 endpoint
coliu-akamai 7b930b0
finish other tests, now time to cleanup
coliu-akamai c6b18c3
remove duplication
coliu-akamai 2df76a5
update description
coliu-akamai 278c657
Added changeset: Add cypress integration test for OBJ gen 2 bucket deβ¦
coliu-akamai 21915be
update test descriptions
coliu-akamai 328418a
Merge branch 'develop' into m3-8440
coliu-akamai 014b6c1
Merge branch 'develop' into m3-8440
coliu-akamai 7dc731c
rearranging some things
coliu-akamai cf73bc8
skeleton tests
coliu-akamai 7ee3147
need to cleanup
coliu-akamai 9ab3a38
cleanup: use contains instead of find by text
coliu-akamai 24b7559
why are the create tests also running without the .only??
coliu-akamai eba3736
update abstraction
coliu-akamai fa9422f
parameterize tests based on feedback @jdamore-linode
coliu-akamai 67565f8
confirm testing AC and update tests/fix bug
coliu-akamai 56ab65d
Merge branch 'develop' into m3-8440
coliu-akamai 494cb40
Merge branch 'm3-8440' into m3-8447
coliu-akamai f623755
updated tests based on confirmed AC
coliu-akamai 72f7046
remove .only
coliu-akamai 82c085d
utils file
coliu-akamai c092c0b
changeset + add comment
coliu-akamai 0caa417
update comment
coliu-akamai 45875c8
Merge branch 'develop' into m3-8447
coliu-akamai File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@linode/manager": Tests | ||
| --- | ||
|
|
||
| Add integration test for Object Storage Gen2 Properties tab ([#11002](https://github.com/linode/manager/pull/11002)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
packages/manager/cypress/support/util/object-storage-gen2.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| import type { ObjectStorageEndpointTypes } from '@linode/api-v4'; | ||
|
|
||
| export const checkRateLimitsTable = ( | ||
| endpointType: ObjectStorageEndpointTypes | ||
| ) => { | ||
| const expectedHeaders = ['Limits', 'GET', 'PUT', 'LIST', 'DELETE', 'OTHER']; | ||
| const expectedBasicValues = ['Basic', '2,000', '500', '100', '200', '400']; | ||
| const expectedHighValues = | ||
| endpointType === 'E3' | ||
| ? ['High', '20,000', '2,000', '400', '400', '1,000'] | ||
| : ['High', '5,000', '1,000', '200', '200', '800']; | ||
|
|
||
| cy.get('[data-testid="bucket-rate-limit-table"]').within(() => { | ||
| expectedHeaders.forEach((header, index) => { | ||
| cy.get('th').eq(index).should('contain.text', header); | ||
| }); | ||
|
|
||
| cy.contains('tr', 'Basic').within(() => { | ||
| expectedBasicValues.forEach((value, index) => { | ||
| cy.get('td').eq(index).should('contain.text', value); | ||
| }); | ||
| }); | ||
|
|
||
| cy.contains('tr', 'High').within(() => { | ||
| expectedHighValues.forEach((value, index) => { | ||
| cy.get('td').eq(index).should('contain.text', value); | ||
| }); | ||
| }); | ||
|
|
||
| // Check that Basic radio button is checked | ||
| cy.findByLabelText('Basic').should('be.checked'); | ||
| }); | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -125,7 +125,8 @@ export const createSubnetSchema = object().shape( | |
| { | ||
| label: labelValidation.required(LABEL_REQUIRED), | ||
| ipv4: string().when('ipv6', { | ||
| is: (value: unknown) => value === '' || value === null || value === undefined, | ||
| is: (value: unknown) => | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ?? (hmm lemme see when this file got into the mix) |
||
| value === '' || value === null || value === undefined, | ||
| then: string() | ||
| .required(IP_EITHER_BOTH_NOT_NEITHER) | ||
| .test({ | ||
|
|
@@ -163,7 +164,8 @@ export const createSubnetSchema = object().shape( | |
| }), | ||
| }), | ||
| ipv6: string().when('ipv4', { | ||
| is: (value: unknown) => value === '' || value === null || value === undefined, | ||
| is: (value: unknown) => | ||
| value === '' || value === null || value === undefined, | ||
| then: string() | ||
| .required(IP_EITHER_BOTH_NOT_NEITHER) | ||
| .test({ | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.