Skip to content

Commit 805f61d

Browse files
committed
Fix spacing for example Gherkin features with Gherkin Beautifier #202
1 parent 3e3f55a commit 805f61d

File tree

37 files changed

+88
-112
lines changed

37 files changed

+88
-112
lines changed

tests/features/test--given--i-am-on-homepage.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Feature: An example of testing for being on the homepage.
2-
As an anonymous user,
3-
I want to be able to navigate to the homepage
2+
As an anonymous user,
3+
I want to be able to navigate to the homepage
44
so that I can check the welcome message on the homepage.
55

66
Scenario: Ensure that you are on the homepage by using 'the' before the word 'homepage'.

tests/features/test--then--i-should--not--see-text-in-element.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Feature: An example to ensure that the input text does not contain a specific value based on its attribute
2-
As a tester,
3-
I want to ensure that the textbox does not contain a specific value based on its attributes.
2+
As a tester,
3+
I want to ensure that the textbox does not contain a specific value based on its attributes.
44

55
Scenario: Ensuring that a textbox does not contain a specific value based on its attributes.
66
Given I am on "/test--then--i-should--not--see-text-in-element.html"

tests/features/test--then--i-should--see-text-in-element-by-attr.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Feature: An example to ensure that the input text contain a specific value based on its attribute
2-
As a tester,
3-
I want to ensure that the textbox contain a specific value based on its attributes.
2+
As a tester,
3+
I want to ensure that the textbox contain a specific value based on its attributes.
44

55
Scenario: Ensuring that a textbox contain a specific value based on its attributes.
66
Given I am on "/test--then--i-should--not--see-text-in-element.html"

tests/features/test--then--i-should--see-text-in-element.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Feature: An example to ensure that the input text contain a specific value based on its label
2-
As a tester,
3-
I want to ensure thlabelat the textbox does not contain a specific value based on its label
2+
As a tester,
3+
I want to ensure thlabelat the textbox does not contain a specific value based on its label
44

55
Scenario: Ensuring that a textbox does not contain a specific value based on its label.
66
Given I am on "/test--then--i-should--not--see-text-in-element.html"
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
Feature: An example of ensuring that a pattern matches the text in a specific element
2-
As a developer,
3-
I want to ensure that a pattern matches the text in a specific element.
2+
As a developer,
3+
I want to ensure that a pattern matches the text in a specific element.
44

5-
Scenario: Ensuring that the text in an element matches the 12-hour time format pattern
5+
Scenario: Ensuring that the text in an element matches the 12-hour time format pattern
66
Given I am on "/test--then--i-should--see-text-matching-pattern.html"
77
And I wait max of 3 seconds
88
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
99

10-
Scenario: Ensuring that the text in an element matches the DD/MM/YYYY or DD-MM-YYYY date format pattern
10+
Scenario: Ensuring that the text in an element matches the DD/MM/YYYY or DD-MM-YYYY date format pattern
1111
Given I am on "/test--then--i-should--see-text-matching-pattern.html"
1212
And I wait max of 3 seconds
1313
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
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
Feature: An example of ensuring that a pattern matches the text on a specific page.
2-
As a developer,
3-
I want to ensure that a pattern matches the text in a specific page.
2+
As a developer,
3+
I want to ensure that a pattern matches the text in a specific page.
44

5-
Scenario: Ensure that there is a text matching the pattern of text starting with 'T' on a specific page
5+
Scenario: Ensure that there is a text matching the pattern of text starting with 'T' on a specific page
66
Given I am on "/test--then--i-should--see-text-matching-pattern.html"
77
And I wait max of 3 seconds
88
Then I should see text matching "^T\w+"
99

10-
Scenario: Ensure that there is no text matching the pattern of text starting with 'O' on a specific page
10+
Scenario: Ensure that there is no text matching the pattern of text starting with 'O' on a specific page
1111
Given I am on "/test--then--i-should--see-text-matching-pattern.html"
1212
And I wait max of 3 seconds
1313
Then I should not see text matching "^O\w+"
1414

15-
Scenario: Ensure that there is text matching the email pattern on a specific page
15+
Scenario: Ensure that there is text matching the email pattern on a specific page
1616
Given I am on "/test--then--i-should--see-text-matching-pattern.html"
1717
And I wait max of 3 seconds
1818
Then I should see text matching "[a-z0-9]+@[a-z]+\.[a-z]{2,3}"

tests/features/test--then--i-should-be-on-page.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Feature: An example to ensure that you are on a specific page
2-
As an anonymous user,
3-
I want to ensure that I am on a specific page
2+
As an anonymous user,
3+
I want to ensure that I am on a specific page
44

55
Scenario: Ensure that you are on a specific page
66
Given I am on the homepage

tests/features/test--then--i-should-be-on-the-homepage.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Feature: An example to ensure that you are on the homepage
2-
As an anonymous user,
3-
I want to ensure that I am on the homepage
2+
As an anonymous user,
3+
I want to ensure that I am on the homepage
44

55
Scenario: Ensure that you are on the homepage
66
Given I am on the homepage

tests/features/test--then--i-should-not-see-an-element-by-attr.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Feature: An example to ensure that a specific element is not visible on the current page by its attribute
2-
As a user,
3-
I want to ensure that when I'm on a particular page, I do not see a specific element identified by its attribute
2+
As a user,
3+
I want to ensure that when I'm on a particular page, I do not see a specific element identified by its attribute
44

55
Scenario: Ensure that a specific element is not visible based on its attribute
66
Given I am on "/test--then--i-should--see-text-in-element.html"

tests/features/test--then--i-should-not-see-an-element.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Feature: An example to ensure that a specific element is not visible on the current page by its label
2-
As a user,
3-
I want to ensure that when I'm on a particular page, I do not see a specific element by its label
2+
As a user,
3+
I want to ensure that when I'm on a particular page, I do not see a specific element by its label
44

55
Scenario: Ensure to test that a specific element is not visible by its label
66
Given I am on "/test--then--i-should--see-text-in-element.html"

0 commit comments

Comments
 (0)