Skip to content

Commit

Permalink
Finish robot tests for listing cites
Browse files Browse the repository at this point in the history
  • Loading branch information
Savones committed Dec 7, 2023
1 parent 2751001 commit 9fbd7d2
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions src/tests/robot/list_cites.robot
Original file line number Diff line number Diff line change
@@ -1,11 +1,25 @@
*** Settings ***
Resource sample_cites.robot

Test Setup Clear Database And Add Sample Cites
Test Setup Empty Database


*** Test Cases ***
Listing Cites Should Succeed
Clear Database And Add Sample Cites
Select List Cites
Run App
Output Should Contain Cortina Thomas J.
Output Should Contain Id
Output Should Contain Tyyppi
Output Should Contain Kirjoittajat
Output Should Contain title
Output Should Contain year

Listing Cites When There Are No Cites Should Succeed
Select List Cites
Run App
Output Should Not Contain Id
Output Should Not Contain Tyyppi
Output Should Not Contain Kirjoittajat
Output Should Not Contain title
Output Should Not Contain year

0 comments on commit 9fbd7d2

Please sign in to comment.