Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
shiyaochen authored and shiyaochen committed Oct 8, 2024
1 parent 5492605 commit 22cad42
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ describe('MagnetTools', () => {
},
}
vi.mocked(getMagneticLabwareOptions).mockReturnValue([
{ name: 'mock name', value: 'mockValue' },
{ name: 'mock labware in mock module in slot abc', value: 'mockValue' },
])
vi.mocked(getModuleEntities).mockReturnValue({
magnetId: {
Expand All @@ -82,7 +82,9 @@ describe('MagnetTools', () => {
it('renders the text and a switch button for v2', () => {
render(props)
screen.getByText('Module')
screen.getByText('mock name')
screen.getByText('abc')
screen.getByText('mock labware')
screen.getByText('mock module')
screen.getByText('Magnet state')
screen.getByLabelText('Engage')
const toggleButton = screen.getByRole('switch')
Expand Down

0 comments on commit 22cad42

Please sign in to comment.