Some more preliminary work

This commit is contained in:
BlueWinds
2022-03-16 10:34:32 -07:00
parent b295c6d5ef
commit a7786d22d1
14 changed files with 8 additions and 51 deletions
View File
View File
View File
@@ -144,8 +144,6 @@ export const e2eProjectDirs = [
'ts-proj-with-module-esnext',
'ts-proj-with-paths',
'uncaught-support-file',
'unify-onboarding',
'unify-onboarding-with-config',
'unify-plugin-errors',
'various-file-types',
'vite-ct',
@@ -60,11 +60,6 @@
"from": "default",
"field": "clientCertificates"
},
{
"value": "src",
"from": "config",
"field": "componentFolder"
},
{
"value": 4000,
"from": "default",
@@ -308,4 +303,4 @@
"from": "config",
"field": "component"
}
]
]
@@ -43,8 +43,9 @@ describe('RunnerCt', () => {
})
it('shows hint message if no component specs', () => {
mountRunnerCt(makeState({ specs: [] }), { ...fakeConfig, projectRoot: '/root', componentFolder: '/root/src' })
mountRunnerCt(makeState({ specs: [] }), { ...fakeConfig, projectRoot: '/root', specPattern: '/root/src/**/*.cy.tsx' })
cy.contains('No specs found')
cy.contains('Create a new spec file matching /root/src/**/*.cy.tsx')
cy.percySnapshot()
})
@@ -126,7 +126,7 @@ $box-shadow-closest: 0px 0px 5px rgba(0, 0, 0, 0.4);
margin: 0 1rem;
line-height: 1.5;
.folder {
.pattern {
border-radius: 4px;
padding: 1px 4px;
background-color: #ddd;
+1 -1
View File
@@ -12,11 +12,11 @@ interface CssExports {
'ctTogglePluginsSectionButton': string;
'ctTogglePluginsSectionButtonOpen': string;
'display-none': string;
'folder': string;
'largerIcon': string;
'leftNav': string;
'noSpecAut': string;
'noSpecsDescription': string;
'pattern': string;
'reporter': string;
'runner': string;
'runnerCt': string;
+3 -7
View File
@@ -209,14 +209,10 @@ const RunnerCt = namedObserver('RunnerCt',
state.specs.length < 1 ? (
<NoSpec message="No specs found">
<p className={runnerCtStyles.noSpecsDescription}>
Create a new spec file in
Create a new spec file matching
{' '}
<span className={runnerCtStyles.folder}>
{
props.config.componentFolder
? props.config.componentFolder.replace(props.config.projectRoot, '')
: 'the component specs folder'
}
<span className={runnerCtStyles.pattern}>
{props.config.specPattern.replace(props.config.projectRoot, '')}
</span>
{' '}
and it will immediately appear here.
@@ -1,18 +0,0 @@
const { devServer } = require('@cypress/webpack-dev-server')
module.exports = {
component: {
supportFile: false,
specPattern: '**/*cy-spec.{js,jsx,ts,tsx}',
componentFolder: 'src',
devServer,
devServerConfig: {
output: {
publicPath: '/',
},
},
},
e2e: {
supportFile: false,
},
}
@@ -1,15 +0,0 @@
const { devServer } = require('@cypress/webpack-dev-server')
module.exports = {
'component': {
devServer,
devServerConfig: {
output: {
publicPath: '/',
},
},
},
'e2e': {
'supportFile': false,
},
}