-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e08dfa2
commit 065e315
Showing
35 changed files
with
213 additions
and
210 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
Feature: An example to test for being on the homepage | ||
As an anonymous user | ||
Feature: An example of testing for being on the homepage. | ||
As an anonymous user, | ||
I want to be able to navigate to the homepage | ||
So that I can check the welcome message at homepage | ||
so that I can check the welcome message on the homepage. | ||
|
||
Scenario: Check to be on (the) homepage | ||
Scenario: Ensure that you are on the homepage by using 'the' before the word 'homepage'. | ||
Given I am on the homepage | ||
Then I should see "Welcome to the homepage of the Webship-js Examples" | ||
|
||
Scenario: Check to be on homepage | ||
Scenario: Ensure that you are on the homepage without using 'the' before the word 'homepage'. | ||
Given I am on homepage | ||
Then I should see "Welcome to the homepage of the Webship-js Examples" | ||
|
||
Scenario: Check to be on homepage (useing we) | ||
Scenario: Ensure that you are on the homepage without using 'the' before the word 'homepage' and using 'we' instead of 'I'. | ||
Given we are on homepage | ||
Then we should see "Welcome to the homepage of the Webship-js Examples" |
11 changes: 6 additions & 5 deletions
11
tests/features/test--then--i-should--not--see-text-in-element.feature
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 |
---|---|---|
@@ -1,12 +1,13 @@ | ||
Feature: An example to test whether the input text does not contain a specific value by its attribute | ||
As a tester | ||
I want to be able to check an input text does not contain a specific value by its attribute | ||
Scenario: Check an element if it does not contain a specific text | ||
Feature: An example to ensure that the input text does not contain a specific value based on its attribute | ||
As a tester, | ||
I want to ensure that the textbox does not contain a specific value based on its attributes. | ||
|
||
Scenario: Ensuring that a textbox does not contain a specific value based on its attributes. | ||
Given I am on "/test--then--i-should--not--see-text-in-element.html" | ||
When I fill in "Username" with "user1" | ||
And I fill in "Password" with "1234" | ||
Then I should see "user1" in the "Username" element | ||
When I fill in "uname" with: by attr | ||
And I fill in "Password" with: | ||
Then I should not see "user1" in the "Username" element | ||
Then I should not see "1234" in the "pword" element by attr | ||
And I should not see "1234" in the "pword" element by attr |
16 changes: 8 additions & 8 deletions
16
tests/features/test--then--i-should--see-text-in-element-by-attr.feature
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
Feature: An example to test whether an element contains a certain text or not | ||
As a tester | ||
I want to be able to check an element contains a certain text or not | ||
Feature: An example to ensure that the input text contain a specific value based on its attribute | ||
As a tester, | ||
I want to ensure that the textbox contain a specific value based on its attributes. | ||
|
||
Scenario: Check an element if it contains a specific text | ||
Scenario: Ensuring that a textbox contain a specific value based on its attributes. | ||
Given I am on "/test--then--i-should--not--see-text-in-element.html" | ||
When I fill in "Username" with "user1" | ||
And I fill in "Password" with "1234" | ||
Then I should see "user1" in the "uname" element by its "id" attr | ||
And I should see "1234" in the "pwordcss" element by attr | ||
When I fill in "Username" with "user1" | ||
And I fill in "Password" with "1234" | ||
Then I should see "user1" in the "uname" element by its "id" attr | ||
And I should see "1234" in the "pwordcss" element by attr |
16 changes: 8 additions & 8 deletions
16
tests/features/test--then--i-should--see-text-in-element.feature
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
Feature: An example to test whether an input text contains a certain text by its label | ||
As a tester | ||
I want to be able to check an element contains a certain text or not | ||
Feature: An example to ensure that the input text contain a specific value based on its label | ||
As a tester, | ||
I want to ensure thlabelat the textbox does not contain a specific value based on its label | ||
|
||
Scenario: Check an element if it contains a specific text | ||
Scenario: Ensuring that a textbox does not contain a specific value based on its label. | ||
Given I am on "/test--then--i-should--not--see-text-in-element.html" | ||
When I fill in "Username" with "user1" | ||
And I fill in "Password" with "1234" | ||
Then I should see "user1" in the "Username" element | ||
And I should see "1234" in the "Password" element | ||
When I fill in "Username" with "user1" | ||
And I fill in "Password" with "1234" | ||
Then I should see "user1" in the "Username" element | ||
And I should see "1234" in the "Password" element |
10 changes: 5 additions & 5 deletions
10
tests/features/test--then--i-should--see-text-matching-pattern-in-element.feature
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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
Feature: An example of testing match a pattern to text in a specific element | ||
As a developer | ||
I want to be able to check if I can see text matching the pattern I require in a specific element. | ||
Feature: An example of ensuring that a pattern matches the text in a specific element | ||
As a developer, | ||
I want to ensure that a pattern matches the text in a specific element. | ||
|
||
Scenario: Check if text exist in an element has a pattern match with 12-hour time format | ||
Scenario: Ensuring that the text in an element matches the 12-hour time format pattern | ||
Given I am on "/test--then--i-should--see-text-matching-pattern.html" | ||
And I wait max of 3 seconds | ||
Then I should see text matching "(((0[1-9])|(1[0-2])):([0-5])(0|5)\s(A|P|a|p)(M|m))" in the ".time" element | ||
|
||
Scenario: Check if text exist in an element has a pattern match with date DD/MM/YYYY or DD-MM-YYYY | ||
Scenario: Ensuring that the text in an element matches the DD/MM/YYYY or DD-MM-YYYY date format pattern | ||
Given I am on "/test--then--i-should--see-text-matching-pattern.html" | ||
And I wait max of 3 seconds | ||
Then I should see text matching "(0?[1-9]|[12][0-9]|3[01])[\/\-](0?[1-9]|1[012])[\/\-]\d{4}" in the "#date" element |
12 changes: 6 additions & 6 deletions
12
tests/features/test--then--i-should--see-text-matching-pattern.feature
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 |
---|---|---|
@@ -1,18 +1,18 @@ | ||
Feature: An example of testing to match a pattern to text on a specific page | ||
As a developer | ||
I want to be able to check if I can see text matching the pattern I require. | ||
Feature: An example of ensuring that a pattern matches the text on a specific page. | ||
As a developer, | ||
I want to ensure that a pattern matches the text in a specific page. | ||
|
||
Scenario: Check if exist a text has a pattern match with text start with "T" | ||
Scenario: Ensure that there is a text matching the pattern of text starting with 'T' on a specific page | ||
Given I am on "/test--then--i-should--see-text-matching-pattern.html" | ||
And I wait max of 3 seconds | ||
Then I should see text matching "^T\w+" | ||
|
||
Scenario: Check if not exist a text has a pattern match with text start with "O" | ||
Scenario: Ensure that there is no text matching the pattern of text starting with 'O' on a specific page | ||
Given I am on "/test--then--i-should--see-text-matching-pattern.html" | ||
And I wait max of 3 seconds | ||
Then I should not see text matching "^O\w+" | ||
|
||
Scenario: Check if exist a text has a pattern match with Email | ||
Scenario: Ensure that there is text matching the email pattern on a specific page | ||
Given I am on "/test--then--i-should--see-text-matching-pattern.html" | ||
And I wait max of 3 seconds | ||
Then I should see text matching "[a-z0-9]+@[a-z]+\.[a-z]{2,3}" |
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
Feature: An example to test being on a specific page | ||
As an anonymous user | ||
I want to be sure I am on a specific page | ||
Feature: An example to ensure that you are on a specific page | ||
As an anonymous user, | ||
I want to ensure that I am on a specific page | ||
|
||
Scenario: Check being on a specific page | ||
Scenario: Ensure that you are on a specific page | ||
Given I am on the homepage | ||
When I go to "/about-us.html" | ||
Then I should be on "/about-us.html" | ||
When I move backward one page | ||
Then I should be on homepage | ||
When I go to "/about-us.html" | ||
Then I should be on "/about-us.html" | ||
When I move backward one page | ||
Then I should be on homepage |
16 changes: 8 additions & 8 deletions
16
tests/features/test--then--i-should-be-on-the-homepage.feature
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
Feature: An example to test being on the homepage | ||
As an anonymous user | ||
I want to be sure I am on the homepage | ||
Feature: An example to ensure that you are on the homepage | ||
As an anonymous user, | ||
I want to ensure that I am on the homepage | ||
|
||
Scenario: Check being on the homepage | ||
Scenario: Ensure that you are on the homepage | ||
Given I am on the homepage | ||
When I go to "/about-us.html" | ||
And I move backward one page | ||
And I wait max of 3 seconds | ||
Then I should be on the homepage | ||
When I go to "/about-us.html" | ||
And I move backward one page | ||
And I wait max of 3 seconds | ||
Then I should be on the homepage |
8 changes: 4 additions & 4 deletions
8
tests/features/test--then--i-should-not-see-an-element-by-attr.feature
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
Feature: An example to test not seeing for a specific element on current page by its label | ||
As a user | ||
I want to make sure that when I'm on a particular page, I should not see a specific element by its label | ||
Feature: An example to ensure that a specific element is not visible on the current page by its attribute | ||
As a user, | ||
I want to ensure that when I'm on a particular page, I do not see a specific element identified by its attribute | ||
|
||
Scenario: Check to test not seeing for a specific element by its label | ||
Scenario: Ensure that a specific element is not visible based on its attribute | ||
Given I am on "/test--then--i-should--see-text-in-element.html" | ||
Then I should not see an "emailId" element by its "id" attr | ||
And I should not see a "countryCss" element by attr |
8 changes: 4 additions & 4 deletions
8
tests/features/test--then--i-should-not-see-an-element.feature
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
Feature: An example to test not seeing for a specific element on current page by its label | ||
As a user | ||
I want to make sure that when I'm on a particular page, I should not see a specific element by its label | ||
Feature: An example to ensure that a specific element is not visible on the current page by its label | ||
As a user, | ||
I want to ensure that when I'm on a particular page, I do not see a specific element by its label | ||
|
||
Scenario: Check to test not seeing for a specific element by its label | ||
Scenario: Ensure to test that a specific element is not visible by its label | ||
Given I am on "/test--then--i-should--see-text-in-element.html" | ||
Then I should not see an "Eamil" element | ||
And I should not see a "Country" element |
8 changes: 4 additions & 4 deletions
8
tests/features/test--then--i-should-see-an-element-by-attr.feature
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
Feature: An example to test seeing for a specific element on current page by its attributes | ||
As a user | ||
I want to make sure that when I'm on a particular page, I should see a specific element by its attributes | ||
Feature: An example to ensure visibility of a specific element on the current page by its attributes | ||
As a user, | ||
I want to make sure that when I'm on a particular page, I can see a specific element by its attributes | ||
|
||
Scenario: Check to test seeing for a specific element by its attributes | ||
Scenario: Ensure visibility of a specific element by its attributes | ||
Given I am on "/test--then--i-should--see-text-in-element.html" | ||
Then I should see a "uname" element by its "id" attr | ||
And I should see a "pwordcss" element by attr |
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
24 changes: 12 additions & 12 deletions
24
tests/features/test--then--the-checkbox-should-be-checked.feature
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 |
---|---|---|
@@ -1,16 +1,16 @@ | ||
Feature: An example of test assert for selecting a checkbox | ||
As an anonymous user | ||
I want to be sure that a specific checkbox should be checked before submitting a specific action. | ||
Feature: An example to assert the selection of a checkbox | ||
As an anonymous user, | ||
I want to ensure that a specific checkbox is checked before submitting a particular action | ||
|
||
Scenario: Check that the checkbox should be checked | ||
Scenario: Ensure that the checkbox is checked | ||
Given I am on "/test--then--the-checkbox-checked.html" | ||
When I check "PrivacyPolicy" | ||
And I press "Register" by attr | ||
Then the checkbox "#PrivacyPolicy" should be checked | ||
And I should see "Registration Done Successfully" | ||
When I check "PrivacyPolicy" | ||
And I press "Register" by attr | ||
Then the checkbox "#PrivacyPolicy" should be checked | ||
And I should see "Registration Done Successfully" | ||
|
||
Scenario: Check that the checkbox should not be checked | ||
Scenario: Ensure that the checkbox is not checked | ||
Given I am on "/test--then--the-checkbox-checked.html" | ||
When I press "Register" by attr | ||
Then the "#PrivacyPolicy" checkbox should not be checked | ||
And I should see "Please check Agree to Privacy Policy" | ||
When I press "Register" by attr | ||
Then the "#PrivacyPolicy" checkbox should not be checked | ||
And I should see "Please check Agree to Privacy Policy" |
14 changes: 7 additions & 7 deletions
14
tests/features/test--then--the-element-should-contain-cssproperty.feature
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
Feature: An example to test if the element contains a certain expected CSS property. | ||
As a developer | ||
I want to be able to test if the element contains a certain expected CSS property. | ||
Feature: An example to verify whether the element contains a specific expected CSS property. | ||
As a developer, | ||
I want to verify whether the element contains a specific expected CSS property. | ||
|
||
Scenario: Check element if the element contains a certain expected CSS property | ||
Scenario: Verify whether the element contains a specific expected CSS property | ||
Given I am on "/test--then--the-element-should_not-contain-cssproperty.html" | ||
Then I should see a "body" element by attr | ||
When I press "Submit" | ||
Then the "body" element should contain "background-color:white;" | ||
Then I should see a "body" element by attr | ||
When I press "Submit" | ||
Then the "body" element should contain "background-color:white;" |
16 changes: 8 additions & 8 deletions
16
tests/features/test--then--the-element-should-not-contain-cssproperty.feature
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
Feature: An example to test if the element does not contain a certain expected CSS property. | ||
As a developer | ||
I want to be able to test if the element does not contain a certain expected CSS property. | ||
Feature: An example to verify whether the element does not contain a specific expected CSS property. | ||
As a developer, | ||
I want to verify whether the element does not contain a specific expected CSS property. | ||
|
||
Scenario: Check element if the element not contain a certain CSS property | ||
Scenario: Verify whether the element does not contain a certain CSS property | ||
Given I am on "/test--then--the-element-should_not-contain-cssproperty.html" | ||
Then I should see a "body" element by attr | ||
When I press "Submit" | ||
Then the "#uname" element should not contain "border:solid 5px red;" | ||
And the "pword" element should not contain "font-size: 28px;" | ||
Then I should see a "body" element by attr | ||
When I press "Submit" | ||
Then the "#uname" element should not contain "border:solid 5px red;" | ||
And the "pword" element should not contain "font-size: 28px;" |
18 changes: 9 additions & 9 deletions
18
tests/features/test--then--the-field-should-contain-value.feature
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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
Feature: An example to test if the field contains certain value by element label | ||
As a tester | ||
I want to be able to check field if has a certain value by element label | ||
Feature: An example to verify whether the field contains a specific value identified by its element label | ||
As a tester, | ||
I want to verify whether the field has a specific value based on its element label | ||
|
||
Scenario: Check field if has a particular value by element label | ||
Scenario: Verify that the field has a particular value based on its element label | ||
Given I am on "/test--then--i-should--not--see-text-in-element.html" | ||
And I fill in "Username" with "user1" | ||
Then the "Username" field should contain "user1" | ||
When I press "Reset" by attr | ||
And I fill in "Username" with "user2" | ||
Then the "Username" field should contain "user2" | ||
And I fill in "Username" with "user1" | ||
Then the "Username" field should contain "user1" | ||
When I press "Reset" by attr | ||
And I fill in "Username" with "user2" | ||
Then the "Username" field should contain "user2" |
11 changes: 5 additions & 6 deletions
11
tests/features/test--then--the-response-should-contain.feature
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 |
---|---|---|
@@ -1,12 +1,11 @@ | ||
Feature: An example to test response page if contain a text | ||
As a tester, | ||
I want to be able to navigate to a page | ||
So that I can check if this page contains a specific text | ||
Feature: An example to ensure that the response page contains specific text | ||
As a tester, | ||
I want to navigate to a page to verify whether it contains specific text | ||
|
||
Scenario: Check response page if contain a text | ||
Scenario: Ensure that the response page contains specific text | ||
Given I am on the homepage | ||
Then the response should contain "Welcome to the homepage" | ||
|
||
Scenario: Check response page if not contain a text | ||
Scenario: Ensure that the response page does not contain specific text | ||
Given I am on the homepage | ||
Then the response should not contain "Access denied" |
14 changes: 7 additions & 7 deletions
14
tests/features/test--then--the-response-status-code-should-be.feature
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
Oops, something went wrong.