File tree Expand file tree Collapse file tree
playwright-pom-agent-skills-quality-tooling
playwright-pom-agent-skills-ui-pom/references Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ Maintain the framework infrastructure that supports test execution quality and d
2727
2828## Follow These Rules
2929
30- - Keep ` config/test-config.json ` as the single config source.
30+ - Keep ` config/test-config.json ` as the single config source for base URLs, role credentials, and shared waits .
3131- Keep framework timeout derivation in ` utils/common/Waits.ts ` .
3232- Keep scoped logging via ` logger.withScope(...) ` .
3333- Keep the custom reporter at ` utils/common/CustomReporter.ts ` .
@@ -42,6 +42,7 @@ Maintain the framework infrastructure that supports test execution quality and d
42423 . Reuse an existing script or helper before adding a new one.
43434 . Keep claims in docs limited to what the framework actually implements.
4444
45+
4546## Preferred Change Order
4647
47481 . Change configuration or shared helper logic first.
Original file line number Diff line number Diff line change 4747
4848``` ts
4949// ui/specs/login.spec.ts
50- await page .getByTestId (" username-input " ).fill (" admin" );
51- await page .getByTestId (" password-input " ).fill (" wrong-password" );
52- await page .getByRole ( " button " , { name: " Sign in " } ).click ();
50+ await page .getByTestId (" login-username " ).fill (" admin" );
51+ await page .getByTestId (" login-password " ).fill (" wrong-password" );
52+ await page .getByTestId ( " login-submit " ).click ();
5353await expect (page .getByTestId (" login-error" )).toBeVisible ();
5454```
5555
@@ -109,9 +109,9 @@ Before:
109109``` ts
110110// generated-style test
111111await page .goto (" /login" );
112- await page .getByTestId (" username-input " ).fill (" admin" );
113- await page .getByTestId (" password-input " ).fill (" adminpass " );
114- await page .getByRole ( " button " , { name: " Sign in " } ).click ();
112+ await page .getByTestId (" login-username " ).fill (" admin" );
113+ await page .getByTestId (" login-password " ).fill (" admin123 " );
114+ await page .getByTestId ( " login-submit " ).click ();
115115await expect (page .getByTestId (" home-title" )).toBeVisible ();
116116```
117117
170170- ` ui/pages/LoginPage.ts `
171171- ` ui/pages/HomePage.ts `
172172- ` ui/pages/FoldersPage.ts `
173+
You can’t perform that action at this time.
0 commit comments