You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment I´m trying to create interaction tests for several components in storybook. However i realized that for specific components (Checkbox, and Link) I´m not being able to achieve 100% test coverage even thought I´m sure I´m covering the specific scenario mentioned not being covered.
Example for link component: Code Line: text-decoration: ${props => (props.underline ? 'underline' : 'none')}; and Validation in test: expect(link).toHaveStyle('text-decoration: none solid rgb(40, 96, 215)');
Did anyone noticed this before? and also sometimes the results varies a lot not always giving the same coverage data even if the code is not changed.
To Reproduce
1 - Having a code line like this and create the validation test Example: Code Line: text-decoration: ${props => (props.underline ? 'underline' : 'none')}; and Validation in test: expect(link).toHaveStyle('text-decoration: none solid rgb(40, 96, 215)');
2 - Execute the test coverage command to check if the scenario appears covered
Describe the bug
At the moment I´m trying to create interaction tests for several components in storybook. However i realized that for specific components (Checkbox, and Link) I´m not being able to achieve 100% test coverage even thought I´m sure I´m covering the specific scenario mentioned not being covered.
Example for link component: Code Line: text-decoration: ${props => (props.underline ? 'underline' : 'none')}; and Validation in test: expect(link).toHaveStyle('text-decoration: none solid rgb(40, 96, 215)');
Did anyone noticed this before? and also sometimes the results varies a lot not always giving the same coverage data even if the code is not changed.
To Reproduce
1 - Having a code line like this and create the validation test Example: Code Line: text-decoration: ${props => (props.underline ? 'underline' : 'none')}; and Validation in test: expect(link).toHaveStyle('text-decoration: none solid rgb(40, 96, 215)');
2 - Execute the test coverage command to check if the scenario appears covered
System
Additional context
No response
The text was updated successfully, but these errors were encountered: