Why do my tests fail when run together, but pass individually?

前端 未结 7 1215
有刺的猬
有刺的猬 2020-12-29 23:56

When I write a test in Visual Studio, I check that it works by saving, building and then running the test it in Nunit (right click on the test then run).

The test wo

7条回答
  •  北荒
    北荒 (楼主)
    2020-12-30 00:29

    Are you sure that after running one of the tests the method

    NavigateTo().LogonAsCustomerAdministrator();
    

    is taking you back to where you should be? It'd seem that the failure is due to improper navigation handler (supposing that the header element is present and found in both tests).

提交回复
热议问题