Skip to main content

MoveNotes

Overview

This document outlines the test cases for the MoveNotes component. The MoveNotes component is responsible for managing the movement of notes between boards and notebooks in Lunchbox application. These test cases ensure that the component functions correctly under different scenarios.

Test Case 1: Rendering Tabs and Components

  • Description: Tests whether the tabs and components are rendered correctly.
  • Expected Outcome: The 'Board' and 'Notebook' tabs should be rendered, along with the corresponding components. The 'Notebook' component should not be rendered initially.

Test Case 2: Switching to Notebook Tab

  • Description: Tests whether the component switches to the 'Notebook' tab and renders its component correctly.
  • Expected Outcome: Upon clicking the 'Notebook' tab, the 'Board' component should disappear, and the 'Notebook' component should appear.

Test Case 3: Enabling Continue Button (Board Selected)

  • Description: Tests whether the 'Continue' button is enabled when a board is selected.
  • Expected Outcome: After selecting a board, the 'Continue' button should become enabled.

Test Case 4: Enabling Continue Button (Notebook Selected)

  • Description: Tests whether the 'Continue' button is enabled when a notebook is selected.
  • Expected Outcome: After selecting a notebook (after switching to the 'Notebook' tab), the 'Continue' button should become enabled.

Test Case 5: Closing Modal on Cancel

  • Description: Tests whether the modal closes when the 'Cancel' button is clicked.
  • Expected Outcome: Upon clicking the 'Cancel' button, the modal should close.

Test Case 6: Closing Modal on Continue

  • Description: Tests whether the modal closes when the 'Continue' button is clicked after selecting a board.
  • Expected Outcome: After selecting a board and clicking the 'Continue' button, the modal should close.