Skip to content

Commit d0e2f46

Browse files
committed
updated tests
1 parent 3352bf8 commit d0e2f46

File tree

3 files changed

+47
-5
lines changed

3 files changed

+47
-5
lines changed

packages/altair-api/.env.e2e

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ EVENTS_JWT_ACCESS_SECRET=events-jwt-access-secret
33
JWT_REFRESH_SECRET=jwt-refresh-secret
44
GOOGLE_OAUTH_CLIENT_ID=test.apps.googleusercontent.com
55
GOOGLE_OAUTH_CLIENT_SECRET=GS-53CR37
6+
GITHUB_OAUTH_CLIENT_ID=test-github-client-id
7+
GITHUB_OAUTH_CLIENT_SECRET=test-github
68
POSTGRES_DB=tests
79
POSTGRES_USER=prisma
810
POSTGRES_PASSWORD=prisma

packages/altair-app/src/app/modules/altair/components/account-dialog/__snapshots__/account-dialog.component.spec.ts.snap

Lines changed: 44 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,51 @@ exports[`AccountDialogComponent should create 1`] = `
7373
</app-icon>
7474
</a>
7575
</p>
76-
<button
77-
class="btn btn--primary"
76+
<div
77+
class="account-dialog__signin-actions"
7878
>
79-
SIGNIN_WITH_GOOGLE
80-
</button>
79+
<button
80+
class="btn btn--bordered"
81+
>
82+
SIGNIN_WITH_GOOGLE
83+
</button>
84+
<button
85+
class="btn btn--bordered"
86+
>
87+
<app-icon
88+
name="github"
89+
>
90+
91+
<i-lucide
92+
class="app-icon"
93+
>
94+
<svg
95+
class="lucide lucide-github app-icon"
96+
fill="none"
97+
height="24"
98+
stroke="currentColor"
99+
stroke-linecap="round"
100+
stroke-linejoin="round"
101+
stroke-width="2"
102+
viewBox="0 0 24 24"
103+
width="24"
104+
xmlns="http://www.w3.org/2000/svg"
105+
>
106+
<path
107+
d="M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"
108+
key="tonef"
109+
/>
110+
<path
111+
d="M9 18c-4.51 2-5-2-7-2"
112+
key="9comsn"
113+
/>
114+
</svg>
115+
</i-lucide>
116+
117+
</app-icon>
118+
SIGNIN_WITH_GITHUB
119+
</button>
120+
</div>
81121
</div>
82122
</div>
83123

packages/altair-app/src/app/modules/altair/components/account-dialog/account-dialog.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ describe('AccountDialogComponent', () => {
3030
});
3131

3232
it('should emit "handleLoginChange" when login is clicked', () => {
33-
const login = wrapper.find('.btn--primary');
33+
const login = wrapper.find('.btn');
3434

3535
login.emit('click');
3636

0 commit comments

Comments
 (0)