graphdb-workbench-tests 2.8.3 → 2.8.4-RC1
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.
|
@@ -277,4 +277,23 @@ describe('Namespaces', () => {
|
|
|
277
277
|
NamespaceSteps.getNamespacesTable().should('not.be.visible');
|
|
278
278
|
NamespaceSteps.getNoNamespacesAlert().should('be.visible');
|
|
279
279
|
});
|
|
280
|
+
|
|
281
|
+
it('Should got to the second page when click on second page button', () => {
|
|
282
|
+
// Given: I visited the namespaces view, and there is more than one page.
|
|
283
|
+
NamespaceSteps.getNamespacesPageElements()
|
|
284
|
+
// First page + three-page buttons + Last page.
|
|
285
|
+
.should('have.length', 5);
|
|
286
|
+
// The table with namespaces should contain the "geoext" namespace because it is among the first 10 namespaces (the paginator is set to 10 namespaces per page).
|
|
287
|
+
NamespaceSteps.getNamespace('geoext').should('be.visible');
|
|
288
|
+
// The namespace with the prefix "omgeo" should not exist because it is the fourteenth namespace and is only visible on the second page.
|
|
289
|
+
NamespaceSteps.verifyNamespaceNotExist('omgeo');
|
|
290
|
+
|
|
291
|
+
// When I go to the second page.
|
|
292
|
+
NamespaceSteps.getNamespacePageElement(2).click()
|
|
293
|
+
|
|
294
|
+
// Then I expect the "geoext" namespace to no longer be visible, as it is part of the first 10 namespaces.
|
|
295
|
+
NamespaceSteps.verifyNamespaceNotExist('geoext');
|
|
296
|
+
// The namespace with the prefix "omgeo" should now be visible because it appears on the second page.
|
|
297
|
+
NamespaceSteps.getNamespace('omgeo').should('be.visible');
|
|
298
|
+
});
|
|
280
299
|
});
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "graphdb-workbench-tests",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.4-RC1",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "graphdb-workbench-tests",
|
|
9
|
-
"version": "2.8.
|
|
9
|
+
"version": "2.8.4-RC1",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"devDependencies": {
|
|
12
12
|
"cypress": "^13.3.1",
|
package/package.json
CHANGED
|
@@ -77,6 +77,14 @@ export class NamespaceSteps {
|
|
|
77
77
|
return this.getNamespacesResultHeader().find('.namespaces-header-pagination .pagination');
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
+
static getNamespacesPageElements() {
|
|
81
|
+
return this.getNamespacesHeaderPagination().find('li ')
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
static getNamespacePageElement(index) {
|
|
85
|
+
return this.getNamespacesPageElements().eq(index);
|
|
86
|
+
}
|
|
87
|
+
|
|
80
88
|
static getNamespacesHeaderPaginationInfo() {
|
|
81
89
|
return this.getNamespacesResultHeader().find('.showing-info-namespaces');
|
|
82
90
|
}
|
|
@@ -123,6 +131,15 @@ export class NamespaceSteps {
|
|
|
123
131
|
.last();
|
|
124
132
|
}
|
|
125
133
|
|
|
134
|
+
static verifyNamespaceNotExist(prefix) {
|
|
135
|
+
return this.getNamespacesTable().find('.namespace')
|
|
136
|
+
.should('be.visible')
|
|
137
|
+
.find('.namespace-prefix')
|
|
138
|
+
.should('be.visible')
|
|
139
|
+
.contains(prefix)
|
|
140
|
+
.should('not.exist');
|
|
141
|
+
}
|
|
142
|
+
|
|
126
143
|
static getSelectNamespaceCheckbox(prefix) {
|
|
127
144
|
return this.getNamespace(prefix)
|
|
128
145
|
.should('be.visible')
|