@imwz/wp-pattern-sentinel 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/login.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@imwz/wp-pattern-sentinel",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "Browser-based WordPress block pattern validator using Playwright",
5
5
  "type": "module",
6
6
  "engines": {
package/src/login.js CHANGED
@@ -9,7 +9,7 @@ export async function loginToWordPress(page, adminUrl, user, pass) {
9
9
  await page.fill('#user_login', user);
10
10
  await page.fill('#user_pass', pass);
11
11
  await page.click('#wp-submit');
12
- await page.waitForURL(`${adminUrl}/wp-admin/**`, { timeout: 15000 });
12
+ await page.waitForURL(/\/wp-admin\//, { timeout: 30000, waitUntil: 'domcontentloaded' });
13
13
  return true;
14
14
  } catch (error) {
15
15
  log(`Login failed: ${error.message}`, 'red');