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

refactor(shoelace): tests failed to check hidden menu #237

Merged
merged 1 commit into from
Sep 5, 2022

Conversation

tpluscode
Copy link
Member

Refactor and fix a brittle test which failed #236

Apparently it's a bad idea to have a reflected boolean attribute set to false

@changeset-bot
Copy link

changeset-bot bot commented Aug 31, 2022

🦋 Changeset detected

Latest commit: 8e4e1ea

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@hydrofoil/shaperone-wc-shoelace Patch
@hydrofoil/shaperone-playground Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@codecov
Copy link

codecov bot commented Aug 31, 2022

Codecov Report

Merging #237 (8e4e1ea) into master (79d987a) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #237      +/-   ##
==========================================
+ Coverage   78.00%   78.02%   +0.01%     
==========================================
  Files         166      166              
  Lines        7635     7641       +6     
  Branches      587      588       +1     
==========================================
+ Hits         5956     5962       +6     
  Misses       1653     1653              
  Partials       26       26              
Impacted Files Coverage Δ
...ackages/wc-shoelace/elements/sh-sl-autocomplete.ts 91.89% <100.00%> (+0.71%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@@ -20,7 +25,7 @@ export class ShSlAutocomplete extends LitElement {
@property({ type: String })
inputValue = ''

@property({ type: Boolean, reflect: true })
Copy link
Collaborator

Choose a reason for hiding this comment

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

That is reflect?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes. Reflect is to keep a sync between HTML element attribute and property value.

https://lit.dev/docs/components/properties/#reflected-attributes

Copy link
Collaborator

@cristianvasquez cristianvasquez left a comment

Choose a reason for hiding this comment

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

Looks ok what I saw.

@tpluscode tpluscode merged commit 68d98aa into master Sep 5, 2022
@tpluscode tpluscode deleted the shoelace-refactor branch September 5, 2022 14:07
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.

None yet

2 participants