Skip to content

fix: failing Playwright tests - #52138

Merged
Sembauke merged 1 commit into
freeCodeCamp:mainfrom
huyenltnguyen:fix/playwright-tests
Oct 27, 2023
Merged

Sembauke merged 1 commit into
freeCodeCamp:mainfrom
huyenltnguyen:fix/playwright-tests

Conversation

@huyenltnguyen

Copy link
Copy Markdown
Member

Checklist:

Playwright is currently failing in main due to an element having duplicated data-playwright-test-label attribute:

<input
autoCapitalize='off'
autoComplete='off'
autoCorrect='off'
id='ais-SearchBox-input'
data-playwright-test-label='header-search'
className='ais-SearchBox-input'
maxLength={512}
onChange={onChange}
placeholder={placeholder}
spellCheck='false'
type='search'
value={value}
ref={inputElementRef}
data-playwright-test-label='fcc-search-input'
/>

This PR fixes the issue and improves the tests a bit as well.

Failure: https://github.com/freeCodeCamp/freeCodeCamp/actions/runs/6665355579/job/18114752384#step:9:176

Comment thread e2e/header.spec.ts Resolved
Comment thread e2e/search.spec.ts Resolved
@huyenltnguyen
huyenltnguyen marked this pull request as ready for review October 27, 2023 11:33
@huyenltnguyen
huyenltnguyen requested a review from a team October 27, 2023 11:33
@github-actions github-actions Bot added platform: learn UI side of the client application that needs familiarity with React, Gatsby etc. scope: tools/scripts Scripts for supporting dev work, generating config and build artifacts, etc. labels Oct 27, 2023
@ghost

ghost commented Oct 27, 2023 •

Copy link
Copy Markdown

👀 Review this PR in a CodeSee Review Map

View the CodeSee Map of this change

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map legend

@ojeytonwilliams ojeytonwilliams mentioned this pull request Oct 27, 2023
4 tasks done

@ojeytonwilliams ojeytonwilliams 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.

Great work, @huyenltnguyen. Thanks a ton for the quick fix!

@Sembauke
Sembauke enabled auto-merge (squash) October 27, 2023 13:36
@Sembauke
Sembauke merged commit e037c3c into freeCodeCamp:main Oct 27, 2023
@huyenltnguyen
huyenltnguyen deleted the fix/playwright-tests branch October 27, 2023 14:38
@Sembauke

Copy link
Copy Markdown
Member

@huyenltnguyen, thank you for saving a lot of headaches! We really appreciate what you are doing :)

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

Labels

platform: learn UI side of the client application that needs familiarity with React, Gatsby etc. 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.

3 participants