Skip to content

Commit

Permalink
Merge pull request #11653 from qmonmert/fix/11642v2
Browse files Browse the repository at this point in the history
Tikui, vue & cypress headless failling
  • Loading branch information
murdos authored Dec 28, 2024
2 parents 00c1e87 + adde907 commit 14ceebc
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ public class AngularJwtModuleFactory {
{
path: '',
loadComponent: () => import('./login/login.component'),
title: 'Login',
},\
""";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ public JHipsterModule buildComponentTestsModule(JHipsterModuleProperties propert
return commonCypressModuleBuilder(properties, CYPRESS_COMPONENT_TESTS)
.packageJson()
.addDevDependency(packageName("start-server-and-test"), COMMON)
.addScript(scriptKey("test:component"), scriptCommand("start-server-and-test start http://localhost:9000 'cypress open --e2e --config-file src/test/webapp/component/cypress-config.ts'"))
.addScript(scriptKey("test:component"), scriptCommand("start-server-and-test dev http://localhost:9000 'cypress open --e2e --config-file src/test/webapp/component/cypress-config.ts'"))
.addScript(
scriptKey("test:component:headless"),
scriptCommand("start-server-and-test start http://localhost:9000 'cypress run --headless --config-file src/test/webapp/component/cypress-config.ts'")
scriptCommand("start-server-and-test dev http://localhost:9000 'cypress run --headless --config-file src/test/webapp/component/cypress-config.ts'")
)
.and()
.context()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ public JHipsterModule buildComponentTestsModule(JHipsterModuleProperties propert
return commonPlaywrightModuleBuilder(properties, WEBAPP_COMPONENT_TESTS)
.packageJson()
.addDevDependency(packageName("start-server-and-test"), COMMON)
.addScript(scriptKey("test:component"), scriptCommand("start-server-and-test start http://localhost:9000 'playwright test --ui --config src/test/webapp/component/playwright.config.ts'"))
.addScript(scriptKey("test:component:headless"), scriptCommand("start-server-and-test start http://localhost:9000 'playwright test --config src/test/webapp/component/playwright.config.ts'"))
.addScript(scriptKey("test:component"), scriptCommand("start-server-and-test dev http://localhost:9000 'playwright test --ui --config src/test/webapp/component/playwright.config.ts'"))
.addScript(scriptKey("test:component:headless"), scriptCommand("start-server-and-test dev http://localhost:9000 'playwright test --config src/test/webapp/component/playwright.config.ts'"))
.and()
.context()
.put("reportSubDirectory", "component-tests")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ void shouldBuildModule() {
{
path: '',
loadComponent: () => import('./login/login.component'),
title: 'Login',
},
"""
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ void shouldBuildComponentTestsModule() {
.containing(
nodeScript(
"test:component",
"start-server-and-test start http://localhost:9000 'cypress open --e2e --config-file src/test/webapp/component/cypress-config.ts'"
"start-server-and-test dev http://localhost:9000 'cypress open --e2e --config-file src/test/webapp/component/cypress-config.ts'"
)
)
.containing(
nodeScript(
"test:component:headless",
"start-server-and-test start http://localhost:9000 'cypress run --headless --config-file src/test/webapp/component/cypress-config.ts'"
"start-server-and-test dev http://localhost:9000 'cypress run --headless --config-file src/test/webapp/component/cypress-config.ts'"
)
)
.and()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ void shouldBuildComponentTestsModule() {
.containing(
nodeScript(
"test:component",
"start-server-and-test start http://localhost:9000 'playwright test --ui --config src/test/webapp/component/playwright.config.ts'"
"start-server-and-test dev http://localhost:9000 'playwright test --ui --config src/test/webapp/component/playwright.config.ts'"
)
)
.containing(
nodeScript(
"test:component:headless",
"start-server-and-test start http://localhost:9000 'playwright test --config src/test/webapp/component/playwright.config.ts'"
"start-server-and-test dev http://localhost:9000 'playwright test --config src/test/webapp/component/playwright.config.ts'"
)
)
.and()
Expand Down

0 comments on commit 14ceebc

Please sign in to comment.