4 I want to view and print PDF files in Evince
5 And AppArmor should prevent Evince from doing dangerous things
9 And I start Tails from DVD with network unplugged and I login
10 And I save the state so the background can be restored next scenario
12 Scenario: I can view and print a PDF file stored in /usr/share
13 When I open "/usr/share/cups/data/default-testpage.pdf" with Evince
14 Then I see "CupsTestPage.png" after at most 10 seconds
15 And I can print the current document to "/home/amnesia/output.pdf"
17 Scenario: I can view and print a PDF file stored in non-persistent /home/amnesia
18 Given I copy "/usr/share/cups/data/default-testpage.pdf" to "/home/amnesia" as user "amnesia"
19 When I open "/home/amnesia/default-testpage.pdf" with Evince
20 Then I see "CupsTestPage.png" after at most 10 seconds
21 And I can print the current document to "/home/amnesia/output.pdf"
23 Scenario: I cannot view a PDF file stored in non-persistent /home/amnesia/.gnupg
24 Given I copy "/usr/share/cups/data/default-testpage.pdf" to "/home/amnesia/.gnupg" as user "amnesia"
25 When I try to open "/home/amnesia/.gnupg/default-testpage.pdf" with Evince
26 Then I see "EvinceUnableToOpen.png" after at most 10 seconds
29 Scenario: Installing Tails on a USB drive, creating a persistent partition, copying PDF files to it
30 Given the USB drive "current" contains Tails with persistence configured and password "asdf"
32 And I start Tails from USB drive "current" with network unplugged and I login with persistence password "asdf"
33 And I copy "/usr/share/cups/data/default-testpage.pdf" to "/home/amnesia/Persistent" as user "amnesia"
34 Then the file "/home/amnesia/Persistent/default-testpage.pdf" exists
35 And I copy "/usr/share/cups/data/default-testpage.pdf" to "/home/amnesia/.gnupg" as user "amnesia"
36 Then the file "/home/amnesia/.gnupg/default-testpage.pdf" exists
37 And I shutdown Tails and wait for the computer to power off
40 Scenario: I can view and print a PDF file stored in persistent /home/amnesia/Persistent
42 And I start Tails from USB drive "current" with network unplugged and I login with persistence password "asdf"
43 When I open "/home/amnesia/Persistent/default-testpage.pdf" with Evince
44 Then I see "CupsTestPage.png" after at most 10 seconds
45 And I can print the current document to "/home/amnesia/Persistent/output.pdf"
48 Scenario: I cannot view a PDF file stored in persistent /home/amnesia/.gnupg
50 When I start Tails from USB drive "current" with network unplugged and I login with persistence password "asdf"
51 And I try to open "/home/amnesia/.gnupg/default-testpage.pdf" with Evince
52 Then I see "EvinceUnableToOpen.png" after at most 10 seconds