Skip to content

Commit 25a05ba

Browse files
committed
Fixes e2e test
1 parent a73f7ab commit 25a05ba

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

internal/cli/auth/login.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,6 @@ func LoginBuilder() *cobra.Command {
424424
opts.SyncWithOAuthAccessProfile(defaultProfile),
425425
opts.InitFlow(defaultProfile),
426426
opts.LoginPreRun(cmd.Context()),
427-
validate.NoAPIKeys,
428427
validate.NoAccessToken,
429428
)
430429
},

test/e2e/config/config_test.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,15 @@ func TestConfig(t *testing.T) {
7777
if err = cmd.Start(); err != nil {
7878
t.Fatal(err)
7979
}
80+
if _, err = c.ExpectString("Select authentication type"); err != nil {
81+
t.Fatal(err)
82+
}
83+
if _, err := c.Send("\x1B[B"); err != nil {
84+
t.Fatalf("Send(Down) = %v", err)
85+
}
86+
if _, err := c.SendLine(""); err != nil {
87+
t.Fatalf("SendLine() = %v", err)
88+
}
8089

8190
if _, err = c.ExpectString("Public API Key"); err != nil {
8291
t.Fatal(err)

0 commit comments

Comments
 (0)