Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
louise-hayes committed Feb 22, 2019
1 parent 9d45554 commit 3632a48
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Expand Up @@ -86,7 +86,8 @@ describe "Update Banner", ->

it "modal has info about updating package.json", ->
cy.get(".modal").contains("npm install --save-dev cypress@#{NEW_VERSION}")

cy.get(".modal").contains("yarn add cypress@#{NEW_VERSION}")

it "links to 'open' doc on click of open command", ->
cy.get(".modal").contains("cypress open").click().then =>
expect(@ipc.externalOpen).to.be.calledWith("https://on.cypress.io/how-to-open-cypress")
Expand Down
5 changes: 4 additions & 1 deletion packages/desktop-gui/src/update/update-banner.jsx
Expand Up @@ -84,7 +84,10 @@ class UpdateBanner extends Component {
<span>Quit this app.</span>
</li>
<li>
<span>Run <code>npm install --save-dev cypress@{appStore.newVersion}</code></span>
<span>If using npm, Run <code>npm install --save-dev cypress@{appStore.newVersion}</code></span>
<br/>
<span>If using yarn, Run <code>yarn add cypress@{appStore.newVersion}</code></span>

</li>
<li>
<span>Run <a href='#' onClick={this._openCyOpenDoc}><code>node_modules/.bin/cypress open</code></a> to open the new version.</span>
Expand Down

0 comments on commit 3632a48

Please sign in to comment.