-
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-8661] - Cypress test to validate CAA record are editable #11440
test: [M3-8661] - Cypress test to validate CAA record are editable #11440
Conversation
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.
Please also update test case with error message and actual validation in jira and this PR
packages/manager/cypress/e2e/core/domains/smoke-create-domain-records.spec.ts
Outdated
Show resolved
Hide resolved
packages/manager/cypress/e2e/core/domains/smoke-create-domain-records.spec.ts
Outdated
Show resolved
Hide resolved
packages/manager/cypress/e2e/core/domains/smoke-create-domain-records.spec.ts
Outdated
Show resolved
Hide resolved
packages/manager/cypress/e2e/core/domains/smoke-create-domain-records.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.
Thanks for changes. Approved and confirmed that tests are passing.
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 start @hasyed-akamai! Left some feedback, feel free to reach out if you have any questions!
Edit: sorry, meant to wait for feedback to be addressed before approving!
packages/manager/cypress/e2e/core/domains/smoke-create-domain-records.spec.ts
Outdated
Show resolved
Hide resolved
packages/manager/cypress/e2e/core/domains/smoke-create-domain-records.spec.ts
Outdated
Show resolved
Hide resolved
packages/manager/cypress/e2e/core/domains/smoke-create-domain-records.spec.ts
Show resolved
Hide resolved
packages/manager/cypress/e2e/core/domains/smoke-create-domain-records.spec.ts
Outdated
Show resolved
Hide resolved
Thank you, @jdamore-linode, for your valuable feedback. I’ve implemented all the changes you suggested. Please feel free to review them again when you have a chance. 😊 |
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.
Nice work, thanks @hasyed-akamai!
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.
awesome, thank you! 🚀
@@ -0,0 +1,5 @@ | |||
--- | |||
"@linode/manager": Added |
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.
changeset should be for Tests category
Cloud Manager UI test results🔺 1 failing test on test run #7 ↗︎
Details
TroubleshootingUse this command to re-run the failing tests: yarn cy:run -s "cypress/e2e/core/linodes/create-linode-region-select.spec.ts" |
Cloud Manager E2E Run #7041
Run Properties:
|
Project |
Cloud Manager E2E
|
Branch Review |
develop
|
Run status |
Passed #7041
|
Run duration | 27m 27s |
Commit |
3febaa03ae: test: [M3-8661] - Cypress test to validate CAA record are editable (#11440)
|
Committer | hasyed-akamai |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
1
|
Pending |
2
|
Skipped |
0
|
Passing |
473
|
View all changes introduced in this branch ↗︎ |
…inode#11440) * test: [M3-8661] - Cypress test to validate CAA record are editable * Added changeset: Cypress test to validate CAA records are editable * Splitting the test cases for valid and invalid records * Move`createCaaRecord` and `verifyRecordInTable` function calls in `beforeEach` block * Add cleanup, use @example.com for emails, and replace `cy.get()` for stability. * Update Changeset type
Description 📝
Added Cypress test to validate CAA record are editable
Changes 🔄
Added below cypress tests under in spec file -
cypress/e2e/core/domains/smoke-create-domain-records.spec.ts
2. Navigate to Domain details Landing page.
2. Validate creation of the CAA record with iodef tag.
3. Validate that it should update valid record and not allow invalid record.
4. Validate that it should throw a error "You have entered an invalid target" when update with invalid record.
How to test 🧪
yarn cy:run -s cypress/e2e/core/domains/smoke-create-domain-records.spec.ts
Verification steps
When test executed using this command
yarn cy:run -s cypress/e2e/core/domains/smoke-create-domain-records.spec.ts
all tests should pass successfully.As an Author I have considered 🤔
Check all that apply