From a586ccf7b946e8893a30e027da5737ad6f8ffd0e Mon Sep 17 00:00:00 2001 From: pedro Date: Fri, 15 Mar 2024 11:15:26 +0100 Subject: [PATCH] use IDHUB_{WALLET,VERIFIER} env vars --- tests/pilot-tests.spec.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/pilot-tests.spec.ts b/tests/pilot-tests.spec.ts index 4ecd546..a2db54a 100644 --- a/tests/pilot-tests.spec.ts +++ b/tests/pilot-tests.spec.ts @@ -1,3 +1,5 @@ +import { IDHUB_WALLET, IDHUB_VERIFIER } from '../src/constants/env_constants'; + import { test, expect } from '@playwright/test'; // TODO import domain WALLET y VERIFIER // TODO env var @@ -22,7 +24,7 @@ async function accept_data_protection(page) { test('test', async ({ page }) => { // TODO hardcoded domain WALLET - await page.goto('http://localhost/login/'); + await page.goto(IDHUB_WALLET + '/login/'); await page.getByPlaceholder('Email address').click(); await page.getByPlaceholder('Email address').fill('idhub_admin@pangea.org'); await page.getByPlaceholder('Password').fill('1234'); @@ -65,7 +67,7 @@ test('test', async ({ page }) => { await page.getByRole('link', { name: 'Request a credential' }).click(); await page.getByRole('button', { name: 'Request' }).click(); // TODO hardcoded domain VERIFIER - await page.goto('http://idhub2/promotion/'); + await page.goto(IDHUB_VERIFIER + '/promotion/'); await page.getByRole('link', { name: 'Contractar amb credencial' }).click(); await page.getByRole('button', { name: 'Go' }).click(); await page.getByRole('radio').first().check();