Skip to content

Commit

Permalink
closes #2871 (#3563)
Browse files Browse the repository at this point in the history
* closes #2871

* closes #2871

* lowercase Run to run since in middle of sentence


Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
  • Loading branch information
louise-hayes-fitz and jennifer-shehane committed Feb 25, 2019
1 parent 38be316 commit 4c85c76
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 4c85c76

Please sign in to comment.