Skip to content

Commit

Permalink
fix: make "New Spec File" a button link style (#15835)
Browse files Browse the repository at this point in the history
  • Loading branch information
brian-mann authored Apr 7, 2021
1 parent d32076b commit 065446f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/desktop-gui/src/specs/specs-list.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ class SpecsList extends Component {
</Tooltip>
</div>
<div className='new-file-button'>
<button className='btn btn-primary' onClick={this._createNewFile.bind(this)}>New Spec File</button>
<button className='btn btn-link' onClick={this._createNewFile}><i className="fa fa-plus"></i> New Spec File</button>
</div>
</header>
{this._specsList()}
Expand Down Expand Up @@ -289,7 +289,7 @@ class SpecsList extends Component {
specsStore.toggleExpandSpecFolder(specFolderPath)
}

_createNewFile (e) {
_createNewFile = (e) => {
e.preventDefault()
e.stopPropagation()

Expand Down Expand Up @@ -405,7 +405,7 @@ class SpecsList extends Component {
<div className='empty-well'>
<h5>
No files found in
<code onClick={this._openIntegrationFolder.bind(this)}>
<code onClick={this._openIntegrationFolder}>
{this.props.project.integrationFolder}
</code>
</h5>
Expand All @@ -425,7 +425,7 @@ class SpecsList extends Component {
<div className="first-test-banner alert alert-info alert-dismissible">
<p>We've created some sample tests around key Cypress concepts. Run the first one or create your own test file.</p>
<p><a onClick={this._openHelp}>How to write tests</a></p>
<button className="close" onClick={this._removeFirstTestBanner.bind(this)}><span>&times;</span></button>
<button className="close" onClick={this._removeFirstTestBanner}><span>&times;</span></button>
</div>
)
}
Expand All @@ -440,7 +440,7 @@ class SpecsList extends Component {
)
}

_openIntegrationFolder () {
_openIntegrationFolder = () => {
ipc.openFinder(this.props.project.integrationFolder)
}

Expand All @@ -449,7 +449,7 @@ class SpecsList extends Component {
ipc.externalOpen('https://on.cypress.io/writing-first-test')
}

_removeFirstTestBanner () {
_removeFirstTestBanner = () => {
this.setState({ firstTestBannerDismissed: true })
}
}
Expand Down

4 comments on commit 065446f

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 065446f Apr 7, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the linux x64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/7.0.1/circle-develop-065446f64fd5209ea46cf32ec4ae0f2a10751551/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 065446f Apr 7, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AppVeyor has built the win32 ia32 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/7.0.1/appveyor-develop-065446f64fd5209ea46cf32ec4ae0f2a10751551/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 065446f Apr 7, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AppVeyor has built the win32 x64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/7.0.1/appveyor-develop-065446f64fd5209ea46cf32ec4ae0f2a10751551/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 065446f Apr 7, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the darwin x64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/7.0.1/circle-develop-065446f64fd5209ea46cf32ec4ae0f2a10751551/cypress.tgz

Please sign in to comment.