webship-js 1.0.41 → 1.0.43
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 +8 -8
- package/.github/workflows/github-actions.yml +4 -4
- package/.gitlab-ci.yml +4 -5
- package/README.md +3 -3
- package/bitbucket-pipelines.yml +12 -18
- package/examples/test--then--i-should-see-text-in-table-row.html +232 -0
- package/examples/test--when--i-click-text-in-table-row.html +178 -0
- package/examples/test--when--i-scroll-left-right-functionality.html +207 -0
- package/package.json +10 -10
- package/steplist.js +1 -1
- package/tests/features/test--then--i-should-see-text-in-table-row.feature +96 -0
- package/tests/features/test--when--i-click-text-in-table-row.feature +37 -0
- package/tests/features/test--when--i-scroll-left-right.feature +48 -0
- package/tests/step-definitions/webship.js +360 -1
- package/lib/custom-hooks/before-after.js +0 -30
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset='utf-8'>
|
|
6
|
+
<title>Complete Horizontal Scroll Functionality Test</title>
|
|
7
|
+
<style>
|
|
8
|
+
body {
|
|
9
|
+
margin: 0;
|
|
10
|
+
padding: 20px;
|
|
11
|
+
font-family: Arial, sans-serif;
|
|
12
|
+
overflow-x: auto;
|
|
13
|
+
overflow-y: hidden;
|
|
14
|
+
white-space: nowrap;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.container,
|
|
18
|
+
.container input,
|
|
19
|
+
.container button {
|
|
20
|
+
font-size: 26px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.style {
|
|
24
|
+
font-size: 22px;
|
|
25
|
+
line-height: 30px;
|
|
26
|
+
border: 1px solid #ccc;
|
|
27
|
+
padding: 10px;
|
|
28
|
+
margin: 10px;
|
|
29
|
+
background-color: #f9f9f9;
|
|
30
|
+
display: inline-block;
|
|
31
|
+
width: 300px;
|
|
32
|
+
vertical-align: top;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.indicator {
|
|
36
|
+
font-size: 28px;
|
|
37
|
+
font-weight: bold;
|
|
38
|
+
color: #007bff;
|
|
39
|
+
padding: 15px;
|
|
40
|
+
margin: 10px;
|
|
41
|
+
border: 2px solid #007bff;
|
|
42
|
+
background-color: #e7f3ff;
|
|
43
|
+
display: none;
|
|
44
|
+
display: inline-block;
|
|
45
|
+
width: 400px;
|
|
46
|
+
vertical-align: top;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
#scrollable-container {
|
|
50
|
+
width: 1000px;
|
|
51
|
+
overflow-x: auto;
|
|
52
|
+
overflow-y: hidden;
|
|
53
|
+
border: 2px solid #333;
|
|
54
|
+
margin: 20px;
|
|
55
|
+
padding: 10px;
|
|
56
|
+
background-color: #f0f0f0;
|
|
57
|
+
display: inline-block;
|
|
58
|
+
vertical-align: top;
|
|
59
|
+
white-space: nowrap;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.scrollable-content {
|
|
63
|
+
width: 1600px;
|
|
64
|
+
height: 200px;
|
|
65
|
+
background: linear-gradient(to right, #ff9999, #99ff99, #9999ff);
|
|
66
|
+
padding: 20px;
|
|
67
|
+
position: relative;
|
|
68
|
+
display: inline-block;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.scroll-marker {
|
|
72
|
+
position: absolute;
|
|
73
|
+
font-size: 18px;
|
|
74
|
+
font-weight: bold;
|
|
75
|
+
background-color: rgba(255, 255, 255, 0.8);
|
|
76
|
+
padding: 5px 10px;
|
|
77
|
+
border-radius: 5px;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.scroll-marker.left {
|
|
81
|
+
left: 10px;
|
|
82
|
+
top: 10px;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.scroll-marker.right {
|
|
86
|
+
right: 10px;
|
|
87
|
+
bottom: 10px;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
#complete {
|
|
91
|
+
display: none;
|
|
92
|
+
font-size: 32px;
|
|
93
|
+
line-height: 40px;
|
|
94
|
+
color: #28a745;
|
|
95
|
+
font-weight: bold;
|
|
96
|
+
text-align: center;
|
|
97
|
+
padding: 20px;
|
|
98
|
+
border: 3px solid #28a745;
|
|
99
|
+
background-color: #d4edda;
|
|
100
|
+
margin: 20px;
|
|
101
|
+
width: 300px;
|
|
102
|
+
display: inline-block;
|
|
103
|
+
vertical-align: top;
|
|
104
|
+
position: absolute;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
#page-wrapper {
|
|
108
|
+
min-width: 4000px;
|
|
109
|
+
white-space: nowrap;
|
|
110
|
+
}
|
|
111
|
+
</style>
|
|
112
|
+
</head>
|
|
113
|
+
|
|
114
|
+
<body>
|
|
115
|
+
<div id="page-wrapper">
|
|
116
|
+
<h1 style="display:inline-block; vertical-align:top; margin-right: 20px;">Horizontal Scrolling Functionality Test Page</h1>
|
|
117
|
+
|
|
118
|
+
<!-- Indicators -->
|
|
119
|
+
<div id="basic-scroll-down" class="indicator">Basic scroll right works</div>
|
|
120
|
+
<div id="basic-scroll-up" class="indicator">Basic scroll left works</div>
|
|
121
|
+
<div id="custom-scroll-down" class="indicator">Custom scroll right works</div>
|
|
122
|
+
<div id="custom-scroll-up" class="indicator">Custom scroll left works</div>
|
|
123
|
+
<div id="scroll-to-top" class="indicator">Scroll to left works</div>
|
|
124
|
+
|
|
125
|
+
<!-- Main content -->
|
|
126
|
+
<div id="container" style="display:inline-block; vertical-align:top;">
|
|
127
|
+
<p class="style">This is the starting content of the page</p>
|
|
128
|
+
<!-- سيتم توليد Content section 1-30 تلقائيًا عبر JavaScript -->
|
|
129
|
+
|
|
130
|
+
<!-- Scroll to right end element (في آخر اليمين فعليًا) -->
|
|
131
|
+
<div id="complete">Scroll to right end works</div>
|
|
132
|
+
</div>
|
|
133
|
+
|
|
134
|
+
<!-- Scrollable element container -->
|
|
135
|
+
<div>
|
|
136
|
+
<h2 style="display:inline-block; vertical-align:top;">Scrollable Horizontal Container Test</h2>
|
|
137
|
+
<div id="scrollable-container">
|
|
138
|
+
<div class="scrollable-content">
|
|
139
|
+
<div class="scroll-marker left">Element scroll to left works</div>
|
|
140
|
+
<p style="display:inline-block;">This is a scrollable container with a lot of content inside.</p>
|
|
141
|
+
<p style="display:inline-block;">You can scroll horizontally.</p>
|
|
142
|
+
<div class="scroll-marker right">Element scroll to right works</div>
|
|
143
|
+
</div>
|
|
144
|
+
</div>
|
|
145
|
+
</div>
|
|
146
|
+
</div>
|
|
147
|
+
</body>
|
|
148
|
+
|
|
149
|
+
<script>
|
|
150
|
+
const container = document.getElementById("container");
|
|
151
|
+
|
|
152
|
+
// توليد 30 قسم لزيادة العرض الأفقي
|
|
153
|
+
for (var i = 1; i <= 30; i++) {
|
|
154
|
+
const section = document.createElement("p");
|
|
155
|
+
section.className = "style";
|
|
156
|
+
section.innerText = "Content section #" + i;
|
|
157
|
+
container.insertBefore(section, document.getElementById("complete"));
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
let scrollTimeout;
|
|
161
|
+
|
|
162
|
+
window.addEventListener('scroll', function () {
|
|
163
|
+
clearTimeout(scrollTimeout);
|
|
164
|
+
scrollTimeout = setTimeout(function () {
|
|
165
|
+
const scrollX = window.scrollX;
|
|
166
|
+
const windowWidth = window.innerWidth;
|
|
167
|
+
const documentWidth = document.documentElement.scrollWidth;
|
|
168
|
+
|
|
169
|
+
// إخفاء جميع المؤشرات
|
|
170
|
+
document.querySelectorAll('.indicator').forEach(el => el.style.display = 'none');
|
|
171
|
+
|
|
172
|
+
if (scrollX === 0) {
|
|
173
|
+
document.getElementById('scroll-to-top').style.display = 'inline-block';
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
if (scrollX + windowWidth >= documentWidth - 10) {
|
|
177
|
+
document.getElementById('basic-scroll-down').style.display = 'inline-block';
|
|
178
|
+
document.getElementById('complete').style.display = 'inline-block';
|
|
179
|
+
} else {
|
|
180
|
+
document.getElementById('complete').style.display = 'none';
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
if (scrollX >= 450 && scrollX <= 550) {
|
|
184
|
+
document.getElementById('custom-scroll-down').style.display = 'inline-block';
|
|
185
|
+
} else if (scrollX + windowWidth >= documentWidth - 50) {
|
|
186
|
+
if (window.lastScrollDirection === 'left') {
|
|
187
|
+
document.getElementById('custom-scroll-up').style.display = 'inline-block';
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
// تتبع الاتجاه
|
|
192
|
+
if (scrollX > (window.lastScrollX || 0)) {
|
|
193
|
+
window.lastScrollDirection = 'right';
|
|
194
|
+
} else {
|
|
195
|
+
window.lastScrollDirection = 'left';
|
|
196
|
+
}
|
|
197
|
+
window.lastScrollX = scrollX;
|
|
198
|
+
}, 100);
|
|
199
|
+
});
|
|
200
|
+
|
|
201
|
+
const scrollableContainer = document.getElementById('scrollable-container');
|
|
202
|
+
scrollableContainer.addEventListener('scroll', function () {
|
|
203
|
+
console.log('Scrollable container scrolled to (horizontal):', this.scrollLeft);
|
|
204
|
+
});
|
|
205
|
+
</script>
|
|
206
|
+
|
|
207
|
+
</html>
|
package/package.json
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webship-js",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.43",
|
|
4
4
|
"description": "Webship JS automated functional testing.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"directories": {
|
|
7
7
|
"test": "test"
|
|
8
8
|
},
|
|
9
9
|
"engines": {
|
|
10
|
-
"
|
|
11
|
-
"node": ">= 18.0"
|
|
10
|
+
"node": ">= 20.0"
|
|
12
11
|
},
|
|
13
12
|
"scripts": {
|
|
14
13
|
"test": "nightwatch --format @cucumber/pretty-formatter --format-options '{\"colorsEnabled\": true}' --format-options '{\"theme\": {\"feature keyword\":[\"bold\",\"blue\"],\"feature name\":[\"blue\",\"underline\"],\"feature description\":[\"blueBright\"],\"scenario keyword\":[\"bold\",\"magenta\"],\"scenario name\":[\"magenta\",\"underline\"],\"step keyword\":[\"bold\",\"green\"],\"step text\":[\"greenBright\",\"italic\"]}}' --format json:./tests/reports/cucumber_report.json; node generate-reports.js;",
|
|
@@ -28,23 +27,24 @@
|
|
|
28
27
|
},
|
|
29
28
|
"homepage": "https://github.com/webship/webship-js",
|
|
30
29
|
"dependencies": {
|
|
31
|
-
"nightwatch": "~3",
|
|
32
30
|
"@cucumber/cucumber": "*",
|
|
33
31
|
"@cucumber/pretty-formatter": "~1",
|
|
32
|
+
"argparse": "~2",
|
|
34
33
|
"args-parser": "~1",
|
|
35
|
-
"
|
|
34
|
+
"axios": "~1",
|
|
35
|
+
"chromedriver": "*",
|
|
36
|
+
"cucumber-html-reporter": "^6.0.0",
|
|
36
37
|
"eslint": "~8",
|
|
37
38
|
"eslint-config-airbnb-base": "~15",
|
|
38
39
|
"eslint-plugin-import": "~2",
|
|
40
|
+
"geckodriver": "*",
|
|
39
41
|
"lodash": "~4",
|
|
42
|
+
"nightwatch": "^3.12.2",
|
|
40
43
|
"webpack": "~5",
|
|
41
|
-
"chromedriver": "*",
|
|
42
|
-
"geckodriver": "*",
|
|
43
44
|
"webpack-cli": "~5",
|
|
44
|
-
"webpack-dev-server": "
|
|
45
|
-
"axios": "~1"
|
|
45
|
+
"webpack-dev-server": "^5.2.2"
|
|
46
46
|
},
|
|
47
47
|
"bin": {
|
|
48
48
|
"steplist": "./steplist.js"
|
|
49
49
|
}
|
|
50
|
-
}
|
|
50
|
+
}
|
package/steplist.js
CHANGED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
Feature: Assert text visibility in table rows
|
|
2
|
+
As a test automation engineer
|
|
3
|
+
I want to verify text content within specific table rows
|
|
4
|
+
So that I can validate data accuracy and proper display in tables
|
|
5
|
+
|
|
6
|
+
Background:
|
|
7
|
+
Given I am on "/test--then--i-should-see-text-in-table-row.html"
|
|
8
|
+
|
|
9
|
+
Scenario: Verify employee information is displayed correctly
|
|
10
|
+
Then I should see "Admin" in the "John Smith" row
|
|
11
|
+
And I should see "john.smith@company.com" in the "John Smith" row
|
|
12
|
+
And I should see "Engineering" in the "John Smith" row
|
|
13
|
+
And I should see "Active" in the "John Smith" row
|
|
14
|
+
And I should see "$85,000" in the "John Smith" row
|
|
15
|
+
|
|
16
|
+
Scenario: Verify different employee roles are displayed
|
|
17
|
+
Then I should see "User" in the "Jane Doe" row
|
|
18
|
+
And I should see "Manager" in the "Bob Johnson" row
|
|
19
|
+
And I should see "User" in the "Alice Cooper" row
|
|
20
|
+
And I should not see "Admin" in the "Jane Doe" row
|
|
21
|
+
And I should not see "Admin" in the "Bob Johnson" row
|
|
22
|
+
|
|
23
|
+
Scenario: Verify employee status visibility
|
|
24
|
+
Then I should see "Active" in the "John Smith" row
|
|
25
|
+
And I should see "Active" in the "Jane Doe" row
|
|
26
|
+
And I should see "On Leave" in the "Bob Johnson" row
|
|
27
|
+
And I should see "Inactive" in the "Alice Cooper" row
|
|
28
|
+
And I should not see "Inactive" in the "John Smith" row
|
|
29
|
+
And I should not see "Active" in the "Alice Cooper" row
|
|
30
|
+
|
|
31
|
+
Scenario: Verify product inventory information
|
|
32
|
+
Then I should see "Wireless Headphones" in the "WH-2024-001" row
|
|
33
|
+
And I should see "$199.99" in the "Wireless Headphones" row
|
|
34
|
+
And I should see "150" in the "Wireless Headphones" row
|
|
35
|
+
And I should see "In Stock" in the "Wireless Headphones" row
|
|
36
|
+
And I should not see "Out of Stock" in the "Wireless Headphones" row
|
|
37
|
+
|
|
38
|
+
Scenario: Verify low stock and out of stock products
|
|
39
|
+
Then I should see "Low Stock" in the "Gaming Mouse" row
|
|
40
|
+
And I should see "5" in the "Gaming Mouse" row
|
|
41
|
+
And I should see "Out of Stock" in the "Office Chair" row
|
|
42
|
+
And I should see "0" in the "Office Chair" row
|
|
43
|
+
And I should not see "In Stock" in the "Gaming Mouse" row
|
|
44
|
+
And I should not see "In Stock" in the "Office Chair" row
|
|
45
|
+
|
|
46
|
+
Scenario: Verify order status information
|
|
47
|
+
Then I should see "Completed" in the "ORD-2024-001" row
|
|
48
|
+
And I should see "Michael Chen" in the "ORD-2024-001" row
|
|
49
|
+
And I should see "Processing" in the "ORD-2024-002" row
|
|
50
|
+
And I should see "Sarah Wilson" in the "ORD-2024-002" row
|
|
51
|
+
And I should see "Cancelled" in the "ORD-2024-003" row
|
|
52
|
+
And I should see "Shipped" in the "ORD-2024-004" row
|
|
53
|
+
|
|
54
|
+
Scenario: Verify negative assertions for order status
|
|
55
|
+
Then I should not see "Processing" in the "ORD-2024-001" row
|
|
56
|
+
And I should not see "Completed" in the "ORD-2024-002" row
|
|
57
|
+
And I should not see "Shipped" in the "ORD-2024-003" row
|
|
58
|
+
And I should not see "Cancelled" in the "ORD-2024-004" row
|
|
59
|
+
|
|
60
|
+
Scenario: Verify project information
|
|
61
|
+
Then I should see "Website Redesign" in the "John Smith" row
|
|
62
|
+
And I should see "75%" in the "Website Redesign" row
|
|
63
|
+
And I should see "High" in the "Website Redesign" row
|
|
64
|
+
And I should see "Mobile App" in the "Jane Doe" row
|
|
65
|
+
And I should see "45%" in the "Mobile App" row
|
|
66
|
+
And I should see "Medium" in the "Mobile App" row
|
|
67
|
+
|
|
68
|
+
Scenario: Verify project progress and priorities
|
|
69
|
+
Then I should see "90%" in the "API Integration" row
|
|
70
|
+
And I should see "High" in the "API Integration" row
|
|
71
|
+
And I should see "3 members" in the "API Integration" row
|
|
72
|
+
And I should not see "Low" in the "API Integration" row
|
|
73
|
+
And I should not see "100%" in the "API Integration" row
|
|
74
|
+
|
|
75
|
+
Scenario: Cross-table data verification
|
|
76
|
+
Then I should see "John Smith" in the "john.smith@company.com" row
|
|
77
|
+
And I should see "John Smith" in the "Website Redesign" row
|
|
78
|
+
And I should see "Jane Doe" in the "jane.doe@company.com" row
|
|
79
|
+
And I should see "Jane Doe" in the "Mobile App" row
|
|
80
|
+
And I should not see "Bob Johnson" in the "Website Redesign" row
|
|
81
|
+
And I should not see "Alice Cooper" in the "Mobile App" row
|
|
82
|
+
|
|
83
|
+
Scenario: Verify currency and numeric data
|
|
84
|
+
Then I should see "$199.99" in the "Wireless Headphones" row
|
|
85
|
+
And I should see "$79.99" in the "Gaming Mouse" row
|
|
86
|
+
And I should see "$299.99" in the "Office Chair" row
|
|
87
|
+
And I should see "$49.99" in the "Laptop Stand" row
|
|
88
|
+
And I should not see "$0.00" in the "Wireless Headphones" row
|
|
89
|
+
And I should not see "$999.99" in the "Gaming Mouse" row
|
|
90
|
+
|
|
91
|
+
Scenario: Verify date and timestamp information
|
|
92
|
+
Then I should see "2024-08-15" in the "ORD-2024-001" row
|
|
93
|
+
And I should see "2024-08-16" in the "ORD-2024-002" row
|
|
94
|
+
And I should see "2024-09-15" in the "Website Redesign" row
|
|
95
|
+
And I should see "2024-10-30" in the "Mobile App" row
|
|
96
|
+
And I should not see "2023-01-01" in the "ORD-2024-001" row
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
Feature: Click specific text in table rows
|
|
2
|
+
As a test automation engineer
|
|
3
|
+
I want to be able to click on specific text within table rows
|
|
4
|
+
So that I can interact with table actions based on row content
|
|
5
|
+
|
|
6
|
+
Background:
|
|
7
|
+
Given I am on "/test--when--i-click-text-in-table-row.html"
|
|
8
|
+
|
|
9
|
+
Scenario: Click Edit button in John Smith row
|
|
10
|
+
When I click "Edit" in the "John Smith" row
|
|
11
|
+
Then I should see "Performed (edit) action on (John Smith)" in the "#action-message" element by attr
|
|
12
|
+
|
|
13
|
+
Scenario: Click View Details button in Jane Doe row
|
|
14
|
+
When I click "View Details" in the "Jane Doe" row
|
|
15
|
+
Then I should see "Performed (view) action on (Jane Doe)" in the "#action-message" element by attr
|
|
16
|
+
|
|
17
|
+
Scenario: Click Delete button in Bob Johnson row
|
|
18
|
+
When I click "Delete" in the "Bob Johnson" row
|
|
19
|
+
Then I should see "Performed (delete) action on (Bob Johnson)" in the "#action-message" element by attr
|
|
20
|
+
|
|
21
|
+
Scenario: Click Download link in Product A row
|
|
22
|
+
When I click "Download" in the "Product A" row
|
|
23
|
+
Then I should see "Performed (download) action on (Product A)" in the "#action-message" element by attr
|
|
24
|
+
|
|
25
|
+
Scenario: Click View Details in Order #12345 row
|
|
26
|
+
When I click "View Details" in the "Order #12345" row
|
|
27
|
+
Then I should see "Performed (view) action on (Order #12345)" in the "#action-message" element by attr
|
|
28
|
+
|
|
29
|
+
Scenario: Click Track in Order #67890 row
|
|
30
|
+
When I click "Track" in the "Order #67890" row
|
|
31
|
+
Then I should see "Performed (track) action on (Order #67890)" in the "#action-message" element by attr
|
|
32
|
+
|
|
33
|
+
Scenario: Multiple table interaction
|
|
34
|
+
When I click "Edit" in the "John Smith" row
|
|
35
|
+
And I wait 1 second
|
|
36
|
+
And I click "Download" in the "Product B" row
|
|
37
|
+
Then I should see "Performed (download) action on (Product B)" in the "#action-message" element by attr
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
Feature: Complete scrolling functionality test
|
|
2
|
+
As a tester,
|
|
3
|
+
I want to test all scrolling step definitions to ensure they work correctly.
|
|
4
|
+
|
|
5
|
+
Scenario: Test basic scroll down functionality
|
|
6
|
+
Given I am on "/test--when--i-scroll-left-right-functionality.html"
|
|
7
|
+
When I scroll down
|
|
8
|
+
Then I should see "Basic scroll down works"
|
|
9
|
+
|
|
10
|
+
Scenario: Test basic scroll up functionality
|
|
11
|
+
Given I am on "/test--when--i-scroll-left-right-functionality.html"
|
|
12
|
+
When I scroll to the bottom
|
|
13
|
+
And I scroll up
|
|
14
|
+
Then I should see "Basic scroll up works"
|
|
15
|
+
|
|
16
|
+
Scenario: Test scroll down with custom value
|
|
17
|
+
Given I am on "/test--when--i-scroll-left-right-functionality.html"
|
|
18
|
+
When I scroll down 500
|
|
19
|
+
Then I should see "Custom scroll down works"
|
|
20
|
+
|
|
21
|
+
Scenario: Test scroll up with custom value
|
|
22
|
+
Given I am on "/test--when--i-scroll-left-right-functionality.html"
|
|
23
|
+
When I scroll to the bottom
|
|
24
|
+
And I scroll up 300
|
|
25
|
+
Then I should see "Custom scroll up works"
|
|
26
|
+
|
|
27
|
+
Scenario: Test scroll to top functionality
|
|
28
|
+
Given I am on "/test--when--i-scroll-left-right-functionality.html"
|
|
29
|
+
When I scroll to the bottom
|
|
30
|
+
And I scroll to top
|
|
31
|
+
Then I should see "Scroll to top works"
|
|
32
|
+
|
|
33
|
+
Scenario: Test scroll to bottom functionality
|
|
34
|
+
Given I am on "/test--when--i-scroll-left-right-functionality.html"
|
|
35
|
+
When I scroll to the bottom
|
|
36
|
+
Then I should see "Scroll to bottom works"
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
Scenario: Test scroll to top of element
|
|
40
|
+
Given I am on "/test--when--i-scroll-left-right-functionality.html"
|
|
41
|
+
When I scroll to bottom of "#scrollable-container"
|
|
42
|
+
And I scroll to top of "#scrollable-container"
|
|
43
|
+
Then I should see "Element scroll to top works"
|
|
44
|
+
|
|
45
|
+
Scenario: Test scroll to bottom of element
|
|
46
|
+
Given I am on "/test--when--i-scroll-left-right-functionality.html"
|
|
47
|
+
When I scroll to bottom of "#scrollable-container"
|
|
48
|
+
Then I should see "Element scroll to bottom works"
|