forked from frlp-utn-ingsoft/vetsoft
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
86afb1c
commit f6548c5
Showing
1 changed file
with
7 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -321,26 +321,29 @@ def test_should_view_errors_if_name_is_invalid(self): | |
""" | ||
Esta función verifica que muestre un mesnaje de error para un nombre invalido. | ||
""" | ||
|
||
self.page.goto(f"{self.live_server_url}{reverse('clients_form')}") | ||
|
||
expect(self.page.get_by_role("form")).to_be_visible() | ||
|
||
self.page.get_by_label("Nombre").fill("manu22") | ||
self.page.get_by_label("Teléfono").fill("54221555232") | ||
self.page.get_by_label("Email").fill("[email protected]") | ||
self.page.get_by_label("Ciudad").select_option("La Plata") | ||
|
||
self.page.get_by_role("button", name="Guardar").click() | ||
|
||
expect(self.page.get_by_text("El nombre debe contener solo letras y espacios")).to_be_visible() | ||
|
||
|
||
def test_should_show_message_if_city_is_not_selected(self): | ||
def test_should_show_message_if_city_is_not_selected(self): | ||
""" | ||
Esta función verifica que se muestre un mensaje de error cuando se intenta | ||
crear un cliente sin seleccionar ciudad | ||
""" | ||
self.page.goto(f"{self.live_server_url}{reverse('clients_form')}") | ||
|
||
expect(self.page.get_by_role("form")).to_be_visible() | ||
|
||
self.page.get_by_label("Nombre").fill("Angel") | ||
self.page.get_by_label("Teléfono").fill("542226836789") | ||
self.page.get_by_label("Email").fill("[email protected]") | ||
|