Skip to content

Commit

Permalink
fix(runner-ct): fixing an exception and styling (#15833)
Browse files Browse the repository at this point in the history
* patch: fixing an exception and styling

* reduce icon margin a bit more

Co-authored-by: Lachlan Miller <[email protected]>
  • Loading branch information
JessicaSachs and lmiller1990 authored Apr 7, 2021
1 parent 702a152 commit f888625
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/runner-ct/src/app/Plugins.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const Plugins = namedObserver('Plugins',

return (
<Hidden
type="visual"
type="layout"
hidden={!props.state.isAnyPluginToShow}
className={styles.ctPlugins}
>
Expand Down
8 changes: 6 additions & 2 deletions packages/runner-ct/src/app/SpecList/SpecList.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,13 @@
margin-inline-start: $text-xs;
}

.folderIcon, .brandIcon {
margin-right: 0.5em;
.li svg {
margin-right: 0.3em;
}
// TODO: fix this
// .folderIcon, .brandIcon {
// margin-right: 1em;
// }

.isClosed {
+ .ul, + .li {
Expand Down
4 changes: 4 additions & 0 deletions packages/runner-ct/src/app/SpecList/SpecList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,10 @@ export const SpecList: React.FC<SpecListProps> = (props) => {
if (e.key === 'Enter') {
const selected = flattenedFiles[selectedSpecIndex]

if (!selected) {
return // enter key doesn't do anything if we couldn't find any specs
}

if (selected.type === 'file') {
// Run the spec.
props.onFileClick(selected)
Expand Down

4 comments on commit f888625

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on f888625 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-f888625f492c1bc460111b7f1493f75d04671998/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on f888625 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-f888625f492c1bc460111b7f1493f75d04671998/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on f888625 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-f888625f492c1bc460111b7f1493f75d04671998/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on f888625 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-f888625f492c1bc460111b7f1493f75d04671998/cypress.tgz

Please sign in to comment.