Skip to content

Commit 66140d1

Browse files
KasinhouMatus Kasak
andauthored
VSB-TUO/Implementing ui-tests config (#980)
* Implementing vsb-tuo ui-tests config * Added playwright tests after deploy and import --------- Co-authored-by: Matus Kasak <matus.kasak@dataquest.sk>
1 parent 6327d73 commit 66140d1

4 files changed

Lines changed: 33 additions & 13 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,18 @@ jobs:
6969
# `/repository/server`
7070
docker compose --env-file $ENVFILE -p dspace-$INSTANCE -f docker/docker-compose.yml -f docker/docker-compose-rest.yml -f $CONFIG_PATH/docker-compose-rest.yml -f $CONFIG_PATH/docker-compose.yml up -d --no-build --remove-orphans
7171
72+
playwright-after-deploy3:
73+
needs: deploy-3
74+
if: '!inputs.IMPORT'
75+
uses: ./.github/workflows/playwright-tests.yml
76+
secrets: inherit
77+
78+
playwright-after-import3:
79+
needs: import-3
80+
if: inputs.IMPORT
81+
uses: ./.github/workflows/playwright-tests.yml
82+
secrets: inherit
83+
7284
import-3:
7385
runs-on: dspace-${{inputs.DEV_MACHINE}}-dep-1
7486
if: inputs.IMPORT

.github/workflows/playwright-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ jobs:
2323

2424
- name: Copy customer config to UI tests repository for merging
2525
run: |
26-
cp this-repository/config/config.lindat.ui.tests.json dspace-ui-tests/customer-constants/
26+
cp this-repository/config/config.vsb-tuo.ui.tests.json dspace-ui-tests/customer-constants/
2727
2828
- name: test
2929
working-directory: dspace-ui-tests/scripts
3030
env:
31-
HOME_URL: https://dev-5.pc:8443/repository/
32-
NAME: LINDAT
31+
HOME_URL: http://dev-6.pc:8563/
32+
NAME: VSB-TUO
3333
run: |
3434
./test.sh
3535

config/config.lindat.ui.tests.json

Lines changed: 0 additions & 10 deletions
This file was deleted.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"env": {
3+
"has_discojuice": false,
4+
"has_whats_new": false,
5+
"has_profile_and_logout_link": true
6+
},
7+
"locators": {
8+
"title": "VSB-TUO Repository - Home",
9+
"profile_link": "a[href=\"/profile\"]",
10+
"logout_link": "button[data-test=\"logout-button\"]",
11+
"signon_link": "button[data-test=\"login-menu\"]",
12+
"result_card": "li[data-test=\"list-object\"]"
13+
},
14+
"urls": {
15+
"oaipmh_response": "http://dev-6.pc:8563/server/oai/request?verb=ListRecords&metadataPrefix=oai_dc",
16+
"about_page": "http://dev-6.pc:8563/static/about"
17+
}
18+
}

0 commit comments

Comments
 (0)