Skip to content

Expand Playwright operator workflow coverage#2367

Open
niemyjski wants to merge 3 commits into
mainfrom
feature/operator-playwright-coverage
Open

Expand Playwright operator workflow coverage#2367
niemyjski wants to merge 3 commits into
mainfrom
feature/operator-playwright-coverage

Conversation

@niemyjski

Copy link
Copy Markdown
Member

Summary

  • add UI-driven coverage for failed/successful login and session restoration
  • exercise event and stack discovery through rendered tables, detail sheets, and navigation
  • verify project scoping and clearing across two seeded projects
  • prove stack fixed state remains visible after reload instead of asserting through the API
  • document the Playwright boundary and maintenance rules

Verification

  • npm run check
  • npx eslint e2e
  • npm run lint:prettier -- --check e2e
  • npm run test:e2e:local -- --workers=1 (9 passed)

Breaking changes

None.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e2b54f85af

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".


await test.step('open event details from the Events table', async () => {
await page.goto('/next/stack');
await page.getByRole('link', { exact: true, name: 'Events' }).filter({ visible: true }).first().click();

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Handle Events sidebar when saved views are loaded

For an organization after the saved-views query completes, the dashboard parent no longer renders as a link: the sidebar renders routes with children as a collapsible button, and predefined saved views add children under Events. In that state this locator never matches and the new spec can time out before reaching the direct goto, making the test race-prone on fast or warm runs; click the parent button plus a child view such as All, or navigate directly.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in fbf0d20. The test now uses a shared sidebar helper that supports both direct-link parents and collapsible parents with saved-view children. Verified with the focused operator-navigation Playwright test (1 passed).

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0690476f5f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

});

await test.step('redirect a signed-out user away from a protected route', async () => {
await page.goto('/next/stack');

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Avoid reseeding auth before protected-route assertions

This spec uses e2eScenario, whose fixture installs a page.addInitScript that writes satellizer_token on every full navigation. After the logout step clears storage, this page.goto('/next/stack') runs that init script again, so the app is re-authenticated before the protected route loads and the redirect-to-login assertion can fail or stop testing a signed-out user. Use a setup path that does not inject the token for this spec, or clear storage after this navigation with a fresh unauthenticated context.

Useful? React with 👍 / 👎.

@github-actions

Copy link
Copy Markdown

Code Coverage

Package Line Rate Branch Rate Complexity Health
Exceptionless.AppHost 39% 41% 136
Exceptionless.Core 72% 64% 8854
Exceptionless.Insulation 24% 23% 205
Exceptionless.Web 79% 67% 5264
Summary 73% (17444 / 24029) 64% (8949 / 13914) 14459

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant