forked from fga-eps-mds/2023.2-UnB-TV-Frontend
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request fga-eps-mds#16 from fga-eps-mds/ajustesPosR2
Alterações sugeridas pós entrega da R2
- Loading branch information
Showing
14 changed files
with
625 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,4 +65,4 @@ <h1>Dados - Categorias</h1> | |
</table> | ||
</div> | ||
</main> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,7 +62,7 @@ <h1>Sugestão de Pautas</h1> | |
class="input first button" | ||
name="email-contato" | ||
formControlName="emailContato" | ||
placeholder="@example.xxx" | ||
placeholder="[email protected]" | ||
/> | ||
<input | ||
inputmask | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { HttpClientTestingModule } from '@angular/common/http/testing'; | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
import { FormBuilder, ReactiveFormsModule } from '@angular/forms'; | ||
import { FormBuilder, FormControl, ReactiveFormsModule } from '@angular/forms'; | ||
import { of, throwError } from 'rxjs'; | ||
import { EmailService } from 'src/app/services/email.service'; | ||
import { SuggestAgendaComponent } from './suggest-agenda.component'; | ||
|
@@ -113,7 +113,7 @@ describe('SuggestAgendaComponent', () => { | |
form.setValue({ | ||
descricao: 'Descrição', | ||
responsavel: 'Usuário Teste', | ||
telefoneResponsavel: '(99) 99999-9999', | ||
telefoneResponsavel: 999999999, | ||
tema: '', | ||
quando: '', | ||
local: '', | ||
|
@@ -123,4 +123,22 @@ describe('SuggestAgendaComponent', () => { | |
component.sendSuggestAgenda(); | ||
expect(alertSpy).toHaveBeenCalledWith('error', 'Erro', 'Serviços válidos: Youtube, Google Drive, Microsoft Stream, Streamable e Vimeo.'); | ||
}); | ||
|
||
it('should handle invalid phone number error', () => { | ||
fixture.detectChanges(); | ||
const alertSpy = spyOn(alertService, 'showMessage'); | ||
const form = component.suggestAgendaForm; | ||
form.setValue({ | ||
descricao: 'Descrição', | ||
responsavel: 'Usuário Teste', | ||
telefoneResponsavel: 99999-9999, | ||
tema: '', | ||
quando: '', | ||
local: '', | ||
emailContato: '[email protected]', | ||
urlVideo: 'https://www.youtube.com/watch?v=bX-8WWmW06Q' | ||
}); | ||
component.sendSuggestAgenda(); | ||
expect(alertSpy).toHaveBeenCalledWith('error', 'Erro', 'Telefone inválido.'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.