Skip to content

store studentNames state as string rather than array - #48181

Merged
davidsbailey merged 1 commit into
stagingfrom
empty-student-names-join
Sep 20, 2022
Merged

store studentNames state as string rather than array#48181
davidsbailey merged 1 commit into
stagingfrom
empty-student-names-join

Conversation

@davidsbailey

@davidsbailey davidsbailey commented Sep 19, 2022

Copy link
Copy Markdown
Member

Follow-up from #48126. Fixes the following bug:

Screen.Recording.2022-09-19.at.2.11.03.PM.mov

Testing story

I didn't write a test for this exact scenario, but the new implementation reduces the amount of complexity and makes me feel like the existing test cases now cover all of the possibilities pretty well:

  • hoc_batch_certificates.feature covers entering 1-3 student names and then printing
  • section_action_dropdown.feature covers navigating from teacher homepage to /certificates/batch, with initialStudentNames set

I did also manually verify that typing in a student name and then deleting it does not crash the page.

@davidsbailey
davidsbailey marked this pull request as ready for review September 20, 2022 02:40
@davidsbailey
davidsbailey requested review from a team September 20, 2022 02:41
@davidsbailey
davidsbailey merged commit 908261f into staging Sep 20, 2022
@davidsbailey
davidsbailey deleted the empty-student-names-join branch September 20, 2022 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants