Unstable Espresso tests

I am writing Espresso test. Log in to the application. I enter the session key. Then I need to check for four elements on the page. But the test broke in 3 of 4 cases.

@Test
public void checkContentsCartsWindow() throws Exception {
on…