Skip to content

Commit 71dfaba

Browse files
committed
test
1 parent a8a0c69 commit 71dfaba

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

packages/main/src/components/SelectDialog/SelectDialog.cy.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,20 @@ describe('SelectDialog', () => {
2727
);
2828
cy.findByText('Select Dialog')
2929
.should('have.css', 'grid-column-start', 'titleStart')
30-
.should('have.css', 'grid-column-end', 'titleCenter');
30+
.and('have.css', 'grid-column-end', 'titleCenter')
31+
.and('have.attr', 'level', 'H1');
3132
cy.mount(
3233
<SelectDialog headerText="Select Dialog" headerTextAlignCenter open>
3334
{listItems}
3435
</SelectDialog>,
3536
);
36-
cy.findByText('Select Dialog').should('have.css', 'grid-area', 'titleCenter');
37+
cy.findByText('Select Dialog').should('have.css', 'grid-area', 'titleCenter').and('have.attr', 'level', 'H1');
38+
cy.mount(
39+
<SelectDialog headerText="Select Dialog" open headerTextLevel={'H2'}>
40+
{listItems}
41+
</SelectDialog>,
42+
);
43+
cy.findByText('Select Dialog').should('have.attr', 'level', 'H2');
3744
});
3845

3946
it('selection', () => {

0 commit comments

Comments
 (0)