[go: nahoru, domu]

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

fix: remove specific warning text #7376

Merged
merged 3 commits into from
Aug 11, 2023
Merged

Conversation

maribethb
Copy link
Contributor

The basics

  • I branched from develop
  • My pull request is against develop
  • My code follows the style guide
  • I ran npm run format and npm run lint

The details

Resolves

Fixes #7362

Proposed Changes

  • Adds tests for setting and removing warning tests.
  • Fixes bug where you could not remove only one warning by id
  • Fixes bug where if you call setWarningText('') on a collapsed block, it would remove the warning on that block, but add the "collapsed block contains warnings" to its parent

Behavior Before Change

Can't remove a warning by id

Behavior After Change

Can remove a warning by id

Reason for Changes

Test Coverage

Wrote unit tests before fixing bug. The ones about removing by id failed before this change, and now pass.

Documentation

no

Additional Information

for context: introduced in #7112 I believe

@maribethb maribethb requested a review from a team as a code owner August 10, 2023 20:38
@github-actions github-actions bot added the PR: fix Fixes a bug label Aug 10, 2023
Copy link
Collaborator
@BeksOmega BeksOmega left a comment

Choose a reason for hiding this comment

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

LGTM =)

tests/mocha/block_test.js Show resolved Hide resolved
@maribethb maribethb enabled auto-merge (squash) August 10, 2023 23:58
@maribethb maribethb merged commit 8b6c780 into google:develop Aug 11, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: fix Fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

setWarningText(null, id) has no function
2 participants