[DO NOT MERGE] Test fixing 650 - #1967
Open
muskgupta wants to merge 221 commits into
Open
Conversation
Dev master19 dec
* Fixing date picker min max constraints. * Adding the test collateral. * Formating date using DefaultValueSerializer, for sightly.
* Fixing date picker min max constraints. * Adding the test collateral. * Formating date using DefaultValueSerializer, for sightly.
* @releng moving to latest cloud ready image * updating wcm core component version as per latest aem base image * Adding sleep for new aem version * increasing the sleep time * Fixing sleep * Increasing sleep time * Fixing sleep * update aem base image * Fixing installation * Fixing test * Fix test execution * Fixing test * Fixing test * Fixing test * Fixing test * Fixing test * Modifying FAR at build time * Revert "Modifying FAR at build time" This reverts commit 478b623. * stop/start bundle
* state management and css check fixed for accordion test case fixing 1 of 5 failures * simplifying the test logic for opening editable toolbar fixing test case 2 for accordion authoring * code refactoring * fixing wizard authoring tests failures for selecting editable toolbar * suppressing ResizeObserver errors * fixing tests * fixed * added test functionality back * removed the use of private and unstable coral selectors * test refactoring * accordion test refactoring --------- Co-authored-by: Armaan Gupta <armaang@Armaans-MacBook-Pro.local>
* FORMS-18671: Visible label missing @sunnym @vavarshn * FORMS-18671: Round 1 feedback * FORMS-18671: Keeping original class names in fileinput.html * FORMS-18671: Fixed case where Checbox wasn't getting an Accessible label * FORMS-18671: Added missing screen reader text for File Upload and TnC, fixing FileUpload error message being ignored by screren reader (FORMS-18852) --------- Co-authored-by: Stefan Dragomir <stefand@ENSRO0422.local>
Forms 12668
Adding component versioning requirements to ensure valid component version bumping
[FORMS-26375] Updating button main selector
Dev2master 18082026
…release-650-FORMS-27563
…e/650 feat(af-core): FORMS-25463 expose cq:annotations parallel to fd:dor (#1883) is not applicable to release/650 (not in CQ Guides R650). Reverting getCqAnnotations() on AbstractFormComponentImpl, the PN_CQ_ANNOTATIONS reserved property, its tests, and the associated test fixtures.
… in release/650 "Adding File attachment scanning support." is not applicable to release/650 (not in CQ Guides R650). Reverting the FILE_ATTACHMENT_VALIDATOR form-meta-data type, the servlet handling for it, and the fileAttachmentValidator dialog field on the v2 container. The parent/pom.xml aem-forms-sdk-api version bump and the HCaptchaImplTest.java/TurnstileImplTest.java test changes from this commit are already moot, since those files/dependencies were already excluded from release/650.
… validation failure
…ties, XFA, associate-properties) - Removed associate-properties-container test leak (e76276c/865c071a3) - Removed dead CHANNEL_PRINT constant and redundant print-channel test - Removed dangling hcaptcha/turnstile entries from runtime-all clientlib embed list - Reverted utils.js form-init to pre-merge behavior (removed dead loadXfa() call) - Removed orphaned xfatest IT sample content
The merge dropped CONTEXTPATH/FTCONFIG destructuring and the
classicFormAddonVersion/classicFormReleasedAddonVersion declarations
while leaving their usages in the classic/classic-latest branches
(ReferenceError). Also restored contextPathOpts being applied to the
qp.sh start command, removed a duplicated ${extras} interpolation, and
restored the classic/classic-latest addon warm-up restart+sleep block
that was silently deleted.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…650's docker executor
Pin browser-tools/chrome back to a stable version instead of "latest", wait for coral-select overlays to be visible before clicking options, and skip the FT_FORMS-24343 events assertion on on-prem classic lanes where the toggle isn't wired to the JVM system property. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Retry delete-confirm click via the same recurse pattern already used by openEditableToolbar, and force calendar-icon clicks in the datepicker spec to match the file's existing convention. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
The previous commit's recurse fix for deleteComponentByPath/Title re-clicked the delete action on every retry, including after the confirm dialog was already open, when the whole #EditableToolbar (and the delete button with it) is hidden. That made the retry itself fail visibility checks and broke ~5 previously-passing authoring specs (pageheader, tnc.authoring, fileinput.authoring, image.authoring, aemformcontainer.authoring) in the last CI run. Only re-click when the alert dialog isn't already present. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
- deleteComponentByPath/Title: replace the risky recurse-retry (which regressed ~5 specs by re-clicking DELETE behind an already-open dialog) with an explicit extended wait for the dialog itself before clicking its button - matches the approach independently validated in release-650-testfix, without the double-click risk. - cleanTest/cleanTitleTest: return the cy.deleteComponentByPath chain directly instead of wrapping it in a new Cypress.Promise that resolved before the delete actually completed (a documented Cypress anti-pattern) - callers no longer race ahead of cleanup. - telephoneinput design-policy test: wait for the multifield to be visible and use .check() on the checkbox before clicking Add, combining the label-based selector with the extra visibility wait found in release-650-testsFix. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
- formcontainer.cy.js: .children() selector for the submit-action type dropdown only matches direct children; master's SSV rewrite (#1902) replaced backport's old broader "button" descendant selector with this narrower one, which doesn't find the button on classic-650. Changed to .find() to restore the broader match. - datepicker.runtime.layout.cy.js, datepicker.runtime.localisation.cy.js, tabsontop.runtime.cy.js: same missing {force:true} on calendar-icon clicks already fixed in datepicker.runtime.cy.js, found via a repo-wide scan for the same pattern. - checkboxgroupv2.runtime.cy.js: text-decoration's exact computed-style string varies by Chrome version (style/color tokens included or not); assert on 'underline' being included rather than an exact match. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…re tests
- telephoneinput.authoring.cy.js: revert cy.check() on coral-checkbox
(a custom element, not a native :checkbox - cy.check() requires one,
this was a hard regression) back to click(). Also revert the
should('be.visible') wait added on the coral-select overlay click -
it didn't clear the underlying "overlay never opens" issue, just
moved the timeout from the click to this assertion; reverting rather
than leaving ineffective speculative code in place.
- textinput.authoring.cy.js: same .children() -> .find() fix as
formcontainer.cy.js, for the same reason (narrower selector doesn't
match classic-650's render depth).
- fragment.featuretoggles.cy.js: apply the same isOnPremClassic guard
already validated in image.api.cy.js to FT_FORMS-24087 and
FT_FORMS-24343 - confirmed via a third toggle failure that this is a
systemic classic-lane OSGi-bridge gap, not a one-off.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
….cy.js
Same reasoning as the previous revert on this file: the coral-select
overlay for the design-policy custom-format dropdown genuinely never
opens in this run, not a slow-render case. The should('be.visible')
wait just moved the timeout without clearing the issue - reverting
rather than leaving ineffective code in place.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Downloaded the actual failure screenshots from CircleCI artifacts to
get visual evidence instead of guessing further from log text. Both
failures show the edit dialog scrolled to a position where the
Validation Pattern coral-select is below the fold; {force: true}
skips Cypress's scroll-into-view actionability check and clicks at
the element's calculated coordinates regardless, which don't land on
the button when it's outside the dialog's visible scrolled area.
Add an explicit scrollIntoView() before the click.
The screenshots also visually confirmed the suspected stale-element
cleanup issue (4 duplicate "Telephone Input" entries in the component
tree from failed retries) - separate, already-tracked problem.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
… scroll fix - commands.js (deleteComponentByPath/Title): a failure screenshot showed the prior config dialog (dismissed via Cancel) still visually open when the delete-confirm dialog was expected - the delete click likely never reached the real toolbar button because the stale dialog was blocking it. Add a guard waiting for any leftover open coral-dialog to actually close before opening the editable toolbar. Purely additive: passes instantly when no dialog is open (the common case), only waits when the problem condition exists. This is the shared path for the 54 call sites that click .cq-dialog-cancel immediately before deleting, so one change covers all of them. - telephoneinput.authoring.cy.js: revert the scrollIntoView() added last commit - confirmed via the next CI run that it did NOT clear the coral-select-never-opens issue, so leaving it in would just be ineffective speculative code. That issue remains unresolved and needs live interactive debugging. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
The new leftover-open-dialog guard in deleteComponentByPath confirmed
the edit dialog genuinely never closes after clicking Cancel here (not
a slow-close case - it timed out at 10s never reaching 0 open dialogs).
This exact function's Cancel click is used identically by both the
passing Forms Editor test and the failing Sites Editor test, but other
Cancel clicks elsewhere in this same file already use the more robust
should('be.visible').click({force: true}) pattern successfully.
Applying the same established pattern here.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
switch.authoring.cy.js's fix (should('be.visible').click({force: true})
instead of a bare click()) was empirically confirmed in the last CI run:
the target test went from consistently failing to passing across all 8
containers, with zero new regressions elsewhere. Applying the same
proven transformation to the .cq-dialog-cancel calls in files already
in our confirmed-failing/cluster list (bounded scope - not the full 66
occurrences repo-wide, to keep blast radius manageable and verifiable):
- formcontainer.cy.js (3 occurrences)
- radiobutton.authoring.cy.js (2 occurrences, directly precede delete)
- telephoneinput.authoring.cy.js (1 remaining occurrence)
- wizard.authoring.cy.js (2 occurrences - already had should('be.visible'),
added the missing force: true)
Left button.authoring.cy.js alone - it already uses a different, more
explicit pattern (click then assert should('not.exist')) with no
evidence it's broken.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…t once value is preselected CI evidence (job 41479/41480): "Expected to find element: button[is="coral-button"][aria-haspopup="listbox"], but never found it." The sibling helper checkAndSaveSubmitAction targets the same coral-select with a plain `button` selector and passes reliably in every state; align checkValidatorFunctioning to match instead of guessing at attribute drift. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…er merge; fix redundant XF dialog-submit click formcontainer.cy.js: the backport merge replaced release/650's already-working submitaction button selector and FT_FORMS-9244 classic-skip with master's versions, which assume cloud-only behavior. Restored release/650's originals (commits 4c98761, 9b4162f) verbatim. contentfragment.authoring.cy.js: removed a redundant second click on .cq-dialog-submit after the dialog already closes from the first click - pre-existing on release/650 itself, not introduced by the merge. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…test pollution button.authoring.cy.js: restore the .skip() that master already has for "open Inline edit dialog of Button" (commit a58c847, later undone as collateral damage by an unrelated "revert bad master merge" in 2024, never noticed since). Not a merge regression from this backport, and not guessing at the underlying Coral rendering issue - just matching what upstream already decided. wizard.authoring.cy.js: cy.cleanTest only deletes an exact data-path match. If AEM auto-suffixes a colliding wizard node name on a prior incomplete cleanup, cleanTest silently finds nothing to delete and the stale instance accumulates across retries, causing "too many elements found" failures that grow across attempts. Switched to cy.cleanTitleTest, which prefix-matches and deletes every match - the same mechanism already used safely in title.authoring.cy.js. Also scoped the panel-selector table queries to .last() so a still-stale instance from earlier in a run can't inflate the row/tr counts these assertions check. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: