-
Notifications
You must be signed in to change notification settings - Fork 58
FORMS-16858: Support for custom XFA styles #1500
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
Open
s1mahanty
wants to merge
7
commits into
dev
Choose a base branch
from
FORMS-16858
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 5 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
7d5badd
FORMS-16858: Support for custom XFA styles
s1mahanty 4691921
add cypress test
s1mahanty 558af64
delete it/content/src/main/content/jcr_root/content/dam/formsanddocum…
s1mahanty 96ea319
adding test behind FeatureToggle
s1mahanty da7a753
minor fix
s1mahanty f43045a
review comments incorporated FT name update
c4ee11f
adding toggle FT_FORMS-2447
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 |
---|---|---|
|
@@ -21,6 +21,7 @@ | |
"FT_SITES-19631", | ||
"FT_FORMS-14255", | ||
"FT_FORMS-14068", | ||
"FT_FORMS-16351" | ||
"FT_FORMS-16351", | ||
"FT_FORMS-2447" | ||
] | ||
} |
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
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,64 @@ | ||
/* | ||
* | ||
* ADOBE CONFIDENTIAL | ||
* ___________________ | ||
* | ||
* Copyright 2025 Adobe Systems Incorporated | ||
* All Rights Reserved. | ||
* | ||
* NOTICE: All information contained herein is, and remains | ||
* the property of Adobe Systems Incorporated and its suppliers, | ||
* if any. The intellectual and technical concepts contained | ||
* herein are proprietary to Adobe Systems Incorporated and its | ||
* suppliers and are protected by trade secret or copyright law. | ||
* Dissemination of this information or reproduction of this material | ||
* is strictly forbidden unless prior written permission is obtained | ||
* from Adobe Systems Incorporated. | ||
*/ | ||
|
||
const sitesSelectors = require('../libs/commons/sitesSelectors'), | ||
afConstants = require('../libs/commons/formsConstants'); | ||
|
||
describe ('Custom XFA Style in Document of Record', () => { | ||
const formPath = "/content/forms/af/core-components-it/samples/document-of-record/dor-form", | ||
textInputEditPath = formPath + afConstants.FORM_EDITOR_FORM_CONTAINER_SUFFIX + "/textinput", | ||
textInputEditPathSelector = "[data-path='" + textInputEditPath + "']", | ||
formContainerEditPath = formPath + afConstants.FORM_EDITOR_FORM_CONTAINER_SUFFIX, | ||
formContainerPathSelector = "[data-path='" + formContainerEditPath + "']"; | ||
|
||
let toggle_array = []; | ||
|
||
before(() => { | ||
cy.fetchFeatureToggles().then((response) => { | ||
if (response.status === 200) { | ||
toggle_array = response.body.enabled; | ||
} | ||
}) | ||
}); | ||
|
||
beforeEach(() => { | ||
cy.openAuthoring(formPath); | ||
}); | ||
|
||
it('select a custom template', () => { | ||
if (cy.af.isLatestAddon() && toggle_array.includes('FT_FORMS-2447')) { | ||
cy.openEditableToolbar(sitesSelectors.overlays.overlay.component + formContainerPathSelector); | ||
cy.invokeEditableAction("[data-action='dor']"); | ||
cy.get('coral-select[name="template"]').click(); | ||
cy.get('coral-popover:visible').within(() => { | ||
cy.get('coral-selectlist-item').contains('Custom').click(); | ||
}); | ||
cy.get('foundation-autocomplete[name="./metaTemplateRef"] input[is="coral-textfield"]').type('/content/src/main/content/jcr_root/content/dam/formsanddocuments/core-components-it/customTemplate', {force: true}); | ||
} | ||
}); | ||
|
||
it('dropdown for custom XFA style exist in the field', () => { | ||
if (cy.af.isLatestAddon() && toggle_array.includes('FT_FORMS-2447')) { | ||
cy.openEditableToolbar(sitesSelectors.overlays.overlay.component + textInputEditPathSelector); | ||
cy.invokeEditableAction("[data-action='CONFIGURE']"); | ||
cy.get(".cmp-adaptiveform-textinput__editdialog coral-tab-label:contains('Document of Record')").click(); | ||
cy.get('coral-select[name="./dorFieldStyling"]').should('exist'); | ||
} | ||
}); | ||
|
||
}); |
Oops, something went wrong.
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.