From 16802de1c40b8826aa8a371fc0efa3f91410ae18 Mon Sep 17 00:00:00 2001 From: gilbysunil14 Date: Mon, 23 Dec 2024 17:19:15 +0530 Subject: [PATCH] if always condition --- .github/workflows/run-regression-tests.yml | 4 ++-- src/test/GradleSingleModJakartaLSTest.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/run-regression-tests.yml b/.github/workflows/run-regression-tests.yml index 8adf874f..114bf608 100755 --- a/.github/workflows/run-regression-tests.yml +++ b/.github/workflows/run-regression-tests.yml @@ -58,10 +58,10 @@ jobs: # Archive screenshots - name: Archive screenshots - if: runner.os == 'linux' && matrix.targetVSCode == 'latest' + if: always() && runner.os == 'linux' && matrix.targetVSCode == 'latest' uses: actions/upload-artifact@v3 with: name: liberty-run-tests-screenshots-${{ github.sha }} - path: ./**/*.png + path: ./screenshots/*.png if-no-files-found: warn retention-days: 7 diff --git a/src/test/GradleSingleModJakartaLSTest.ts b/src/test/GradleSingleModJakartaLSTest.ts index e0f5e6e8..14b24b89 100644 --- a/src/test/GradleSingleModJakartaLSTest.ts +++ b/src/test/GradleSingleModJakartaLSTest.ts @@ -18,7 +18,7 @@ describe('LSP4Jakarta LS test for snippet test', () => { await editor.clearText(); } - await utils.delay(9000); + await utils.delay(65000); await editor.typeText("rest"); await utils.delay(6000); @@ -48,7 +48,7 @@ describe('LSP4Jakarta LS test for snippet test', () => { after(() => { const sourcePath = VSBrowser.instance.getScreenshotsDir(); - const destinationPath = './images'; + const destinationPath = './screenshots'; copyFolderContents(sourcePath, destinationPath); });