⚠️ This is test/experimental code for API integration testing. Do not use in production. Includes: - WellNuo API integration (dashboard, patient context) - Playwright tests for API verification - WebView component for dashboard embedding - API documentation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
19 lines
712 B
JavaScript
19 lines
712 B
JavaScript
const { test } = require('@playwright/test');
|
|
|
|
test('check repo content', async ({ page }) => {
|
|
// Login first
|
|
await page.goto('https://gitea.wellnua.com/user/login');
|
|
await page.locator('input#user_name').fill('sergei_t');
|
|
await page.locator('input#password').fill('WellNuo2025!Secure');
|
|
await page.locator('button:has-text("Sign In")').click();
|
|
await page.waitForTimeout(2000);
|
|
|
|
// Go to repo
|
|
await page.goto('https://gitea.wellnua.com/robert/MobileApp_react_native');
|
|
await page.waitForLoadState('networkidle');
|
|
await page.screenshot({ path: 'tests/screenshots/repo-content.png', fullPage: true });
|
|
|
|
console.log('Page title:', await page.title());
|
|
console.log('URL:', page.url());
|
|
});
|