Skip to content

test(ui): add EditCampaignMetadata tests with accessible label associ… - #1016

Open
damilareojetunde wants to merge 5 commits into
Iris-IV:mainfrom
damilareojetunde:fix/issue-801-edit-campaign-metadata-tests
Open

test(ui): add EditCampaignMetadata tests with accessible label associ…#1016
damilareojetunde wants to merge 5 commits into
Iris-IV:mainfrom
damilareojetunde:fix/issue-801-edit-campaign-metadata-tests

Conversation

@damilareojetunde

Copy link
Copy Markdown

closes #801
closes #807

@drips-wave

drips-wave Bot commented Jul 30, 2026

Copy link
Copy Markdown

@damilareojetunde Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@sshdopey

Copy link
Copy Markdown
Contributor

Auto-review failed (API error). Leaving PR for human review.

1 similar comment
@sshdopey

Copy link
Copy Markdown
Contributor

Auto-review failed (API error). Leaving PR for human review.

@davidmaronio davidmaronio left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the actual component and test work here is good: label/input association via htmlFor + ids in EditCampaignMetadata, image url validation with aria-invalid/role="alert" errors, and the focus trap + escape handling in InstallFreighterModal are all solid accessibility wins. two blockers:

  1. pnpm-lock.yaml: ~6k lines of lockfile churn with no package.json change in this PR. a test/accessibility PR should not regenerate the lockfile; please drop the pnpm-lock.yaml changes from the branch entirely.
  2. branch is in conflict with main and needs a rebase.

with the lockfile removed and a clean rebase this is an easy approve.

damilareojetunde and others added 4 commits August 5, 2026 16:18
…ations

- Add htmlFor/id associations to labels/inputs for accessible names

- Add image URL validation with inline error display

- Add 9 comprehensive tests covering toggle, validation, save, clear, error resilience

Closes Iris-IV#801
…FreighterModal

- Save and restore focus on modal open/close (Iris-IV#807)

- Add Escape key handler to close modal

- Add focus trap with Tab/Shift+Tab cycling

- Add 8 tests covering focus, keyboard, and retry behavior
Fixes the single ESLint error (unused-imports/no-unused-imports) that fails the CI lint job.
Formatting-only changes required for the repo-wide prettier --check CI job to pass.
@damilareojetunde
damilareojetunde force-pushed the fix/issue-801-edit-campaign-metadata-tests branch from b45c0f8 to b1cdafd Compare August 5, 2026 15:43
@sshdopey

sshdopey commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Auto-review failed (API error). Leaving PR for human review.

@damilareojetunde

Copy link
Copy Markdown
Author

the actual component and test work here is good: label/input association via htmlFor + ids in EditCampaignMetadata, image url validation with aria-invalid/role="alert" errors, and the focus trap + escape handling in InstallFreighterModal are all solid accessibility wins. two blockers:

  1. pnpm-lock.yaml: ~6k lines of lockfile churn with no package.json change in this PR. a test/accessibility PR should not regenerate the lockfile; please drop the pnpm-lock.yaml changes from the branch entirely.
  2. branch is in conflict with main and needs a rebase.

with the lockfile removed and a clean rebase this is an easy approve.

HI Chief, this has been worked on, kindly review.

@davidmaronio

Copy link
Copy Markdown
Contributor

this is verified and approved, but today's merge wave put the branch into conflict before it reached the front of the queue (lots of prs touching the same i18n and test files landed at once). please rebase onto current main and push, i'll merge as soon as it's green, no re-review needed.

@sshdopey

sshdopey commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Auto-review failed (API error). Leaving PR for human review.

setCoverImageUrl(initialCoverImageUrl);
};

const titleId = `edit-title-${campaignId}`;
};

const titleId = `edit-title-${campaignId}`;
const descriptionId = `edit-description-${campaignId}`;

const titleId = `edit-title-${campaignId}`;
const descriptionId = `edit-description-${campaignId}`;
const coverImageId = `edit-cover-image-url-${campaignId}`;
@davidmaronio

Copy link
Copy Markdown
Contributor

the fork runs came back with real failures on this head: lint and the production build are red (main is green after #867), so this needs a rebase onto current main plus whatever the lint log points at in your own files. i'll merge once it's green, the approval stands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Wallet] Support keyboard-only Freighter connect retry after rejection [Testing] Add component test for EditCampaignMetadata form validation

5 participants