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

Bump marked from 15.0.3 to 15.0.4 in the metalsmith group #4376

Merged
merged 2 commits into from
Dec 17, 2024

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 16, 2024

Bumps the metalsmith group with 1 update: marked.

Updates marked from 15.0.3 to 15.0.4

Release notes

Sourced from marked's releases.

v15.0.4

15.0.4 (2024-12-15)

Bug Fixes

Commits
  • dba1327 chore(release): 15.0.4 [skip ci]
  • e4198ed fix: fix list with no items looping forever (#3560)
  • 10020d0 chore(deps-dev): Bump eslint from 9.14.0 to 9.16.0 (#3556)
  • f9948c1 chore(deps-dev): Bump @​markedjs/eslint-config from 1.0.8 to 1.0.9 (#3555)
  • 9f247c2 chore(deps-dev): Bump @​arethetypeswrong/cli from 0.17.0 to 0.17.1 (#3554)
  • 107ccfe chore(deps-dev): Bump rollup from 4.27.4 to 4.28.1 (#3553)
  • See full diff in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Dec 16, 2024
@dependabot dependabot bot requested a review from a team December 16, 2024 10:57
Copy link

netlify bot commented Dec 16, 2024

You can preview this change here:

Name Link
🔨 Latest commit baa0492
🔍 Latest deploy log https://app.netlify.com/sites/govuk-design-system-preview/deploys/67614b12a56d00000804f96d
😎 Deploy Preview https://deploy-preview-4376--govuk-design-system-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/metalsmith-4dde962128 branch from 0804510 to 5a8598f Compare December 16, 2024 17:59
Bumps the metalsmith group with 1 update: [marked](https://github.com/markedjs/marked).


Updates `marked` from 15.0.3 to 15.0.4
- [Release notes](https://github.com/markedjs/marked/releases)
- [Changelog](https://github.com/markedjs/marked/blob/master/.releaserc.json)
- [Commits](markedjs/marked@v15.0.3...v15.0.4)

---
updated-dependencies:
- dependency-name: marked
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: metalsmith
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/metalsmith-4dde962128 branch from 5a8598f to b0aeaa2 Compare December 16, 2024 18:00
Flakiness in the search tests is caused by some kind of timing/race condition with the .type() method not completing before we assert our expectations.

Adding a delay to the text input seems to make it less flaky, but I've moved into a separate function to make it easier to iterate fixes if further flakiness occurs.

I've tried sending characters individually, setting focus on each character, and using page.waitForFunction, but this seems to be the least flaky fix.
@domoscargin
Copy link
Contributor

Note: in case of future flakiness.

I've attempted what I would assume was the "correct" way to handle this:

async function typeText($element, text, page) {
  await $element.focus()
  await $element.type(text)
  await page.waitForFunction(
    (input, typedText) => input.value === typedText,
    {},
    $element,
    text
  )
}

and it's still flaky. Investigating one or two other things, but it might be worth merging this just to get this fix in.

Copy link
Member

@romaricpascal romaricpascal left a comment

Choose a reason for hiding this comment

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

Would be great to have a more sturdy option than a timeout to fix the flakiness, but given the complexity, let's use the delay and create a separate task to investigate why there's some timing issue between the typing and us reading stuff on the page.

Thanks for the fix and the thorough look into this @domoscargin 🙌🏻 ⛵

@domoscargin domoscargin merged commit 87fd88e into main Dec 17, 2024
15 checks passed
@domoscargin domoscargin deleted the dependabot/npm_and_yarn/metalsmith-4dde962128 branch December 17, 2024 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants