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

Test Transplanting Report Defaults #11

Open
6 tasks
braughtg opened this issue Aug 27, 2024 · 0 comments
Open
6 tasks

Test Transplanting Report Defaults #11

braughtg opened this issue Aug 27, 2024 · 0 comments
Labels
good first issue Good for newcomers testing Issue related to testing FarmData2 functionality

Comments

@braughtg
Copy link
Member

The tests created for this issue will test the default contents of the Transplanting Report page in the BarnKit.

These tests must check that the:

  • - page contains the header "Transplanting Report"
  • - page contains a section labeled "Set Dates"
  • - button has the label "Generate Report" and is enabled.
  • - default start date is the first day of the current year.
  • - default end date is the current date.
  • - the remainder of the report is not visible or does not exist.

Other information:

  • The source code and tests for the Seeding Report will be in the farmdata2/farmdata2_modules/fd2_barn_kit/transplantingReport directory.
  • The transplantingReport.html file contains the source code for the page.
  • The tests for this issue should be created in a new file named transplantingReport.defaults.spec.js

Some additional notes:

  • The .spec.js file should include a comment at the top that describes what the file as a whole is testing.
  • The message for the describe should describe in a short phrase what the file is testing.
  • It is not necessary to include a separate it for each of the things to be tested.
    • You should decide how to divide the things being tested into its so that each it tests a cohesive set of things.
    • The message for each it should describe in a short phrase what the it is testing.
  • The .spec.js files in the farmdata2/farmdata2_modules/fd2_example/ sub-tabs (e.g. ui, api) may provide some helpful examples.

Original issue by braughtg
Tuesday Mar 28, 2023 at 19:28 GMT

@braughtg braughtg added good first issue Good for newcomers testing Issue related to testing FarmData2 functionality labels Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers testing Issue related to testing FarmData2 functionality
Projects
None yet
Development

No branches or pull requests

1 participant