Playwright: check test API

This commit is contained in:
Jose Olarte III
2024-07-26 18:16:20 +08:00
parent b742857940
commit cfb1906b5b
3 changed files with 8 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
import { test, expect } from '@playwright/test';
test('Confirm usage of test API', async ({ page }) => {
// Load app homepage
await page.goto('./account');
await page.getByRole('heading', { name: 'Advanced' }).click();
await expect(page.getByRole('textbox').nth(1)).toHaveValue('https://test-api.endorser.ch');
});