Skip to content

Commit

Permalink
update js tests
Browse files Browse the repository at this point in the history
  • Loading branch information
caila-marashaj committed Apr 23, 2024
1 parent 7190114 commit 437b268
Show file tree
Hide file tree
Showing 6 changed files with 747 additions and 219 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class VerifyTipPresenceParams(PipetteIdMixin):
expectedState: TipPresenceStatus = Field(
..., description="The expected tip presence status on the pipette."
)
FollowSingularSensor: Optional[InstrumentSensorId] = Field(
followSingularSensor: Optional[InstrumentSensorId] = Field(
default=None, description="The sensor id to follow if the other can be ignored."
)

Expand Down Expand Up @@ -51,8 +51,8 @@ async def execute(self, params: VerifyTipPresenceParams) -> VerifyTipPresenceRes
pipette_id = params.pipetteId
expected_state = params.expectedState
follow_singular_sensor = (
InstrumentSensorId.to_instrument_probe_type(params.FollowSingularSensor)
if params.FollowSingularSensor
InstrumentSensorId.to_instrument_probe_type(params.followSingularSensor)
if params.followSingularSensor
else None
)

Expand Down
6 changes: 5 additions & 1 deletion app/src/organisms/LabwarePositionCheck/AttachProbe.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,11 @@ export const AttachProbe = (props: AttachProbeProps): JSX.Element | null => {
const verifyCommands: CreateCommand[] = [
{
commandType: 'verifyTipPresence',
params: { pipetteId: pipetteId, expectedState: 'present', FollowSingularSensor: 'primary' },
params: {
pipetteId: pipetteId,
expectedState: 'present',
followSingularSensor: 'primary',
},
},
]
const homeCommands: CreateCommand[] = [
Expand Down
6 changes: 5 additions & 1 deletion app/src/organisms/PipetteWizardFlows/AttachProbe.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,11 @@ export const AttachProbe = (props: AttachProbeProps): JSX.Element | null => {
const verifyCommands: CreateCommand[] = [
{
commandType: 'verifyTipPresence',
params: { pipetteId: pipetteId, expectedState: 'present', FollowSingularSensor: 'primary' },
params: {
pipetteId: pipetteId,
expectedState: 'present',
followSingularSensor: 'primary',
},
},
]
const homeCommands: CreateCommand[] = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ describe('AttachProbe', () => {
[
{
commandType: 'verifyTipPresence',
params: { pipetteId: 'abc', expectedState: 'present' },
params: { pipetteId: 'abc', expectedState: 'present', followSingularSensor: 'primary'},
},
],
false
Expand Down Expand Up @@ -205,7 +205,7 @@ describe('AttachProbe', () => {
[
{
commandType: 'verifyTipPresence',
params: { pipetteId: 'abc', expectedState: 'present' },
params: { pipetteId: 'abc', expectedState: 'present', followSingularSensor: 'primary'},
},
],
false
Expand Down
Loading

0 comments on commit 437b268

Please sign in to comment.