Skip to content

Commit

Permalink
Updated UI tests for unified auth page with agent bump to vscode-v1.5…
Browse files Browse the repository at this point in the history
…4.x (#169)

Agent bump to vscode-v1.54.x
Updated UI tests for unified auth page 

CLOSE https://linear.app/sourcegraph/issue/CODY-4438/update-unit-test-for-unified-auth-page
  • Loading branch information
PiotrKarczmarz authored Dec 20, 2024
1 parent 6c4d3ca commit 14e4b37
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
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.54.x
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

0 comments on commit 14e4b37

Please sign in to comment.