Konstantinos Kaloutas 2 лет назад
Родитель
Сommit
2dff7336c9

+ 5 - 2
.github/workflows/build.yml

@@ -185,15 +185,18 @@ jobs:
       - name: Install fluxbox
         run: sudo apt-get update && sudo apt-get install -y fluxbox
 
+      - name: Export display
+        run: export DISPLAY=:99
+
       - name: Run Playwright test - 1/2
-        run: Xvfb :1 -screen 0 "1280x720x24" >/dev/null 2>&1 & export DISPLAY=:1.0 fluxbox >/dev/null 2>&1 & npx playwright test --reporter github --shard=1/2
+        run: Xvfb :99 -screen 0 1024x768x16 & fluxbox & npx playwright test --reporter github --shard=1/2
         env:
           LOGSEQ_CI: true
           DEBUG: "pw:api"
           RELEASE: true # skip dev only test
 
       - name: Run Playwright test - 2/2
-        run: Xvfb :1 -screen 0 "1280x720x24" >/dev/null 2>&1 & export DISPLAY=:1.0 fluxbox >/dev/null 2>&1 & npx playwright test --reporter github --shard=2/2
+        run: Xvfb :99 -screen 0 1024x768x16 & fluxbox & npx playwright test --reporter github --shard=2/2
         env:
           LOGSEQ_CI: true
           DEBUG: "pw:api"

+ 4 - 1
.github/workflows/e2e.yml

@@ -140,8 +140,11 @@ jobs:
       - name: Install fluxbox
         run: sudo apt-get update && sudo apt-get install -y fluxbox
 
+      - name: Export display
+        run: export DISPLAY=:99
+
       - name: Run Playwright test
-        run: Xvfb :1 -screen 0 "1280x720x24" >/dev/null 2>&1 & export DISPLAY=:1.0 fluxbox >/dev/null 2>&1 & npx playwright test --reporter github --shard=${{ matrix.shard }}/3
+        run: Xvfb :99 -screen 0 1024x768x16 & fluxbox & npx playwright test --reporter github --shard=${{ matrix.shard }}/3
         env:
           LOGSEQ_CI: true
           DEBUG: "pw:api"

+ 0 - 2
src/main/frontend/components/container.cljs

@@ -776,8 +776,6 @@
       [:div.#app-container
        [:div#left-container
         {:class (if (state/sub :ui/sidebar-open?) "overflow-hidden" "w-full")}
-
-
         (header/header {:open-fn        open-fn
                         :light?         light?
                         :current-repo   current-repo

+ 0 - 1
src/main/frontend/state.cljs

@@ -281,7 +281,6 @@
      :whiteboard/last-persisted-at          {}
      :whiteboard/pending-tx-data            {}
      :history/page-only-mode?               false
-
      ;; db tx-id -> editor cursor
      :history/tx->editor-cursor             {}})))