UNPKG

@openmrs/esm-laboratory-app

Version:

An O3 frontend module for managing laboratory requests and queues

10 lines (8 loc) 373 B
import { type APIRequestContext, expect } from '@playwright/test'; import { type Provider } from './types'; export const getProvider = async (api: APIRequestContext): Promise<Provider> => { const providerRes = await api.get('provider?q=admin'); await expect(providerRes.ok()).toBeTruthy(); const { results } = await providerRes.json(); return await results[0]; };