Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb951844

Browse files
authored
test: add tests for Checkbox component (qwikifiers#42)
1 parentb032fd0 commitb951844

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import{SfIconHome}from'../SfIcons';
2+
import{SfCheckbox}from'./SfCheckbox';
3+
4+
it('should render the component',()=>{
5+
constcontent='label';
6+
cy.mount(<SfCheckboxvalue="value"/>);
7+
cy.get('input[type="checkbox"]').should('be.visible');
8+
});
9+
10+
it('should apply a custom class',()=>{
11+
constclassName='example-class';
12+
13+
cy.mount(<SfCheckboxvalue="value"class={className}/>);
14+
cy.get('input[type="checkbox"]').should('have.class',className);
15+
});

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp