Skip to content

Commit

Permalink
fix: #1264 disable bceid login button (#1289)
Browse files Browse the repository at this point in the history
  • Loading branch information
MCatherine1994 authored Apr 8, 2024
1 parent d748585 commit d12757f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions frontend/src/components/Landing.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import TreeLogs from '@/assets/images/tree-logs.jpg';
<Button
class="landing-button"
outlined
disabled
label="Login with BCeID"
id="login-bceid-button"
@click="AuthService.loginBceid()"
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/tests/Landing.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,15 @@ describe('Landing', () => {
await button.trigger('click');
expect(loginSpy).toHaveBeenCalled();
});
it('should render BCeID button and be enabled', async () => {
it.skip('should render BCeID button and be enabled', async () => {
const button = wrapper.get('#login-bceid-button');
expect(button.classes()).toEqual(
expect.arrayContaining(['landing-button'])
);
expect(button.html().includes('Login with BCeID')).toBe(true);
expect(button.attributes()).not.toHaveProperty('disabled');
});
it('should button Login with BCEID be clicked', async () => {
it.skip('should button Login with BCEID be clicked', async () => {
const button = wrapper.get('#login-bceid-button');
const loginSpy = vi.spyOn(AuthService, 'loginBceid');
await button.trigger('click');
Expand Down

0 comments on commit d12757f

Please sign in to comment.