{"action":"opened","issue":{"url":"https://api.github.com/repos/cypress-io/cypress/issues/2748","repository_url":"https://api.github.com/repos/cypress-io/cypress","labels_url":"https://api.github.com/repos/cypress-io/cypress/issues/2748/labels{/name}","comments_url":"https://api.github.com/repos/cypress-io/cypress/issues/2748/comments","events_url":"https://api.github.com/repos/cypress-io/cypress/issues/2748/events","html_url":"https://github.com/cypress-io/cypress/issues/2748","id":378999452,"node_id":"MDU6SXNzdWUzNzg5OTk0NTI=","number":2748,"title":"Stubbed XHR GET request randomly stubbed","user":{"login":"eaustin","id":6362293,"node_id":"MDQ6VXNlcjYzNjIyOTM=","avatar_url":"https://avatars1.githubusercontent.com/u/6362293?v=4","gravatar_id":"","url":"https://api.github.com/users/eaustin","html_url":"https://github.com/eaustin","followers_url":"https://api.github.com/users/eaustin/followers","following_url":"https://api.github.com/users/eaustin/following{/other_user}","gists_url":"https://api.github.com/users/eaustin/gists{/gist_id}","starred_url":"https://api.github.com/users/eaustin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eaustin/subscriptions","organizations_url":"https://api.github.com/users/eaustin/orgs","repos_url":"https://api.github.com/users/eaustin/repos","events_url":"https://api.github.com/users/eaustin/events{/privacy}","received_events_url":"https://api.github.com/users/eaustin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-09T02:37:25Z","updated_at":"2018-11-09T02:37:25Z","closed_at":null,"author_association":"NONE","body":"\r\n### Current behavior:\r\n\r\nTesting locally, I have a test that randomly fails locally because the request is not stubbed. The URL is quite simple and I have other tests that are reliable always work. On our CI system, it fails most of the time, but will pass probably 1/5 times.\r\n\r\n![2018-11-08_21-20-18](https://user-images.githubusercontent.com/6362293/48239536-36967200-e39d-11e8-8b99-98ef4b7d99b6.png)\r\n\r\nThis is the content of the entire spec file:\r\n\r\n```\r\ndescribe('Some Results', () => {\r\n  const PREFIX = '/api/pi-ui-gateway/test-engine/v1/organizations';\r\n  beforeEach(() => {\r\n    cy.server()\r\n      .mockLogin()\r\n      .visit('/pi-ui/operations/#/some-results');\r\n    cy.route(\r\n      'GET',\r\n      '/api/pi-ui-gateway/operations-service/v0/organizations',\r\n      'fixture:operations-service/v0/organizations.json'\r\n    );\r\n    cy.route(\r\n      'GET',\r\n      `${PREFIX}/f6cda1abb0f4609/some-result*`,\r\n      'fixture:operations-service/v0/someResults|fromDate=2018-01-01&toDate=2018-01-14.json'\r\n    );\r\n  });\r\n\r\n  it('should display some results with a drop down list of clients', () => {\r\n    cy.get('.vdl-dropdown-list__input')\r\n      .contains('Select a client')\r\n      .click();\r\n\r\n    cy.get('.vdl-list__option')\r\n      .first()\r\n      .click();\r\n\r\n    cy.get('.vdl-list-view__content').should('have.length.gte', 1);\r\n  });\r\n});\r\n\r\n```\r\n\r\n### Desired behavior:\r\n\r\nExpect request to always be stubbed\r\n\r\n\r\n### Steps to reproduce:\r\n\r\nNot reproducible reliably.\r\n\r\n\r\n\r\n### Versions\r\n\r\nCypress 3.0.1\r\nMac/Linux\r\nChrome/Electron\r\n"}}
{"actor":{"display_login":"eaustin"}}