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: update visual tests to not use legacy adapter #4738

Merged
merged 1 commit into from
Oct 13, 2022

Conversation

web-padawan
Copy link
Member

Description

  • Updated vaadin-custom-field visual tests to use items property for vaadin-select instead of template,
  • Removed no longer used @vaadin/polymer-legacy-adapter dev dependency from the custom-field package,
  • Removed @vaadin/list-box dev dependency: it's no longer imported in tests but comes with vaadin-select.

Type of change

  • Tests

Note

This was discovered when trying to use pnpm instead of yarn as it fails to resolve @vaadin/item import.

</vaadin-select>
<vaadin-select
value="+358"
items='[{ "label": "+358" }, { "label": "+46" }, { "label": "+34" }]'
Copy link
Member Author

Choose a reason for hiding this comment

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

Using single quotes here is needed for Polymer to correctly decode attribute value as JSON array.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@web-padawan web-padawan merged commit 40733cc into master Oct 13, 2022
@web-padawan web-padawan deleted the test/select-items-api branch October 13, 2022 11:24
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.

2 participants