Skip to content

Commit

Permalink
Tikui, vue & cypress headless failling
Browse files Browse the repository at this point in the history
  • Loading branch information
qmonmert committed Dec 27, 2024
1 parent 057bb79 commit db2b4a8
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,15 @@ public JHipsterModule buildModule(JHipsterModuleProperties properties) {
.packageJson()
.addDependency(packageName("@tikui/core"), COMMON)
.addDevDependency(packageName("@prettier/plugin-pug"), COMMON)
.addDevDependency(packageName("serve"), COMMON)
.addDevDependency(packageName("stylelint"), COMMON)
.addDevDependency(packageName("stylelint-config-concentric-order"), COMMON)
.addDevDependency(packageName("stylelint-config-standard-scss"), COMMON)
.addDevDependency(packageName("stylelint-order"), COMMON)
.addDevDependency(packageName("tikuidoc-tikui"), COMMON)
.addScript(scriptKey("build:tikui"), scriptCommand("tikui-core build"))
.addScript(scriptKey("dev:tikui"), scriptCommand("tikui-core serve"))
.addScript(scriptKey("tikui:serve-build"), scriptCommand("tikui-core build && serve -p 9005 target/classes/public/style"))
.and()
.files()
.add(SOURCE.template("tikuiconfig.json"), to("tikuiconfig.json"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public JHipsterModule buildComponentTestsModule(JHipsterModuleProperties propert
.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: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 tikui:serve-build http://localhost:9005 start 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 @@ -31,7 +31,7 @@ public JHipsterModule buildComponentTestsModule(JHipsterModuleProperties propert
.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:headless"), scriptCommand("start-server-and-test tikui:serve-build http://localhost:9005 start 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 @@ -46,6 +46,7 @@
"prettier-plugin-organize-imports": "4.1.0",
"prettier-plugin-packagejson": "2.5.6",
"recursive-copy-cli": "1.0.20",
"serve": "14.2.4",
"start-server-and-test": "2.0.9",
"stylelint": "16.12.0",
"stylelint-config-concentric-order": "5.2.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,15 @@ private static JHipsterModuleAsserter assertThatTikuiModule(ModuleFile proxyFile
return assertThatModuleWithFiles(module, packageJsonFile(), proxyFile, indexFile)
.hasFile("package.json")
.containing(nodeDependency("@tikui/core"))
.containing(nodeDependency("serve"))
.containing(nodeDependency("stylelint"))
.containing(nodeDependency("stylelint-config-concentric-order"))
.containing(nodeDependency("stylelint-config-standard-scss"))
.containing(nodeDependency("stylelint-order"))
.containing(nodeDependency("tikuidoc-tikui"))
.containing(nodeScript("build:tikui", "tikui-core build"))
.containing(nodeScript("dev:tikui", "tikui-core serve"))
.containing(nodeScript("tikui:serve-build", "tikui-core build && serve -p 9005 target/classes/public/style"))
.and()
.hasFiles("tikuiconfig.json", ".stylelintrc.json")
.hasFile(".gitignore")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ void shouldBuildComponentTestsModule() {
.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 tikui:serve-build http://localhost:9005 start 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 @@ -33,7 +33,7 @@ void shouldBuildComponentTestsModule() {
.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 tikui:serve-build http://localhost:9005 start http://localhost:9000 'playwright test --config src/test/webapp/component/playwright.config.ts'"
)
)
.and()
Expand Down

0 comments on commit db2b4a8

Please sign in to comment.