-
Notifications
You must be signed in to change notification settings - Fork 58
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
Added Test Case for Document of Record generation #1007
Conversation
*/ | ||
|
||
describe('Document of Record Test', () => { | ||
const formId = "L2NvbnRlbnQvZm9ybXMvYWYvY29yZS1jb21wb25lbnRzLWl0L3NhbXBsZXMvZG9jdW1lbnQtb2YtcmVjb3JkL2Rvci1mb3Jt"; |
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 get the form id from list forms API, you can check here for reference,
return cy.request("GET", `/adobe/forms/af/listforms?cursor=${cursor}&limit=${limit}`).then(({body}) => { |
}; | ||
if (cy.af.isLatestAddon()) { | ||
// use cursor based API if latest AddOn | ||
getFormId(formPath, "", 20) |
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.
you do not need to set a limit
cursor = body.cursor; | ||
return getFormId(path, cursor, limit); | ||
} else { | ||
throw new Error("form not found"); |
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.
Test case is throwing an error
} | ||
|
||
// Use this API if forms addon is old | ||
const getFormIdDeprecated = (path, offset = 0, limit = 20) => { |
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.
Can you remove this, it is not required.
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.
check comments
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #1007 +/- ##
=========================================
Coverage 80.29% 80.29%
Complexity 729 729
=========================================
Files 89 89
Lines 2045 2045
Branches 271 271
=========================================
Hits 1642 1642
Misses 251 251
Partials 152 152 ☔ View full report in Codecov by Sentry. |
@@ -0,0 +1,7 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> |
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.
Can you remove the thumbnails from the test collateral ?
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.
check comments
123eefe
to
818ac5e
Compare
5b67e01
to
c68f206
Compare
ca992ab
to
37da91f
Compare
Added Test Case for Document of Record generation Added Test Case for Document of Record generation Added Test Case for Document of Record generation Added Test Case for Document of Record generation Added Test Case for Document of Record generation Use list form api to get form Id Added Test Case for Document of Record generation Added Test Case for Document of Record generation Added Test Case for Document of Record generation Added Test Case for Document of Record generation Added Test Case for Document of Record generation Added Test Case for Document of Record generation
08aee28
to
6f1b68f
Compare
* Added Test Case for Document of Record generation Added Test Case for Document of Record generation Added Test Case for Document of Record generation Added Test Case for Document of Record generation Added Test Case for Document of Record generation Added Test Case for Document of Record generation Use list form api to get form Id Added Test Case for Document of Record generation Added Test Case for Document of Record generation Added Test Case for Document of Record generation Added Test Case for Document of Record generation Added Test Case for Document of Record generation Added Test Case for Document of Record generation * DOR Test check * Added Test case for Document of Record generation * Skipping DOR generation test until DOR enabled in CI
* Added Test Case for Document of Record generation Added Test Case for Document of Record generation Added Test Case for Document of Record generation Added Test Case for Document of Record generation Added Test Case for Document of Record generation Added Test Case for Document of Record generation Use list form api to get form Id Added Test Case for Document of Record generation Added Test Case for Document of Record generation Added Test Case for Document of Record generation Added Test Case for Document of Record generation Added Test Case for Document of Record generation Added Test Case for Document of Record generation * DOR Test check * Added Test case for Document of Record generation * Skipping DOR generation test until DOR enabled in CI
* Added Test Case for Document of Record generation Added Test Case for Document of Record generation Added Test Case for Document of Record generation Added Test Case for Document of Record generation Added Test Case for Document of Record generation Added Test Case for Document of Record generation Use list form api to get form Id Added Test Case for Document of Record generation Added Test Case for Document of Record generation Added Test Case for Document of Record generation Added Test Case for Document of Record generation Added Test Case for Document of Record generation Added Test Case for Document of Record generation * DOR Test check * Added Test case for Document of Record generation * Skipping DOR generation test until DOR enabled in CI
Description
Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: