webship-js 1.0.30 → 1.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.circleci/config.yml +1 -1
- package/.github/workflows/github-actions.yml +42 -18
- package/.gitlab-ci.yml +43 -32
- package/assets/config_templates/circleci-linux-chrome.conf.js +1 -1
- package/assets/config_templates/github-linux-chrome.conf.js +1 -1
- package/examples/test--then--i-should--not--see-text-in-element.html +2 -2
- package/examples/test--then--i-should--see-text-in-element.html +2 -2
- package/examples/test--then--the-element-should_not-contain-cssproperty.html +2 -2
- package/examples/test--when--i-fill-in.html +4 -4
- package/examples/test--when--i-press-button.html +5 -2
- package/examples/test--when--i-select-option-from-dropdownlist.html +1 -1
- package/nightwatch.conf.js +2 -2
- package/package.json +1 -1
- package/tests/features/test--then--i-should--not--see-text-in-element.feature +9 -14
- package/tests/features/test--then--i-should--see-text-in-element-by-attr.feature +10 -0
- package/tests/features/test--then--i-should--see-text-in-element.feature +10 -0
- package/tests/features/test--then--i-should-not-see-an-element-by-attr.feature +8 -0
- package/tests/features/test--then--i-should-not-see-an-element.feature +8 -0
- package/tests/features/test--then--i-should-see-an-element-by-attr.feature +8 -0
- package/tests/features/test--then--i-should-see-an-element.feature +6 -6
- package/tests/features/test--then--the-checkbox-is-checked.feature +2 -2
- package/tests/features/test--then--the-checkbox-should-be-checked.feature +2 -2
- package/tests/features/{test--then--the-element-should_not-contain-cssproperty.feature → test--then--the-element-should-contain-cssproperty.feature} +4 -10
- package/tests/features/test--then--the-element-should-not-contain-cssproperty.feature +10 -0
- package/tests/features/test--then--the-field-should-contain-value.feature +3 -3
- package/tests/features/test--when--i-attach-file-to-feild.feature +1 -1
- package/tests/features/test--when--i-check-checkbox.feature +4 -4
- package/tests/features/test--when--i-click-link-by-attribute.feature +22 -0
- package/tests/features/test--when--i-fill-in-by-attr.feature +31 -0
- package/tests/features/test--when--i-fill-in-table-by-attr.feature +19 -0
- package/tests/features/test--when--i-fill-in.feature +13 -12
- package/tests/features/test--when--i-press-button-by-attribute.feature +15 -0
- package/tests/features/test--when--i-press-button.feature +2 -2
- package/tests/features/test--when--i-reload-page.feature +1 -1
- package/tests/features/test--when--i-select-option-from-dropdownlist-by-attr.feature +16 -0
- package/tests/features/test--when--i-select-option-from-dropdownlist.feature +6 -8
- package/tests/step-definitions/webship.js +418 -55
|
@@ -4,28 +4,29 @@ I want to be able to fill input text with value
|
|
|
4
4
|
|
|
5
5
|
Scenario: Check fill in input field with value
|
|
6
6
|
Given I am on "/test--when--i-fill-in.html"
|
|
7
|
-
When I fill in "
|
|
8
|
-
When I fill in "
|
|
7
|
+
When I fill in "Username" with "John Smith"
|
|
8
|
+
When I fill in "Password" with "1234"
|
|
9
9
|
When I press "Login"
|
|
10
10
|
Then I should see "You enter Username: John Smith and Password: 1234"
|
|
11
11
|
|
|
12
|
-
Scenario: Check fill in input field with empty value
|
|
13
|
-
Given I am on "/test--when--i-fill-in.html"
|
|
14
|
-
When I fill in "#uname" with:
|
|
15
|
-
When I press "Login"
|
|
16
|
-
Then I should see "You enter Username: "
|
|
17
|
-
|
|
18
12
|
Scenario: Check fill in value for input field
|
|
19
13
|
Given I am on "/test--when--i-fill-in.html"
|
|
20
|
-
When I fill in "John Smith" for "
|
|
21
|
-
When I fill in "1234" for "
|
|
14
|
+
When I fill in "John Smith" for "Username"
|
|
15
|
+
When I fill in "1234" for "Password"
|
|
22
16
|
When I press "Login"
|
|
23
17
|
Then I should see "You enter Username: John Smith and Password: 1234"
|
|
24
18
|
|
|
19
|
+
Scenario: Check fill in input field with empty value
|
|
20
|
+
Given I am on "/test--when--i-fill-in.html"
|
|
21
|
+
When I fill in "Username" with:
|
|
22
|
+
And I fill in "Password" with:
|
|
23
|
+
When I press "Login"
|
|
24
|
+
Then I should see "You enter Username: and Password:"
|
|
25
|
+
|
|
25
26
|
Scenario: Check fill in table of input fields
|
|
26
27
|
Given I am on "/test--when--i-fill-in.html"
|
|
27
28
|
When I fill in the following:
|
|
28
|
-
|
|
|
29
|
-
|
|
|
29
|
+
| Username | John Smith |
|
|
30
|
+
| Password | 1234 |
|
|
30
31
|
When I press "Login"
|
|
31
32
|
Then I should see "You enter Username: John Smith and Password: 1234"
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
Feature: An example to press a button
|
|
2
|
+
|
|
3
|
+
As a tester
|
|
4
|
+
I want to be able to press a button
|
|
5
|
+
|
|
6
|
+
Scenario: Verify clicking a button using its ID attribute.
|
|
7
|
+
Given I am on "/test--when--i-press-button.html"
|
|
8
|
+
When I press "btn-pressid" by "id" attr
|
|
9
|
+
Then I should see "Button Pressed Successfully"
|
|
10
|
+
|
|
11
|
+
Scenario: Verify that you can click a button using its default name attribute.
|
|
12
|
+
Given I am on "/test--when--i-press-button.html"
|
|
13
|
+
When I press "btn-pressname" by attr
|
|
14
|
+
Then I should see "Button Pressed Successfully"
|
|
15
|
+
|
|
@@ -5,5 +5,5 @@ Feature: An example to press a button
|
|
|
5
5
|
|
|
6
6
|
Scenario: Check press a button
|
|
7
7
|
Given I am on "/test--when--i-press-button.html"
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
When I press "Submit"
|
|
9
|
+
Then I should see "Button Pressed Successfully"
|
|
@@ -5,7 +5,7 @@ I want to be able to reload the page
|
|
|
5
5
|
|
|
6
6
|
Scenario: Check to reload the page
|
|
7
7
|
Given I am on "/test--when--i-reload-page.html"
|
|
8
|
-
When I press "Submit"
|
|
8
|
+
When I press "Submit" by attr
|
|
9
9
|
Then I should see "Button Pressed Successfully"
|
|
10
10
|
When I reload the page
|
|
11
11
|
Then I should not see "Button Pressed Successfully"
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
Feature: An example to select option from dropdown list by its attributes
|
|
2
|
+
|
|
3
|
+
As a tester
|
|
4
|
+
I want to be able to test select option from dropdown list by its attributes
|
|
5
|
+
|
|
6
|
+
Scenario: Check of selecting option from dropdown list by its attributes
|
|
7
|
+
Given I am on "/test--when--i-select-option-from-dropdownlist.html"
|
|
8
|
+
When I select "Saab" from "#cars" by attr
|
|
9
|
+
When I press "Submit"
|
|
10
|
+
Then I should see "Option ( Saab ) has been selected successfully"
|
|
11
|
+
|
|
12
|
+
Scenario: Check of selecting option from drop down list
|
|
13
|
+
Given I am on "/test--when--i-select-option-from-dropdownlist.html"
|
|
14
|
+
When I select "Mercedes" from "cars" by its "id" attr
|
|
15
|
+
When I press "Submit"
|
|
16
|
+
Then I should see "Option ( Mercedes ) has been selected successfully"
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
Feature: An example to select option
|
|
1
|
+
Feature: An example to select the option in the dropdown list field by its text label
|
|
2
2
|
|
|
3
3
|
As a tester
|
|
4
|
-
I want to be able to test select option from
|
|
4
|
+
I want to be able to test select option from dropdown list by its text label
|
|
5
5
|
|
|
6
|
-
Scenario: Check of selecting option from
|
|
6
|
+
Scenario: Check of selecting option from dropdown list by its text label
|
|
7
7
|
Given I am on "/test--when--i-select-option-from-dropdownlist.html"
|
|
8
|
-
When I select "Saab" from "
|
|
9
|
-
When I press "
|
|
10
|
-
Then I should see "Option ( Saab ) has been selected successfully"
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
When I select "Saab" from "Choose a car:"
|
|
9
|
+
When I press "Submit" by attr
|
|
10
|
+
Then I should see "Option ( Saab ) has been selected successfully"
|