Skip to content

Commit 1fc4134

Browse files
KasinhouMatus Kasak
andauthored
UK/Removed duplicity for playwright tests (#908)
Co-authored-by: Matus Kasak <matus.kasak@dataquest.sk>
1 parent 66a4048 commit 1fc4134

3 files changed

Lines changed: 47 additions & 33 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -60,39 +60,9 @@ jobs:
6060
./start.sh dspace-$INSTANCE
6161
6262
playwright-after-deploy2:
63-
runs-on: dspace-test-1
6463
needs: deploy-2
65-
timeout-minutes: 45
6664
if: '!inputs.IMPORT'
67-
steps:
68-
- name: Checkout Playwright tests
69-
uses: actions/checkout@v4
70-
with:
71-
repository: dataquest-dev/dspace-ui-tests
72-
path: dspace-ui-tests
73-
token: ${{ secrets.DEPLOY_DEV5_GH_ACTION_DISPATCH }}
74-
75-
- name: Checkout main repository
76-
uses: actions/checkout@v4
77-
with:
78-
path: this-repository
79-
80-
- name: Copy customer config to UI tests repository for merging
81-
run: |
82-
cp this-repository/config/config.uk.ui.tests.json dspace-ui-tests/customer-constants/
83-
84-
- name: test
85-
working-directory: dspace-ui-tests/scripts
86-
env:
87-
HOME_URL: http://dev-5.pc:82/
88-
NAME: UK
89-
run: |
90-
./test.sh
91-
92-
- uses: mazoea/ga-maz/end@master
93-
with:
94-
CHOWN_DIR: ./
95-
if: ${{ always() }}
65+
uses: ./.github/workflows/playwright-tests.yml
9666

9767
rest-tests-after-deploy2:
9868
runs-on: ubuntu-latest
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Playwright tests
2+
3+
on:
4+
workflow_dispatch:
5+
workflow_call:
6+
7+
jobs:
8+
playwright-tests:
9+
runs-on: dspace-test-1
10+
timeout-minutes: 45
11+
steps:
12+
- name: Checkout Playwright tests
13+
uses: actions/checkout@v4
14+
with:
15+
repository: dataquest-dev/dspace-ui-tests
16+
path: dspace-ui-tests
17+
token: ${{ secrets.DEPLOY_DEV5_GH_ACTION_DISPATCH }}
18+
19+
- name: Checkout main repository
20+
uses: actions/checkout@v4
21+
with:
22+
path: this-repository
23+
24+
- name: Copy customer config to UI tests repository for merging
25+
run: |
26+
cp this-repository/config/config.uk.ui.tests.json dspace-ui-tests/customer-constants/
27+
28+
- name: test
29+
working-directory: dspace-ui-tests/scripts
30+
env:
31+
HOME_URL: http://dev-5.pc:82/
32+
NAME: UK
33+
run: |
34+
./test.sh
35+
36+
- uses: mazoea/ga-maz/end@master
37+
with:
38+
CHOWN_DIR: ./
39+
if: ${{ always() }}

config/config.uk.ui.tests.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,13 @@
33
"has_discojuice": true,
44
"has_whats_new": true,
55
"has_profile_and_logout_link": false,
6-
"can_create_item_test": "disabled",
7-
"author_has_one_field": true
6+
"has_contact_person": false,
7+
"has_resource_select": false,
8+
"has_resource_type": true,
9+
"has_license_select": true,
10+
"has_size_input": true,
11+
"has_size_dropdown": false,
12+
"has_identifier_input": true
813
},
914
"locators": {
1015
"title": "LINDAT/CLARIAH-CZ Repository Home",

0 commit comments

Comments
 (0)