Skip to content

Commit

Permalink
fix: changes done
Browse files Browse the repository at this point in the history
  • Loading branch information
devansh-webkul committed Feb 3, 2025
1 parent b23921d commit dc5957d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion tests/utils/admin/loginHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ const logIn = async (page) => {
await page.fill('input[name="email"]', config.adminEmail);
await page.fill('input[name="password"]', config.adminPassword);
await page.press('input[name="password"]', 'Enter');
await forms.testForm(page);

return await forms.testForm(page)
? true
: false;
}

export default logIn;
2 changes: 1 addition & 1 deletion tests/utils/setup.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { test as base, expect } from '@playwright/test';

const config = {
baseUrl: process.env.APP_URL || 'http://localhost:8000',
baseUrl: process.env.APP_URL || 'http://172.16.0.2/bagisto-2.x/public',

adminEmail: process.env.ADMIN_EMAIL || '[email protected]',

Expand Down

0 comments on commit dc5957d

Please sign in to comment.