-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path100_Comments_basic_functionality.robot
99 lines (94 loc) · 4.86 KB
/
100_Comments_basic_functionality.robot
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
*** Settings ***
Documentation Test Suite for Comment Round Tool basic functionality
Suite Teardown Close All Browsers
Test Teardown Close All Browsers
Library SeleniumLibrary
Resource resources/Generic_resources.robot
*** Test Cases ***
100. Open Information about the service page
[Documentation] Verify that Information about the service page is opened correctly.
[Tags] regression test 100
[Setup] Test Case Setup Admin
Wait Until Page Contains Element ${INFORMATION_LINK} timeout=30
Click Element ${INFORMATION_LINK}
Wait Until Page Contains Tietoa Kommentit-työkalusta timeout=20
Wait Until Page Contains Katso myös timeout=20
Wait Until Page Contains Ota yhteyttä timeout=20
[Teardown] Return to Comments frontpage
101. Open EUPL-1.2 license page
[Documentation] Verify that European Union Public Licence page is opened correctly. YTI-877.
[Tags] regression test 100
[Setup] Test Case Setup Admin
Wait Until Page Contains Element ${LICENSE_LINK} timeout=20
Click Element ${LICENSE_LINK}
Wait Until Keyword Succeeds 90 seconds 5 seconds Select Window url=https://ec.europa.eu/info/european-union-public-licence
Wait Until Page Contains European Union Public Licence timeout=30
Wait Until Page Contains What is the EUPL? timeout=30
Log To Console EUPL licence page opened
Select Window title=${ENVIRONMENT_IDENTIFIER} - Kommentit
102. Open Description of file page
[Documentation] Verify that Description of file page is opened correctly
[Tags] local
[Setup] Test Case Setup Admin
Wait Until Page Contains Element ${DESCRIPTION_OF_FILE_LINK} timeout=20
Click Element ${DESCRIPTION_OF_FILE_LINK}
Select Window url=https://yhteentoimiva.suomi.fi/tietosuojaseloste.pdf
Sleep 1
Select Window title=${ENVIRONMENT_IDENTIFIER} - Kommentit
103. Change user interface language
[Documentation] Change user interface language in English and in Finnish.
... Check that language settings do not change in page reload.
[Tags] regression test 100
[Setup] Test Case Setup Admin
Wait Until Page Contains Element ${LANGUAGE_DROPDOWN_BTN} timeout=20
Click Element ${LANGUAGE_DROPDOWN_BTN}
Wait Until Element Is Visible ${LANGUAGE_EN} timeout=20
Click Element ${LANGUAGE_EN}
Wait Until Page Contains Comments - ${ENVIRONMENT_IDENTIFIER} timeout=30
Wait Until Page Contains Add new comment round timeout=30
Wait Until Page Contains All tools timeout=30
Wait Until Page Contains All organizations timeout=30
Wait Until Page Contains All statuses timeout=30
Reload Page
Wait Until Page Contains Add new comment round timeout=30
Wait Until Page Contains All tools timeout=30
Wait Until Page Contains All organizations timeout=30
Wait Until Page Contains All statuses timeout=30
Sleep 1
[Teardown] Restore Finnish Language
104. Check navigation menu links
[Documentation] Verify that navigation menu links are opened correctly
[Tags] regression test 100
[Setup] Test Case Setup Superuser
Select Navigation Menu Link Käyttäjätiedot
Wait Until Page Contains Käyttäjätiedot timeout=20
Wait Until Page Contains Nimi timeout=20
Wait Until Page Contains Sähköposti timeout=20
Wait Until Page Contains Organisaatiot ja roolit timeout=20
Select Navigation Menu Link yhteentoimiva.suomi.fi
Select Window title=Yhteentoimivuusalusta | Suomidigi
Close Window
Select Window title=${ENVIRONMENT_IDENTIFIER} - Kommentit
Select Navigation Menu Link Suomi.fi-koodistot
Select Window title=${ENVIRONMENT_IDENTIFIER} - Koodistot
Wait Until Page Contains Koodistot timeout=40
Wait Until Page Contains Hae koodistoa timeout=40
Wait Until Page Contains Rajaa tietoalueella timeout=40
Close Window
Select Window title=${ENVIRONMENT_IDENTIFIER} - Kommentit
Select Navigation Menu Link Suomi.fi-sanastot
Select Window title=${ENVIRONMENT_IDENTIFIER} - Sanastot
Wait Until Page Contains Sanastot timeout=40
Wait Until Page Contains Hae sanastoja timeout=40
Wait Until Page Contains Rajaa tietoalueella timeout=40
Close Window
Select Window title=${ENVIRONMENT_IDENTIFIER} - Kommentit
Sleep 1
Select Navigation Menu Link Suomi.fi-tietomallit
Select Window title=${ENVIRONMENT_IDENTIFIER} - Tietomallit
Wait Until Page Contains Tietomallit timeout=40
Wait Until Page Contains Etusivu timeout=40
Close Window
Select Window title=${ENVIRONMENT_IDENTIFIER} - Kommentit
Sleep 1
Close All Browsers