Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(app): fix LPC button #8502

Merged
merged 1 commit into from
Oct 12, 2021
Merged

Conversation

jerader
Copy link
Collaborator

@jerader jerader commented Oct 11, 2021

closes #8494

Overview

closes ticket 8494

Changelog

  • fixes LPC introScreen button
  • add labwarePositionCheck.index test

Review requests

  • make sure this change matches figma node
  • review tests

Risk assessment

low, behind ff

@codecov
Copy link

codecov bot commented Oct 11, 2021

Codecov Report

Merging #8502 (59fe987) into edge (914f5cc) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             edge    #8502      +/-   ##
==========================================
+ Coverage   74.24%   74.25%   +0.01%     
==========================================
  Files        1692     1692              
  Lines       45504    45504              
  Branches     4619     4619              
==========================================
+ Hits        33784    33790       +6     
+ Misses      10926    10919       -7     
- Partials      794      795       +1     
Flag Coverage Δ
app 71.40% <100.00%> (+0.06%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...ProtocolSetup/LabwarePositionCheck/IntroScreen.tsx 75.00% <100.00%> (+6.25%) ⬆️
...nisms/ProtocolSetup/LabwarePositionCheck/index.tsx 85.71% <0.00%> (+71.42%) ⬆️

@jerader jerader added the app Affects the `app` project label Oct 11, 2021
@jerader jerader marked this pull request as ready for review October 11, 2021 19:04
@jerader jerader requested a review from a team as a code owner October 11, 2021 19:04
@jerader jerader requested review from shlokamin and Kadee80 and removed request for a team October 11, 2021 19:04
Copy link
Contributor

@Kadee80 Kadee80 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Member

@shlokamin shlokamin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, and thanks so much for adding test coverage to LabwarePositionCheck!!

Comment on lines +119 to +127
it('should call setCurrentLabwareCheckStep when the CTA button is pressed', () => {
const { getByRole } = render(props)
expect(props.setCurrentLabwareCheckStep).not.toHaveBeenCalled()
const genericStepScreenButton = getByRole('button', {
name: 'begin labware position check, move to Slot 2',
})
fireEvent.click(genericStepScreenButton)
expect(props.setCurrentLabwareCheckStep).toHaveBeenCalled()
})
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hell yeah, thanks for this @jerader!!

@jerader jerader merged commit aae8f45 into edge Oct 12, 2021
@jerader jerader deleted the app_lpc-intro-screen-button-fix branch October 12, 2021 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app Affects the `app` project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

LPC: FIx begin labware position check button
3 participants