graphdb-workbench-tests 3.5.0-TR5 → 3.5.0-TR7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphdb-workbench-tests",
3
- "version": "3.5.0-TR5",
3
+ "version": "3.5.0-TR7",
4
4
  "description": "Cypress tests for GraphDB workbench",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -40,12 +40,12 @@
40
40
  "@eslint/js": "^9.33.0",
41
41
  "babel-loader": "^10.0.0",
42
42
  "babel-plugin-istanbul": "^7.0.0",
43
- "cypress": "15.9.0",
43
+ "cypress": "^15.19.0",
44
44
  "cypress-failed-log": "^2.10.0",
45
45
  "cypress-file-upload": "^5.0.8",
46
46
  "cypress-localstorage-commands": "^2.2.7",
47
47
  "cypress-multi-reporters": "^2.0.5",
48
- "cypress-real-events": "^1.14.0",
48
+ "cypress-real-events": "^1.15.0",
49
49
  "cypress-terminal-report": "^7.2.0",
50
50
  "cypress-wait-until": "^3.0.2",
51
51
  "del": "^8.0.0",
@@ -7,7 +7,7 @@ export class SettingsSteps {
7
7
 
8
8
  static visitInProdMode() {
9
9
  cy.visit('/settings', {
10
- onBeforeLoad: (win) => {
10
+ onBeforeLoad: () => {
11
11
  EnvironmentStubs.stubWbProdMode();
12
12
  }
13
13
  });
@@ -15,7 +15,7 @@ export class SettingsSteps {
15
15
 
16
16
  static visitInDevMode() {
17
17
  cy.visit('/settings', {
18
- onBeforeLoad: (win) => {
18
+ onBeforeLoad: () => {
19
19
  EnvironmentStubs.stubWbDevMode();
20
20
  }
21
21
  });
@@ -71,7 +71,7 @@ export class SettingsSteps {
71
71
  }
72
72
 
73
73
  static getUserRolePanel() {
74
- return this.getSettingsPage().find('.user-role');
74
+ return this.getSettingsPage().find('.user-roles');
75
75
  }
76
76
 
77
77
  static getUserRoleRadioButton() {
@@ -234,7 +234,9 @@ export class UserAndAccessSteps {
234
234
  }
235
235
 
236
236
  static clickGraphqlAccessAny() {
237
- this.getRepositoryRightsLine('*')
237
+ cy.get('#user-repos')
238
+ .contains('Global (any data repository)')
239
+ .parent('tr')
238
240
  .find('.graphql')
239
241
  .realClick();
240
242
  }
@@ -245,6 +247,38 @@ export class UserAndAccessSteps {
245
247
  .realClick();
246
248
  }
247
249
 
250
+ static clickReadAccessAny() {
251
+ cy.get('#user-repos')
252
+ .contains('Global (any data repository)')
253
+ .parent('tr')
254
+ .find('.read')
255
+ .realClick();
256
+ }
257
+
258
+ static clickReadAccessRepo(repoName) {
259
+ cy.get('#user-repos')
260
+ .contains(repoName)
261
+ .parent('tr')
262
+ .find('.read')
263
+ .realClick();
264
+ }
265
+
266
+ static clickWriteAccessAny() {
267
+ cy.get('#user-repos')
268
+ .contains('Global (any data repository)')
269
+ .parent('tr')
270
+ .find('.write')
271
+ .realClick();
272
+ }
273
+
274
+ static clickWriteAccessRepo(repoName) {
275
+ cy.get('#user-repos')
276
+ .contains(repoName)
277
+ .parent('tr')
278
+ .find('.write')
279
+ .realClick();
280
+ }
281
+
248
282
  static findUserRowAlias(username, aliasName = 'userRow') {
249
283
  this.findUserInTable(username);
250
284
  cy.get('@user').as(aliasName);
@@ -257,7 +291,7 @@ export class UserAndAccessSteps {
257
291
 
258
292
  static getRepoLine(userRowAlias, matchText) {
259
293
  return cy.get(userRowAlias)
260
- .find('.repository-rights > div')
294
+ .find('.repository-rights-list')
261
295
  .filter(`:contains("${matchText}")`)
262
296
  }
263
297
 
@@ -305,7 +339,10 @@ export class UserAndAccessSteps {
305
339
  // ============= Read Access Toggles and Validations =============
306
340
 
307
341
  static getReadAccessForRepo(repoName) {
308
- return this.getRepositoryRightsLine(repoName)
342
+ const matchText = (repoName === '*') ? 'Global (any data repository)' : repoName;
343
+ return cy.get('#user-repos')
344
+ .contains(matchText)
345
+ .parent('tr')
309
346
  .find('.read')
310
347
  }
311
348
 
@@ -325,7 +362,10 @@ export class UserAndAccessSteps {
325
362
  // ============= Write Access Toggles and Validations =============
326
363
 
327
364
  static getWriteAccessForRepo(repoName) {
328
- return this.getRepositoryRightsLine(repoName)
365
+ const matchText = (repoName === '*') ? 'Global (any data repository)' : repoName;
366
+ return cy.get('#user-repos')
367
+ .contains(matchText)
368
+ .parent('tr')
329
369
  .find('.write')
330
370
  }
331
371
 
@@ -365,7 +405,10 @@ export class UserAndAccessSteps {
365
405
  // ============= GraphQL Access Toggles and Validations =============
366
406
 
367
407
  static getGraphqlAccessForRepo(repoName) {
368
- return this.getRepositoryRightsLine(repoName)
408
+ const matchText = (repoName === '*') ? 'Global (any data repository)' : repoName;
409
+ return cy.get('#user-repos')
410
+ .contains(matchText)
411
+ .parent('tr')
369
412
  .find('.graphql')
370
413
  }
371
414