You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think that the "can add post" test leaves the page in a different state from which it finds it. My understanding is that this isn't best practice for tests. The alternative - deleting the created post within the "can add post" test - doesn't seem ideal, since this would mean that it's no different from the delete test. I'm not sure what the best solution is: keeping the tests as you have them or only have one test that tests posting and deleting posts in one.
The text was updated successfully, but these errors were encountered:
In a simple case like this I would probably just manually delete the post in the same test where you add it. In a more complex thing it's common to have a separate script of some kind to "reset" your data store before each test. We'll cover this when we look at databases next week :)
I think that the "can add post" test leaves the page in a different state from which it finds it. My understanding is that this isn't best practice for tests. The alternative - deleting the created post within the "can add post" test - doesn't seem ideal, since this would mean that it's no different from the delete test. I'm not sure what the best solution is: keeping the tests as you have them or only have one test that tests posting and deleting posts in one.
The text was updated successfully, but these errors were encountered: