Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

e2e-test: update session tests #6567

Merged
merged 2 commits into from
Mar 3, 2025
Merged

e2e-test: update session tests #6567

merged 2 commits into from
Mar 3, 2025

Conversation

midleman
Copy link
Contributor

@midleman midleman commented Mar 1, 2025

Summary

Sessions tests broke when the power button was removed. Updated tests to be able to handle this.

QA Notes

@:sessions

Copy link

github-actions bot commented Mar 1, 2025

E2E Tests 🚀
This PR will run tests tagged with: @:critical @:sessions

readme  valid tags

@midleman midleman requested a review from Copilot March 1, 2025 13:06
@midleman midleman marked this pull request as ready for review March 1, 2025 13:06

Choose a reason for hiding this comment

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

PR Overview

This PR updates session tests to accommodate the removal of the power button by streamlining session management and test logic. Key changes include the addition of a deleteDisconnectedSessions function, a refactor of reuseSessionIfExists to simplify session reuse behavior, and updates in the tests to use these new methods.

Reviewed Changes

File Description
test/e2e/pages/sessions.ts Added deleteDisconnectedSessions and refactored reuseSessionIfExists; improved getMetadata step message.
test/e2e/tests/sessions/sessions.test.ts Removed skip directive and updated tests to leverage the new session management methods.

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (1)

test/e2e/pages/sessions.ts:242

  • The updated reuseSessionIfExists method no longer explicitly handles the 'disconnected' status (previously triggering a different flow), which may change the intended behavior for disconnected sessions. Please verify that falling back to a full launch for all non-idle sessions is correct.
async reuseSessionIfExists(session: SessionInfo): Promise<string> {
Copy link
Contributor

@testlabauto testlabauto left a comment

Choose a reason for hiding this comment

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

LGTM!

@midleman midleman merged commit 1856215 into main Mar 3, 2025
9 checks passed
@midleman midleman deleted the mi/fix-session-tests branch March 3, 2025 15:34
@github-actions github-actions bot locked and limited conversation to collaborators Mar 3, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants