From fe2ef9c087faa34b4d7213396b236b18efd45e7c Mon Sep 17 00:00:00 2001 From: Peter Ling Date: Wed, 10 Jan 2024 09:35:47 +0000 Subject: [PATCH] SLVUU-129: Run layout server for e2e tests --- .github/workflows/test-ui.yml | 6 +++--- vuu-ui/package.json | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-ui.yml b/.github/workflows/test-ui.yml index 464700feb7..b29ad2b83d 100644 --- a/.github/workflows/test-ui.yml +++ b/.github/workflows/test-ui.yml @@ -40,8 +40,8 @@ jobs: working-directory: ./vuu-ui browser: chrome build: npm run showcase:build - start: npm run showcase:preview - wait-on: "http://localhost:4173" + start: npm run showcase:preview, npm run layout-server + wait-on: http://localhost:4173, http://localhost:8081/api/swagger-ui/index.html - name: Run end-to-end tests in Edge uses: cypress-io/github-action@bd9dda317ed2d4fbffc808ba6cdcd27823b2a13b with: @@ -50,7 +50,7 @@ jobs: browser: edge build: npm run showcase:build start: npm run showcase:preview - wait-on: "http://localhost:4173" + wait-on: http://localhost:4173, http://localhost:8081/api/swagger-ui/index.html # ensure the vuu example still builds vuu-app-build: diff --git a/vuu-ui/package.json b/vuu-ui/package.json index badd87b1de..d84e29b510 100644 --- a/vuu-ui/package.json +++ b/vuu-ui/package.json @@ -28,6 +28,7 @@ "launch:table": "node ./scripts/launch-table.mjs", "launch:demo:electron": "cd tools/electron && node ./node_modules/.bin/electron .", "launch:showcase": " cd showcase && node scripts/launch.mjs", + "layout-server": "cd ../layout-server && mvn spring-boot:run", "deploy:websocket-test": "node ./tools/deploy-websocket-test.mjs", "view-bundle": "node ./scripts/visualize-bundle.mjs", "type-defs": "node ./scripts/build-all-type-defs.mjs",