UNPKG

@pih/esm-dispensing-app

Version:
10 lines (8 loc) 367 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'); expect(providerRes.ok()).toBeTruthy(); const { results } = await providerRes.json(); return await results[0]; };