-
Notifications
You must be signed in to change notification settings - Fork 22
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 #48 from Juerodriguez/fix-47-calendar
Fix issue 47 in calendar view
- Loading branch information
Showing
2 changed files
with
40 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
def test_agenda_issue47_calendar_with_expiration(page, login): | ||
# Click text=Agenda | ||
page.click("text=Agenda") | ||
assert page.url.endswith("/agenda/agenda") | ||
# Click text=Agregar | ||
page.click("text=Agregar") | ||
assert page.url.endswith("/agenda/agenda/new/agenda") | ||
# Click input[name="_autocomplete_expediente_numero_aux"] | ||
page.click("input[name=\"_autocomplete_expediente_numero_aux\"]") | ||
# Fill input[name="_autocomplete_expediente_numero_aux"] | ||
page.fill("input[name=\"_autocomplete_expediente_numero_aux\"]", "1111") | ||
# Click input[name="vencimiento"] | ||
page.click("input[name=\"vencimiento\"]") | ||
# Click :nth-match(:text("29"), 2) | ||
page.click(":nth-match(:text(\"29\"), 2)") | ||
# Click input[name="titulo"] | ||
page.click("input[name=\"titulo\"]") | ||
# Fill input[name="titulo"] | ||
page.fill("input[name=\"titulo\"]", "tarea") | ||
# Click text=Enviar | ||
page.click("text=Enviar") | ||
assert page.url.endswith("/agenda/agenda/new/agenda#") | ||
|
||
def test_agenda_issue47_calendar_without_expiration(page, login): | ||
# Click text=Agenda | ||
page.click("text=Agenda") | ||
# Click text=Agregar | ||
page.click("text=Agregar") | ||
page.click("input[name=\"_autocomplete_expediente_numero_aux\"]") | ||
# Fill input[name="_autocomplete_expediente_numero_aux"] | ||
page.fill("input[name=\"_autocomplete_expediente_numero_aux\"]", "1111") | ||
# Click input[name="titulo"] | ||
page.click("input[name=\"titulo\"]") | ||
# Fill input[name="titulo"] | ||
page.fill("input[name=\"titulo\"]", "tarea sin vencimiento") | ||
# Click text=Enviar | ||
page.click("text=Enviar") | ||
assert page.url.endswith("/agenda/agenda/new/agenda#") | ||
|