Skip to content

Commit

Permalink
test: update selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
Zangetsu101 committed Jan 31, 2025
1 parent 1d78b76 commit 02658f5
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions packages/client/src/views/SysAdmin/Config/Systems/Systems.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -274,13 +274,15 @@ describe('render toggle settings', () => {

it('should delete system successfully', async () => {
component
.find('#toggleMenu-dropdownMenu')
.find('#toggleMenu-4a7ba5bc-46c7-469e-8d61-20dd4d86e79a-dropdownMenu')
.hostNodes()
.first()
.simulate('click')

component
.find('#toggleMenu-Dropdown-Content')
.find(
'#toggleMenu-4a7ba5bc-46c7-469e-8d61-20dd4d86e79a-Dropdown-Content'
)
.find('li')
.hostNodes()
.at(3)
Expand Down Expand Up @@ -331,13 +333,15 @@ describe('render toggle settings', () => {

it('should deactivated system successfully', async () => {
component
.find('#toggleMenu-dropdownMenu')
.find('#toggleMenu-4a7ba5bc-46c7-469e-8d61-20dd4d86e79a-dropdownMenu')
.hostNodes()
.first()
.simulate('click')

component
.find('#toggleMenu-Dropdown-Content')
.find(
'#toggleMenu-4a7ba5bc-46c7-469e-8d61-20dd4d86e79a-Dropdown-Content'
)
.find('li')
.hostNodes()
.at(2)
Expand Down Expand Up @@ -389,13 +393,15 @@ describe('render toggle settings', () => {

it('should active system successfully', async () => {
component
.find('#toggleMenu-dropdownMenu')
.find('#toggleMenu-5923118f-c633-40c6-ba97-c3e3cbb412aa-dropdownMenu')
.hostNodes()
.last()
.simulate('click')

component
.find('#toggleMenu-Dropdown-Content')
.find(
'#toggleMenu-5923118f-c633-40c6-ba97-c3e3cbb412aa-Dropdown-Content'
)
.hostNodes()
.last()
.find('li')
Expand Down

0 comments on commit 02658f5

Please sign in to comment.