-
Notifications
You must be signed in to change notification settings - Fork 36
Seeding Report: Test Area Filter #188
Comments
I would like to work on this issue! |
Hi team, please create a draft pull request for your work on this issue and mention it here. That way I'll be able to follow your progress more easily. Let me know if you need any assistance. |
@nguyenbanhducA1K51 Your question above seems to have not come through entirely. Please edit it to include all of the necessary information and ask your question. |
@braughtg |
When I look at your message above I see a screenshot labeled "Error" and another heading that says "Code" but I do not see any code, or see any question. I would suggest the following:
You can find some excellent advice on posting quality questions here: |
I think I figure out something wrong from your feedback. It is actually the white font that disappear in white background. The full question that I asked is: When I worked on Cypress Test for this issue, I added the line cy.waitForPage() in the beforeEach() part of the test. This is to make sure that the page has completed loading all API and data. However, it eventually raises unfamiliar error, which does not happen to my teammate when they run the same test. The error disappear when I deleted that line. I have searched for relevant information in stackoverflow and other sites from google but it seems there is not much information about the method waitForPage(). My question is does this error occur on my machine because of issue in the method waitForPage() itself, or something go wrong my computer configuration cause that cause this issue. Below is the screenshot of error and the code.
|
The error you show appears to be indicating that the test was not able to log into FarmData2: Thus, the issue may be that FarmData2 is not currently running rather than any issue with Are you able to visit |
@nguyenbanhducA1K51 -- Duc -- Thanks for posting your technical question. This is exactly the kind of practice we are looking for in this course. I don't have an answer to the technical question, but we can take a look at this in an office hour or during class next week. One thing I do want to mention. Remember in our class discussion how we talked about the importance of posting code snippets that are highly readable and well formatted. I noticed that when you posted your code, it was not indented correctly and has a blank line between every line of code. My feedback to you would be, it's really important to make sure code is formatted correctly. This tells your readers that you are striving for professionalism and your question deserves to be taken seriously. |
@nguyenbanhducA1K51 -- Duc -- May I suggest that, purely for practice, you repost your question below with the code formatted correctly? You can use the Preview tab to see what it is going to look like before you post. |
By the way Duc, I did see the same error as you once or twice. However, I have not been able to reproduce it reliably. When I run the tests in |
I agree with you professor Maccormick. I would repost the question with better format. Question: Code:
Besides, I think I have found the alternate solution which seem to be more consistent by using cy.intercept() method. Detail of code is down below
|
Thanks Duc @nguyenbanhducA1K51 -- Interesting. We should check with Prof. Braught @braughtg about this intercept() method. It may have some other undesirable consequences. Thanks again for posting and reposting your question. (I do notice that the indentation was still not correct. Just wanted you to be aware of that.) |
The use of The reason that The calls to |
The tests should generate seeding reports as appropriate to check that:
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: