-
Notifications
You must be signed in to change notification settings - Fork 0
/
TestCases.txt
47 lines (40 loc) · 2.42 KB
/
TestCases.txt
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
Background:
Given I navigate to "contact page"
Then the title of the page should be "Contact | Nodal"
When I click the "close cookies modal" button from the Contact page
Scenario: Valid contact us test
Then I input "unique name" in the "name" field from the Contact page
Then I input "unique email" in the "email" field from the Contact page
Then I input "valid text" in the "message" field from the Contact page
When I click the "Send Message" button from the Contact page
Then the form should "be" submitted successfully
Scenario: Missing name contact us test
Then I input "" in the "name" field from the Contact page
Then I input "unique email" in the "email" field from the Contact page
Then I input "valid text" in the "message" field from the Contact page
When I click the "Send Message" button from the Contact page
Then the form should "not be" submitted successfully
Scenario: To short name contact us test
Then I input "too short name" in the "name" field from the Contact page
Then I input "unique email" in the "email" field from the Contact page
Then I input "valid text" in the "message" field from the Contact page
When I click the "Send Message" button from the Contact page
Then the form should "not be" submitted successfully
Scenario: To long name contact us test
Then I input "too long name" in the "name" field from the Contact page
Then I input "unique email" in the "email" field from the Contact page
Then I input "valid text" in the "message" field from the Contact page
When I click the "Send Message" button from the Contact page
Then the form should "not be" submitted successfully
Scenario: Invalid email contact us test
Then I input "unique name" in the "name" field from the Contact page
Then I input "invalid email" in the "email" field from the Contact page
Then I input "valid text" in the "message" field from the Contact page
When I click the "Send Message" button from the Contact page
Then the form should "not be" submitted successfully
Scenario: Empty message contact us test
Then I input "unique name" in the "name" field from the Contact page
Then I input "unique email" in the "email" field from the Contact page
Then I input "" in the "message" field from the Contact page
When I click the "Send Message" button from the Contact page
Then the form should "not be" submitted successfully