From 11a3e981a69a77e3014c79ca22856bcdb14c9de6 Mon Sep 17 00:00:00 2001 From: Jose Olarte III Date: Fri, 26 Jul 2024 18:16:20 +0800 Subject: [PATCH] Playwright: check test API --- test-playwright/00-confirm-test-api.spec.ts | 8 ++++++++ ...tivity-feed.spec.ts => 01-check-activity-feed.spec.ts} | 0 ...-results.spec.ts => 02-check-discover-results.spec.ts} | 0 3 files changed, 8 insertions(+) create mode 100644 test-playwright/00-confirm-test-api.spec.ts rename test-playwright/{00-check-activity-feed.spec.ts => 01-check-activity-feed.spec.ts} (100%) rename test-playwright/{01-check-discover-results.spec.ts => 02-check-discover-results.spec.ts} (100%) diff --git a/test-playwright/00-confirm-test-api.spec.ts b/test-playwright/00-confirm-test-api.spec.ts new file mode 100644 index 0000000..57fb14f --- /dev/null +++ b/test-playwright/00-confirm-test-api.spec.ts @@ -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'); +}); \ No newline at end of file diff --git a/test-playwright/00-check-activity-feed.spec.ts b/test-playwright/01-check-activity-feed.spec.ts similarity index 100% rename from test-playwright/00-check-activity-feed.spec.ts rename to test-playwright/01-check-activity-feed.spec.ts diff --git a/test-playwright/01-check-discover-results.spec.ts b/test-playwright/02-check-discover-results.spec.ts similarity index 100% rename from test-playwright/01-check-discover-results.spec.ts rename to test-playwright/02-check-discover-results.spec.ts