Skip to content

Commit

Permalink
Fix spelling and grammar #172
Browse files Browse the repository at this point in the history
  • Loading branch information
TasneemNatshah committed Dec 6, 2024
1 parent e08dfa2 commit 065e315
Show file tree
Hide file tree
Showing 35 changed files with 213 additions and 210 deletions.
12 changes: 6 additions & 6 deletions tests/features/test--given--i-am-on-homepage.feature
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"
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
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 tests/features/test--then--i-should--see-text-in-element.feature
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
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
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}"
16 changes: 8 additions & 8 deletions tests/features/test--then--i-should-be-on-page.feature
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 tests/features/test--then--i-should-be-on-the-homepage.feature
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
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
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
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
6 changes: 3 additions & 3 deletions tests/features/test--then--i-should-see-an-element.feature
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Feature: An example to test 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 see a specific element by its label
Feature: An example to ensure that a specific element is visible on the current page by its label
As a user,
I want to ensure that when I'm on a particular page, I can see a specific element by its label

Scenario: Check to test seeing for a specific element by its label
Given I am on "/test--then--i-should--see-text-in-element.html"
Expand Down
8 changes: 4 additions & 4 deletions tests/features/test--then--the-checkbox-is-checked.feature
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
Feature: An example of test for selecting a checkbox
As a tester
Feature: An example of a test case for selecting a checkbox
As a tester,
I want to be able to check that the checkbox is checked or not

Scenario: Check that the checkbox is checked
Scenario: Verify that the checkbox is checked
Given I am on "/test--then--the-checkbox-checked.html"
When I check "rememberMe"
And I check "PrivacyPolicy"
And I press "Register" by attr
Then the checkbox "#rememberMe" is checked
And I should see "Registration Done Successfully"

Scenario: Check that the checkbox is not checked
Scenario: Verify that the checkbox is not checked
Given I am on "/test--then--the-checkbox-checked.html"
When I check "PrivacyPolicy"
And I press "Register" by attr
Expand Down
24 changes: 12 additions & 12 deletions tests/features/test--then--the-checkbox-should-be-checked.feature
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"
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;"
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;"
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 tests/features/test--then--the-response-should-contain.feature
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"
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
Feature: An example to test a page response status code
As a tester
I want to be able to test a page response status code
Feature: An example to check the status code of a page response
As a tester,
I want to be able to check the status code of a page response

Scenario: Check the response status code for not existing page page
Scenario: Check the response status code for a non-existing page
Given I am on the homepage
When I go to "/not-existing-page.html"
And I wait max of 2 seconds
Then the response status code should be 404
And the response status code should not be 200

Scenario: Check the response status code for existing page
Scenario: Check the response status code for an existing page
Given I am on the homepage
When I go to "/existing-page.html"
And I wait max of 2 seconds
Then the response status code should not be 404
And the response status code should be 200

Scenario: Check the response status code for an API with JSON page format
Scenario: Check the response status code for an API that returns a JSON format
Given I am on the homepage
When I go to "/example-api.json"
And I wait max of 2 seconds
Then the response status code should not be 404
And the response status code should be 200

Scenario: Check the response status code for a parameter of the API with JSON page format
Scenario: Check the response status code for a parameter in the API that returns JSON format
Given I am on the homepage
When I go to "/example-api.json?include=author"
And I wait max of 2 seconds
Expand Down
Loading

0 comments on commit 065e315

Please sign in to comment.