automate common testing for pilots #1
|
@ -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();
|
||||
|
|
Reference in New Issue