Skip to content

Conversation

@RoyEJohnson
Copy link
Contributor

@RoyEJohnson RoyEJohnson commented Aug 6, 2025

const {adoptionUrl} = useSalesforceContext();
const validatePage = React.useCallback(
(page) => {
if (page === 1 && position === 'Student') {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Student processing can't get here

}, []);
const doSubmit = React.useCallback(
(form) => {
if (selectedBooksRef.current?.length > 0) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Can't get here with no selected books.

return (
<React.Fragment>
<FormTarget submitting={submitting} />
<FormTarget />
Copy link
Contributor Author

Choose a reason for hiding this comment

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

submitting isn't handled with a parameter anymore.

value: 'Conference',
label: formatMessage({id: 'interest.option.Conference'})
},
{value: 'Email', label: formatMessage({id: 'interest.option.Email'})},
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Interesting choice by prettier

// fireEvent(options[0], new MouseEvent('mouseenter', {
// bubbles: true
// }));
const i = options.findIndex((o) => o.getAttribute('aria-selected') === 'true');
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This test was intermittently failing, so I rewrote it. Seems to be happier.

<body>
<section class="block-heading">
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Test coverage in the general page

);

const buttons = screen.getAllByRole('checkbox');
const label = buttons[0].getAttribute('aria-label');
Copy link
Contributor Author

Choose a reason for hiding this comment

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

A little Partner page functionality that didn't have test coverage: filter remover

@RoyEJohnson RoyEJohnson requested a review from jivey August 6, 2025 16:38
@RoyEJohnson RoyEJohnson merged commit b113feb into main Aug 11, 2025
1 check passed
@RoyEJohnson RoyEJohnson deleted the core-1079-port-adoption-and-interest-pages-to-ts branch August 11, 2025 15:21
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.

3 participants