use IDHUB_{WALLET,VERIFIER} env vars

This commit is contained in:
pedro 2024-03-15 11:15:26 +01:00
parent caa2f42e2c
commit a586ccf7b9
1 changed files with 4 additions and 2 deletions

View File

@ -1,3 +1,5 @@
import { IDHUB_WALLET, IDHUB_VERIFIER } from '../src/constants/env_constants';
import { test, expect } from '@playwright/test'; import { test, expect } from '@playwright/test';
// TODO import domain WALLET y VERIFIER // TODO import domain WALLET y VERIFIER
// TODO env var // TODO env var
@ -22,7 +24,7 @@ async function accept_data_protection(page) {
test('test', async ({ page }) => { test('test', async ({ page }) => {
// TODO hardcoded domain WALLET // 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').click();
await page.getByPlaceholder('Email address').fill('idhub_admin@pangea.org'); await page.getByPlaceholder('Email address').fill('idhub_admin@pangea.org');
await page.getByPlaceholder('Password').fill('1234'); 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('link', { name: 'Request a credential' }).click();
await page.getByRole('button', { name: 'Request' }).click(); await page.getByRole('button', { name: 'Request' }).click();
// TODO hardcoded domain VERIFIER // 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('link', { name: 'Contractar amb credencial' }).click();
await page.getByRole('button', { name: 'Go' }).click(); await page.getByRole('button', { name: 'Go' }).click();
await page.getByRole('radio').first().check(); await page.getByRole('radio').first().check();