Skip to content

test(app): session actions#11386

Merged
adamdotdevin merged 12 commits intoanomalyco:devfrom
neriousy:test(app)/session-actions
Jan 31, 2026
Merged

test(app): session actions#11386
adamdotdevin merged 12 commits intoanomalyco:devfrom
neriousy:test(app)/session-actions

Conversation

@neriousy
Copy link
Contributor

@neriousy neriousy commented Jan 31, 2026

What does this PR do?

more tests for app

  • rename session
  • archive session
  • delete sesssion
  • share session
  • unshare session

more refactoring helper functions

If you paste a large clearly AI generated description here your PR may be IGNORED or CLOSED!

How did you verify your code works?

run tests or look at pipeline result

opencode and others added 4 commits January 30, 2026 06:48
…ng sent back as assistant message content (anomalyco#11270)

Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
@github-actions
Copy link
Contributor

Hey! Your PR title test(app)/session actions doesn't follow conventional commit format.

Please update it to start with one of:

  • feat: or feat(scope): new feature
  • fix: or fix(scope): bug fix
  • docs: or docs(scope): documentation changes
  • chore: or chore(scope): maintenance tasks
  • refactor: or refactor(scope): code refactoring
  • test: or test(scope): adding or updating tests

Where scope is the package name (e.g., app, desktop, opencode).

See CONTRIBUTING.md for details.

@github-actions
Copy link
Contributor

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

neriousy and others added 2 commits January 31, 2026 01:37
…lities

Add new e2e tests for session actions:
- Rename, archive, delete sessions via sidebar menu
- Share, unshare, copy link via header button

Add reusable utility functions to actions.ts:
- withSession: lifecycle wrapper for session creation/cleanup
- openSessionMoreMenu: hover and click session more options
- clickMenuItem: click any menu item by text/regex
- confirmDialog: click confirm button in dialog
- openSharePopover: open share popover in header
- clickPopoverButton: click button in popover
- clickListItem: click list item with key or text filter

Add new selectors to selectors.ts:
- titlebarRightSelector, popoverBodySelector
- dropdownMenuTriggerSelector, dropdownMenuContentSelector
- inlineInputSelector, sessionItemSelector
- listItemSelector, listItemKeySelector, listItemKeyStartsWithSelector

Refactor existing tests to use new utilities:
- session.spec.ts, context.spec.ts, prompt.spec.ts
- titlebar-history.spec.ts, sidebar-session-links.spec.ts
- file-open.spec.ts, file-viewer.spec.ts
- model-picker.spec.ts, models-visibility.spec.ts
- settings-providers.spec.ts, server-default.spec.ts
@neriousy neriousy force-pushed the test(app)/session-actions branch from 6d853cf to 71d59bf Compare January 31, 2026 00:40
- Add force click to project edit menu item to prevent detachment issues
- Add wait timeouts and popover reopening to session share test
  to handle async share/unshare operations
@neriousy neriousy changed the title test(app)/session actions test(app): session actions Jan 31, 2026
@github-actions
Copy link
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

- Make openSharePopover target the share popover body and avoid toggling
- In share/unshare e2e, wait for Copy link button before asserting Unpublish
- In projects-close header menu test, click Close via dropdown menu content
opencode-agent bot added a commit that referenced this pull request Jan 31, 2026
opencode-agent bot added a commit that referenced this pull request Jan 31, 2026
opencode-agent bot added a commit that referenced this pull request Jan 31, 2026
opencode-agent bot added a commit that referenced this pull request Jan 31, 2026
opencode-agent bot added a commit that referenced this pull request Jan 31, 2026
{
"$schema": "https://turborepo.com/schema.json",
"globalEnv": ["CI", "OPENCODE_DISABLE_SHARE"],
"globalPassThroughEnv": ["CI", "OPENCODE_DISABLE_SHARE"],
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Passing through these env's cause Linux didn't see them. CI was probably set to true either way, but just a precaution.

opencode-agent bot added a commit that referenced this pull request Jan 31, 2026
opencode-agent bot added a commit that referenced this pull request Jan 31, 2026
opencode-agent bot added a commit that referenced this pull request Jan 31, 2026
opencode-agent bot added a commit that referenced this pull request Jan 31, 2026
opencode-agent bot added a commit that referenced this pull request Jan 31, 2026
opencode-agent bot added a commit that referenced this pull request Jan 31, 2026
opencode-agent bot added a commit that referenced this pull request Jan 31, 2026
opencode-agent bot added a commit that referenced this pull request Jan 31, 2026
opencode-agent bot added a commit that referenced this pull request Jan 31, 2026
opencode-agent bot added a commit that referenced this pull request Jan 31, 2026
opencode-agent bot added a commit that referenced this pull request Jan 31, 2026
opencode-agent bot added a commit that referenced this pull request Jan 31, 2026
@adamdotdevin adamdotdevin merged commit 511c7ab into anomalyco:dev Jan 31, 2026
6 of 7 checks passed
alexyaroshuk pushed a commit to alexyaroshuk/opencode that referenced this pull request Feb 1, 2026
ishaksebsib pushed a commit to ishaksebsib/opencode that referenced this pull request Feb 4, 2026
ishaksebsib pushed a commit to ishaksebsib/opencode that referenced this pull request Feb 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants