Skip to content

Commit ddd1633

Browse files
authored
Upgrade extension tester to 5.x and clean up ui tests (#2545)
* Reenable create component UI tests using remote OCP cluster Signed-off-by: Ondrej Dockal <odockal@redhat.com> * Upgrade vscode-extension-tester to 5.0.0 Signed-off-by: Ondrej Dockal <odockal@redhat.com> modified: .vscode/launch.json * Delete smoke suite test cases - duplicates Signed-off-by: Ondrej Dockal <odockal@redhat.com> Signed-off-by: Ondrej Dockal <odockal@redhat.com>
1 parent 24feb72 commit ddd1633

File tree

17 files changed

+263
-626
lines changed

17 files changed

+263
-626
lines changed

.github/workflows/continuous-integration-workflow.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -53,20 +53,20 @@ jobs:
5353

5454
# UI tests fail under linux
5555
# Run UI tests
56-
#- name: Run UI Tests
57-
# uses: GabrielBB/xvfb-action@v1.6
58-
# if: runner.os == 'Linux'
59-
# with:
60-
# run: npm run public-ui-test
61-
# options: -screen 0 1920x1080x24
56+
- name: Run UI Tests
57+
uses: GabrielBB/xvfb-action@v1.6
58+
if: runner.os == 'Linux'
59+
with:
60+
run: npm run public-ui-test
61+
options: -screen 0 1920x1080x24
6262

6363
# Archiving integration tests artifacts
64-
#- name: Upload test artifacts
65-
# uses: actions/upload-artifact@v2
66-
# if: failure() && runner.os == 'Linux'
67-
# with:
68-
# name: artifacts-${{ matrix.os }}
69-
# path: |
70-
# test-resources/screenshots/*.png
71-
# retention-days: 2
64+
- name: Upload test artifacts
65+
uses: actions/upload-artifact@v2
66+
if: failure() && runner.os == 'Linux'
67+
with:
68+
name: artifacts-${{ matrix.os }}
69+
path: |
70+
test-resources/screenshots/*.png
71+
retention-days: 2
7272

.vscode/launch.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,23 @@
7575
"VSCODE_REDHAT_TELEMETRY_DEBUG":"true"
7676
}
7777
},
78+
{
79+
"name": "Debug UI Tests",
80+
"type": "node",
81+
"request": "launch",
82+
"program": "${workspaceFolder}/node_modules/.bin/extest",
83+
"args": [
84+
"setup-and-run",
85+
"${workspaceFolder}/out/test/ui/public-ui-test.js",
86+
"-o",
87+
"${workspaceFolder}/test/ui/settings.json",
88+
"-m",
89+
"--mocha_config",
90+
"${workspaceFolder}/test/ui/.mocharc.js"
91+
],
92+
"console": "integratedTerminal",
93+
"internalConsoleOptions": "neverOpen"
94+
},
7895
{
7996
"type": "pwa-chrome",
8097
"request": "launch",

0 commit comments

Comments
 (0)