---
title: "3.1.5"
url: "https://www.cypress.io/releases/3-1-5"
description: "Bugfixes: Fixed issue where the onLoad event was never being called when calling cy.visit() on the url Cypress is currently navigated to. Fixes #1311. Fixed…"
---

# 3.1.5

ReleasedReleased on January 29, 2019

**Bugfixes:**

-   Fixed issue where the `onLoad` event was never being called when calling [cy.visit()](/api/commands/visit) on the url Cypress is currently navigated to. Fixes [#1311](https://github.com/cypress-io/cypress/issues/1311).
    
-   Fixed regression introduced in [3.1.4](#3-1-4) that caused an `InvalidStateError` when visiting a page with an XHR request with a `responseType` other than `text` or `''`. Fixes [#3008](https://github.com/cypress-io/cypress/issues/3008).
    
-   Fixed several issues in Chrome\* versions `>=72` in the Cypress proxy that caused using `cy.visit()` with `localhost` to fail, or using `localhost` inside of the `baseUrl` configuration option. Fixes [#1872](https://github.com/cypress-io/cypress/issues/1872) and [#3252](https://github.com/cypress-io/cypress/issues/3252) and [#1777](https://github.com/cypress-io/cypress/issues/1777).
    
-   Fixed another issue in Chrome\* versions `>=72` where a scrollable command log would cause the entire application to be scrollable. Fixes [#3253](https://github.com/cypress-io/cypress/issues/3253).
    
-   Fixed not correctly passing the `timeout` option for [cy.request()](/api/commands/request). This should fix some instances where large `timeout` values would cause `ESOCKETTIMEDOUT` errors. Fixes [#2669](https://github.com/cypress-io/cypress/issues/2669).
    
-   Fixed issue where Cypress would inject a script tag before the `<!DOCTYPE>` declaration when the document only contained the doctype declaration. Fixes [#2617](https://github.com/cypress-io/cypress/issues/2617).
    
-   The error message when visiting a site with an invalid content-type now prints the correct content-type of the response Cypress received from the web server. Fixes [#3101](https://github.com/cypress-io/cypress/issues/3101).
    
-   Fixed issue where an internal `layout.html` file would inadvertently get loaded instead of the spec file. Fixes [#2891](https://github.com/cypress-io/cypress/issues/2891).
    
-   Fixed issue where the Chromium browser was not detected in Linux due to Cypress not distinguishing between Chrome and Chromium browsers with the same version. Fixes [#1400](https://github.com/cypress-io/cypress/issues/1400).
    
-   Fixed issue of Cypress being unable to play videos with `autoplay`. We now pass the `--no-user-gesture-required` command line switch to Chrome. Fixes [#2376](https://github.com/cypress-io/cypress/issues/2376).
    
-   We now pass the Chromium command line switches `--use-fake-ui-for-media-stream` and `--use-fake-device-for-media-stream` to Chrome by default in order to better support testing webcam functionality. Fixes [#2704](https://github.com/cypress-io/cypress/issues/2704).
    
-   Updated filenames allowed for screenshots to allow more characters that are valid. Fixes [#3052](https://github.com/cypress-io/cypress/issues/3052).
    
-   Fixed TypeScript error caused by `dtslint` dependency introduced in [3.1.4](#3-1-4). Fixes [#3024](https://github.com/cypress-io/cypress/issues/3024) and [#3136](https://github.com/cypress-io/cypress/issues/3136).
    
-   Improved error message displayed for `cypress cache` to not display `[object Object]` and made `--help` labels more descriptive. Fixes [#2589](https://github.com/cypress-io/cypress/issues/2589).
    
-   Using [.clear()](/api/commands/clear) on inputs of type 'date' is now working. Fixes [#2738](https://github.com/cypress-io/cypress/issues/2738)
    
-   Fixed issue where `event` was undefined when using an `onload` event handler. Fixed [#2859](https://github.com/cypress-io/cypress/issues/2859)
    

**Misc:**

-   Improved errors shown when opening a project in the Desktop Application. The design is more readable and the error's stack trace is now expandable. Addresses [#2955](https://github.com/cypress-io/cypress/issues/2955).
    
-   Improved experience of search in Desktop Application when there are no results. Addresses [#3146](https://github.com/cypress-io/cypress/issues/3146).
    
-   Updated tooltip content so that it no longer flows outside of the tooltip in the Test Runner when displaying longer routes. Fixes [#2980](https://github.com/cypress-io/cypress/issues/2980).
    
-   Added word labels beside icons in Desktop Application for 'Support' and 'Docs' links. Addresses [#3091](https://github.com/cypress-io/cypress/issues/3091).
    
-   Updated the CLI to no longer silence important stdout from `cypress version`, `cypress cache list` etc commands. Addresses [#2705](https://github.com/cypress-io/cypress/issues/2705).
    
-   Fixed incorrect type definition for options usage for [.then()](/api/commands/then). Addresses [#3075](https://github.com/cypress-io/cypress/issues/3075).
    
-   Fixed incorrect JSDoc comments in type definition for [.focus()](/api/commands/focus) and better formatted comments in type definitions. Addresses [#2975](https://github.com/cypress-io/cypress/issues/2975) and [#2954](https://github.com/cypress-io/cypress/issues/2954).
    
-   Updated error messages to include single quotes when displaying written test code. Addresses [#2684](https://github.com/cypress-io/cypress/issues/2684)
    

**Documentation Changes:**

-   Added example on how to use a fake video for webcam testing to [Browser API doc](/api/node-events/browser-launch-api#Use-fake-video-for-webcam-testing).
    

**Dependency Updates**

-   We've begun automating our dependency update process in order to avoid accidental dependency updates. Addresses [#2990](https://github.com/cypress-io/cypress/issues/2990) and [#3025](https://github.com/cypress-io/cypress/issues/3025).
    
-   Upgraded `sinon` from `3.2.0` to `3.3.0`. Addresses [#1328](https://github.com/cypress-io/cypress/issues/1328).