Testf from IP to localhost. Fixed some tests.
This commit is contained in:
@@ -6,7 +6,7 @@ import { test, expect } from '@playwright/test';
|
||||
test.describe('I. Core & Authentication', () => {
|
||||
test('A. Login - Invalid Credentials', async ({ page }) => {
|
||||
// 1. Navigate to the login page.
|
||||
await page.goto('http://192.168.50.234:3000/');
|
||||
await page.goto('http://localhost:3000/');
|
||||
|
||||
// 2. Enter an invalid email or password.
|
||||
await page.getByRole('textbox', { name: 'user@gymflow.ai' }).fill('invalid@gymflow.ai');
|
||||
@@ -19,6 +19,6 @@ test.describe('I. Core & Authentication', () => {
|
||||
// - An error message 'Invalid credentials' or similar is displayed.
|
||||
await expect(page.locator('text=Invalid credentials')).toBeVisible();
|
||||
// - User remains on the login page.
|
||||
await expect(page).toHaveURL('http://192.168.50.234:3000/#/login');
|
||||
await expect(page).toHaveURL('http://localhost:3000/');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user