Skip to content
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

test: use challenge with visible buttons for spec #54566

Merged
merged 3 commits into from
Apr 29, 2024

Conversation

ojeytonwilliams
Copy link
Contributor

Workaround for the fact that element.scrollIntoView() doesn't work for
elements inside the editor. This 'fix' simply uses a challenge with a
shorter description meaning that the buttons are already visible.

Checklist:

Closes #XXXXX

Workaround for the fact that element.scrollIntoView() doesn't work for
elements inside the editor. This 'fix' simply uses a challenge with a
shorter description meaning that the buttons are already visible.
@ojeytonwilliams ojeytonwilliams requested a review from a team as a code owner April 29, 2024 11:04
@github-actions github-actions bot added the scope: tools/scripts Scripts for supporting dev work, generating config and build artifacts, etc. label Apr 29, 2024
@ShaunSHamilton
Copy link
Member

This does not work with the new page:

await page.keyboard.insertText(
      '<html><body><h1>CatPhotoApp</h1><h2>Cat Photos</h2></body></html>'
    );
    await page.getByRole('button', { name: 'Check Your Code' }).click();

@ojeytonwilliams
Copy link
Contributor Author

Thanks @ShaunSHamilton. It seems to be working now.

e2e/project-preview-modal.spec.ts Outdated Show resolved Hide resolved
Copy link
Member

@ShaunSHamilton ShaunSHamilton left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@naomi-lgbt naomi-lgbt merged commit 868a7c6 into freeCodeCamp:main Apr 29, 2024
22 checks passed
@ojeytonwilliams ojeytonwilliams deleted the test/scroll-into-view branch April 30, 2024 07:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: tools/scripts Scripts for supporting dev work, generating config and build artifacts, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants