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

Updated UI tests for unified auth page with agent bump to vscode-v1.54.x #169

Merged
merged 2 commits into from
Dec 20, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion agent/agent.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
vscode-v1.44.0
vscode-v1.50.0
14 changes: 6 additions & 8 deletions src/Cody.VisualStudio.Tests/ChatNotLoggedStateTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ public ChatNotLoggedStateTests(ITestOutputHelper output) : base(output)
public async Task Cody_Free_Cody_Pro_Section_Is_Present()
{
// given
var sectionText = "Cody Free or Cody Pro";
var buttonText = "Sign In with GitHub";
var sectionText = "Free or Pro";
var buttonText = "Continue with GitHub";

// then
await NotInLoggedState(async () =>
Expand All @@ -41,25 +41,23 @@ await NotInLoggedState(async () =>
public async Task Cody_Enterprise_Section_Is_Present()
{
// given
var sectionText = "Cody Enterprise";
var browserButtonText = " Sign In with Browser";
var tokenButtonText = " Sign In with Access Token";
var sectionText = "Enterprise";
var browserButtonText = "Continue with a URL";

// then
await NotInLoggedState(async () =>
{
await AssertTextIsPresent(sectionText);
await AssertTextIsPresent(browserButtonText);
await AssertTextIsPresent(tokenButtonText);
});
}

[VsFact(Version = VsVersion.VS2022)]
public async Task Logins_With_GitLab_Google_Are_Present()
{
// given
var gitlabButtonText = "Sign In with GitLab";
var googleButtonText = "Sign In with Google";
var gitlabButtonText = "Continue with GitLab";
var googleButtonText = "Continue with Google";

// then
await NotInLoggedState(async () =>
Expand Down