From 01d1b3dce1610a8e65ee458ae9ad16bea0aa12bb Mon Sep 17 00:00:00 2001 From: DaviMarinho Date: Sat, 9 Dec 2023 10:59:30 -0300 Subject: [PATCH] Corrige teste Signed-off-by: DaviMarinho --- src/app/pages/login/login.component.html | 2 +- src/app/pages/login/login.component.spec.ts | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/app/pages/login/login.component.html b/src/app/pages/login/login.component.html index 49303025..095d7c02 100644 --- a/src/app/pages/login/login.component.html +++ b/src/app/pages/login/login.component.html @@ -19,7 +19,7 @@
Cadastre-se
-
+
Login com redes sociais
diff --git a/src/app/pages/login/login.component.spec.ts b/src/app/pages/login/login.component.spec.ts index ed2ba4a6..aaa6ee93 100644 --- a/src/app/pages/login/login.component.spec.ts +++ b/src/app/pages/login/login.component.spec.ts @@ -142,15 +142,12 @@ describe('LoginComponent', () => { it('should call navigator method when "Login com redes sociais" is clicked', () => { const navigatorSpy = spyOn(component, 'navigator').and.callThrough(); - fixture.detectChanges(); - const loginSocial = fixture.nativeElement.querySelector('.text-blue-brand'); + const loginSocial = fixture.nativeElement.querySelector('#loginSocialButton'); loginSocial.click(); - tick(); expect(navigatorSpy).toHaveBeenCalledWith('/loginsocial'); }); - it('should call login and return an error', () => { fixture.detectChanges(); const form = component.userForm;