Conversation
WalkthroughThis change updates E2E test infrastructure for portal signup access validation. Two new 🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (2)
e2e/helpers/pages/portal/sign-up-page.ts (1)
9-10: Expose the new locators aspublic readonlyto match page-object convention.Line 9 and Line 10 should use explicit
public readonlyper the page-object rule.Suggested update
- readonly inviteOnlyNotification: Locator; - readonly freeTrialNotification: Locator; + public readonly inviteOnlyNotification: Locator; + public readonly freeTrialNotification: Locator;As per coding guidelines, "Page Objects should be located in
helpers/pages/and expose locators aspublic readonly".🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@e2e/helpers/pages/portal/sign-up-page.ts` around lines 9 - 10, The two locator fields inviteOnlyNotification and freeTrialNotification are declared as readonly but need to follow the page-object convention of using explicit public visibility; update their declarations to public readonly inviteOnlyNotification: Locator and public readonly freeTrialNotification: Locator in the sign-up page class so they are explicitly exposed as public page-object locators.e2e/tests/public/portal-loading.test.ts (1)
47-47: Rename the new suite to follow the E2E suite naming convention.Line 47 introduces a suite name that doesn’t match the required
Ghost Public - Featurepattern.Suggested update
- test.describe('signup access', () => { + test.describe('Ghost Public - Signup access', () => {As per coding guidelines, "Test suites should be named 'Ghost Admin - Feature' or 'Ghost Public - Feature'".
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@e2e/tests/public/portal-loading.test.ts` at line 47, The test suite declared with test.describe('signup access', ...) should be renamed to follow the E2E naming convention; update the suite name used in the test.describe call to the required pattern (for example, "Ghost Public - Signup access" or "Ghost Public - Feature") so it matches the "Ghost Public - Feature" format across e2e/tests/public/portal-loading.test.ts.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@e2e/helpers/pages/portal/sign-up-page.ts`:
- Around line 9-10: The two locator fields inviteOnlyNotification and
freeTrialNotification are declared as readonly but need to follow the
page-object convention of using explicit public visibility; update their
declarations to public readonly inviteOnlyNotification: Locator and public
readonly freeTrialNotification: Locator in the sign-up page class so they are
explicitly exposed as public page-object locators.
In `@e2e/tests/public/portal-loading.test.ts`:
- Line 47: The test suite declared with test.describe('signup access', ...)
should be renamed to follow the E2E naming convention; update the suite name
used in the test.describe call to the required pattern (for example, "Ghost
Public - Signup access" or "Ghost Public - Feature") so it matches the "Ghost
Public - Feature" format across e2e/tests/public/portal-loading.test.ts.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 22f775a0-36b2-49b5-b368-41fe1e60c314
📒 Files selected for processing (3)
e2e/helpers/pages/portal/sign-up-page.tse2e/tests/public/portal-loading.test.tsghost/core/test/e2e-browser/admin/site-settings.spec.js
no ref