Skip to content

Commit

Permalink
test: update e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
pointhalo committed Jun 20, 2024
1 parent 5deba10 commit 223113d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions cypress/e2e/select.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ describe('Select', () => {
cy.wait(300);
cy.get('[data-cy=a-1]').should('have.class', 'semi-select-option-selected');
cy.get('[data-cy=a-2]').click();
cy.wait(500);
cy.get('[data-cy=singleControl]').click();
cy.wait(300);
cy.get('[data-cy=a-2]').should('have.class', 'semi-select-option-selected');
Expand Down
4 changes: 2 additions & 2 deletions packages/semi-ui/select/_story/select.stories.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3583,8 +3583,8 @@ export const ControledSameLabelInNode = () => {
setValue(value)
}}>
<Select.OptGroup label="Asia">
<Select.Option value="a-1" label={<div>China</div>} className='a-1' data-cy='a-1'></Select.Option>
<Select.Option value="a-2" label={<div>China</div>} className='a-2' data-cy='a-2'></Select.Option>
<Select.Option value="a-1" label={<div>China</div>} className='a-1' data-cy='a-1' key={'a-1'}></Select.Option>
<Select.Option value="a-2" label={<div>China</div>} className='a-2' data-cy='a-2' key={'a-2'}></Select.Option>
<Select.Option value="a-3" label={<div>Korea</div>} className='a-3'></Select.Option>
</Select.OptGroup>
<Select.OptGroup label="Europe">
Expand Down

0 comments on commit 223113d

Please sign in to comment.