Skip to content

Commit 14e4b37

Browse files
Updated UI tests for unified auth page with agent bump to vscode-v1.54.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
1 parent 6c4d3ca commit 14e4b37

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

agent/agent.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
vscode-v1.44.0
1+
vscode-v1.54.x

src/Cody.VisualStudio.Tests/ChatNotLoggedStateTests.cs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ public ChatNotLoggedStateTests(ITestOutputHelper output) : base(output)
2525
public async Task Cody_Free_Cody_Pro_Section_Is_Present()
2626
{
2727
// given
28-
var sectionText = "Cody Free or Cody Pro";
29-
var buttonText = "Sign In with GitHub";
28+
var sectionText = "Free or Pro";
29+
var buttonText = "Continue with GitHub";
3030

3131
// then
3232
await NotInLoggedState(async () =>
@@ -41,25 +41,23 @@ await NotInLoggedState(async () =>
4141
public async Task Cody_Enterprise_Section_Is_Present()
4242
{
4343
// given
44-
var sectionText = "Cody Enterprise";
45-
var browserButtonText = " Sign In with Browser";
46-
var tokenButtonText = " Sign In with Access Token";
44+
var sectionText = "Enterprise";
45+
var browserButtonText = "Continue with a URL";
4746

4847
// then
4948
await NotInLoggedState(async () =>
5049
{
5150
await AssertTextIsPresent(sectionText);
5251
await AssertTextIsPresent(browserButtonText);
53-
await AssertTextIsPresent(tokenButtonText);
5452
});
5553
}
5654

5755
[VsFact(Version = VsVersion.VS2022)]
5856
public async Task Logins_With_GitLab_Google_Are_Present()
5957
{
6058
// given
61-
var gitlabButtonText = "Sign In with GitLab";
62-
var googleButtonText = "Sign In with Google";
59+
var gitlabButtonText = "Continue with GitLab";
60+
var googleButtonText = "Continue with Google";
6361

6462
// then
6563
await NotInLoggedState(async () =>

0 commit comments

Comments
 (0)