webship-js 1.0.39 → 1.0.41
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/assets/config_templates/circleci-linux-chrome.conf.js +10 -1
- package/assets/config_templates/github-linux-chrome.conf.js +10 -1
- package/examples/test--when--i-scroll-functionality.html +176 -0
- package/lib/custom-hooks/before-after.js +30 -0
- package/nightwatch.conf.js +12 -3
- package/package.json +1 -1
- package/tests/features/test--given--i-am-on-homepage.feature +2 -2
- package/tests/features/test--then--i-should--not--see-text-in-element.feature +2 -2
- package/tests/features/test--then--i-should--see-text-in-element-by-attr.feature +2 -2
- package/tests/features/test--then--i-should--see-text-in-element.feature +2 -2
- package/tests/features/test--then--i-should--see-text-matching-pattern-in-element.feature +4 -4
- package/tests/features/test--then--i-should--see-text-matching-pattern.feature +5 -5
- package/tests/features/test--then--i-should-be-on-page.feature +2 -2
- package/tests/features/test--then--i-should-be-on-the-homepage.feature +2 -2
- package/tests/features/test--then--i-should-not-see-an-element-by-attr.feature +2 -2
- package/tests/features/test--then--i-should-not-see-an-element.feature +2 -2
- package/tests/features/test--then--i-should-see-an-element-by-attr.feature +2 -2
- package/tests/features/test--then--i-should-see-an-element.feature +2 -2
- 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-contain-cssproperty.feature +2 -2
- package/tests/features/test--then--the-element-should-not-contain-cssproperty.feature +2 -2
- package/tests/features/test--then--the-field-should-contain-value.feature +3 -3
- package/tests/features/test--then--the-response-should-contain.feature +3 -3
- package/tests/features/test--then--the-response-status-code-should-be.feature +2 -2
- package/tests/features/test--then--the-url-should-match.feature +3 -3
- package/tests/features/test--then-the-link-should-contain-by-attribute.feature +2 -3
- package/tests/features/test--then-the-link-should-contain.feature +2 -3
- package/tests/features/test--when--i-attach-file-to-feild.feature +3 -5
- package/tests/features/test--when--i-check-checkbox.feature +2 -3
- package/tests/features/test--when--i-click-link-by-attribute.feature +2 -3
- package/tests/features/test--when--i-click-link.feature +2 -3
- package/tests/features/test--when--i-fill-in-by-attr.feature +2 -2
- package/tests/features/test--when--i-fill-in-table-by-attr.feature +6 -6
- package/tests/features/test--when--i-fill-in.feature +4 -4
- package/tests/features/test--when--i-go-to-homepage.feature +3 -6
- package/tests/features/test--when--i-move-forward-backward-one-page.feature +2 -3
- package/tests/features/test--when--i-press-button-by-attribute.feature +2 -3
- package/tests/features/test--when--i-press-button.feature +7 -3
- package/tests/features/test--when--i-reload-page.feature +2 -3
- package/tests/features/test--when--i-scroll.feature +48 -0
- package/tests/features/test--when--i-select-option-from-dropdownlist.feature +15 -4
- package/tests/features/test--when--i-wait-page-is-loaded.feature +2 -3
- package/tests/features/test--when--i-wait-time.feature +3 -4
- package/tests/step-definitions/webship.js +543 -233
- package/examples/test--when--i-scroll-to-the-bottom.html +0 -49
- package/tests/features/test--when--i-scroll-to-the-bottom.feature +0 -9
- package/tests/features/test--when--i-select-option-from-dropdownlist-by-attr.feature +0 -16
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html>
|
|
3
|
-
|
|
4
|
-
<head>
|
|
5
|
-
<meta charset='utf-8'>
|
|
6
|
-
<title>when I scroll to the bottom</title>
|
|
7
|
-
<style>
|
|
8
|
-
.container,
|
|
9
|
-
.container input,
|
|
10
|
-
.container button {
|
|
11
|
-
font-size: 26px;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.style {
|
|
15
|
-
font-size: 22px;
|
|
16
|
-
line-height: 30px;
|
|
17
|
-
border-width: 1pc;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
#complete{
|
|
21
|
-
font-size: 32px;
|
|
22
|
-
line-height: 30px;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
</style>
|
|
26
|
-
|
|
27
|
-
</head>
|
|
28
|
-
|
|
29
|
-
<body>
|
|
30
|
-
<h1>scrolling page to the bottom</h1>
|
|
31
|
-
|
|
32
|
-
<div id="container">
|
|
33
|
-
|
|
34
|
-
</div>
|
|
35
|
-
|
|
36
|
-
<div id="complete">
|
|
37
|
-
|
|
38
|
-
</div>
|
|
39
|
-
</body>
|
|
40
|
-
|
|
41
|
-
<script>
|
|
42
|
-
|
|
43
|
-
for(var i=0; i<20; i++){
|
|
44
|
-
document.getElementById("container").innerHTML += '<p class="style"> Container #' + i + '</p>';
|
|
45
|
-
}
|
|
46
|
-
document.getElementById("complete").innerHTML += "Scrolling has reached the bottom";
|
|
47
|
-
|
|
48
|
-
</script>
|
|
49
|
-
</html>
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
Feature: An example test Scrolling page to the bottom.
|
|
2
|
-
|
|
3
|
-
As a tester,
|
|
4
|
-
I want to make sure that I can arrive the bottom of the current page.
|
|
5
|
-
|
|
6
|
-
Scenario: Check Scrolling page to the bottom.
|
|
7
|
-
Given I am on "/test--when--i-scroll-to-the-bottom.html"
|
|
8
|
-
When I scroll to the bottom
|
|
9
|
-
Then I should see "Scrolling has reached the bottom"
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
Feature: An example of selecting an option from a dropdown list using its attributes.
|
|
2
|
-
|
|
3
|
-
As a tester,
|
|
4
|
-
I want to be able to test selecting an option from a dropdown list using its attributes.
|
|
5
|
-
|
|
6
|
-
Scenario: Check selecting an option from a dropdown list using 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 selecting an option from a dropdown 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"
|