-
Notifications
You must be signed in to change notification settings - Fork 36
Seeding Report: Test Direct Seeding Summary Values #206
Comments
I would like to work on this issue. |
I would like to work on this issue. |
I would like to work on this issue |
good luck |
@phong260702 Please push your branch and make a draft PR containing this code that links back to this issue with a "Closes #" line. That will make your code easily available to the project maintainers to experiment with to help develop an answer. |
I've pushed the branch and created a draft PR. |
There is some good information on how to do this on the Variables and Aliases page in the Cypress Documentation. Read through it, but I think the right approach is described in the section on Sharing Context in the sub-section on Avoiding the use of |
Is possible to use global variables? |
I think the problem occurs because the code is executed synchronously. cy.log() is executed before the cy.get() inside the loop. To avoid this, my solution is to use each() to iterate through a list of elements, and then add then() to check the total. |
@qnhn22 Quan -- I'm not sure if you have figured out a solution to the problem of repeating a lot of test code. If not, don't worry about it, just write the tests with a large amount of repeated code. Then we can look at it and determine if there is a way to factor out repeated content. For now, use the simplest possible approach even if that causes repeated code. (Unless you already found a better solution.) |
@johnmaccormick Hi Professor MacCormick, |
When a Seeding Report that contains direct seedings is generated, a Direct Seeding Summary table appears below the table. This summary contains data that is computed from the data in the table.
This test must check that the values reported for the following quantities agree with the data in the table:
Notes:
Additional Information:
Some additional notes relevant to this issue:
.spec.js
file containing your test should be stored in an appropriate location and have a short but descriptive name. Use the locations and an naming from the "Good First issues" as examples..spec.js
file should include a comment at the top that describes what the file as a whole is testing.describe
should describe in a short phrase what the file is testing.beforeEach
method should callcy.waitForPage()
. This will ensure that the page is fully loaded (e.g. that all theMaps
used by the page are loaded) before performing any tests.it
for each of the things to be tested.it
s so that eachit
tests a cohesive set of things.it
should describe in a short phrase what theit
is testing..spec.js
files in thefarmdata2/farmdata2_modules/fd2_example/
sub-tabs (e.g.ui
,api
) may provide some helpful examples.docker/sampleDB/README.md
file.The text was updated successfully, but these errors were encountered: