@camunda/e2e-test-suite 0.0.1062 → 0.0.1063

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.
@@ -59,9 +59,18 @@ class ModelerHomePage {
59
59
  this.modelerPageBanner = page.getByRole('banner', {
60
60
  name: 'Camunda Modeler',
61
61
  });
62
- this.createNewProjectButton = page.getByRole('button', {
62
+ // Hub renamed this button to "Create project" on both the classic and the
63
+ // design-system shell. The legacy label is kept so the flow still works
64
+ // against Modeler builds where the rename has not shipped yet. exact:true
65
+ // keeps the new label off the split button's "Create project options".
66
+ this.createNewProjectButton = page
67
+ .getByRole('button', {
63
68
  name: 'New project',
64
- });
69
+ })
70
+ .or(page.getByRole('button', {
71
+ name: 'Create project',
72
+ exact: true,
73
+ }));
65
74
  this.projectNameInput = page.locator('[data-test="editable-input"]');
66
75
  this.formNameInput = page.locator('[data-test="editable-input"]');
67
76
  this.idpApplicationNameInput = page.getByPlaceholder('New IDP Application');
@@ -55,9 +55,18 @@ class ModelerHomePage {
55
55
  this.modelerPageBanner = page.getByRole('banner', {
56
56
  name: 'Camunda Modeler',
57
57
  });
58
- this.createNewProjectButton = page.getByRole('button', {
58
+ // Hub renamed this button to "Create project" on both the classic and the
59
+ // design-system shell. The legacy label is kept so the flow still works
60
+ // against Modeler builds where the rename has not shipped yet. exact:true
61
+ // keeps the new label off the split button's "Create project options".
62
+ this.createNewProjectButton = page
63
+ .getByRole('button', {
59
64
  name: 'New project',
60
- });
65
+ })
66
+ .or(page.getByRole('button', {
67
+ name: 'Create project',
68
+ exact: true,
69
+ }));
61
70
  this.projectNameInput = page.locator('[data-test="editable-input"]');
62
71
  this.formNameInput = page.locator('[data-test="editable-input"]');
63
72
  this.idpApplicationNameInput = page.getByPlaceholder('New IDP Application');
@@ -59,9 +59,18 @@ class ModelerHomePage {
59
59
  this.modelerPageBanner = page.getByRole('banner', {
60
60
  name: 'Camunda Modeler',
61
61
  });
62
- this.createNewProjectButton = page.getByRole('button', {
62
+ // Hub renamed this button to "Create project" on both the classic and the
63
+ // design-system shell. The legacy label is kept so the flow still works
64
+ // against Modeler builds where the rename has not shipped yet. exact:true
65
+ // keeps the new label off the split button's "Create project options".
66
+ this.createNewProjectButton = page
67
+ .getByRole('button', {
63
68
  name: 'New project',
64
- });
69
+ })
70
+ .or(page.getByRole('button', {
71
+ name: 'Create project',
72
+ exact: true,
73
+ }));
65
74
  this.projectNameInput = page.locator('[data-test="editable-input"]');
66
75
  this.formNameInput = page.locator('[data-test="editable-input"]');
67
76
  this.idpApplicationNameInput = page.getByPlaceholder('New IDP Application');
@@ -53,9 +53,18 @@ class ModelerHomePage {
53
53
  this.modelerPageBanner = page.getByRole('banner', {
54
54
  name: 'Camunda Modeler',
55
55
  });
56
- this.createNewProjectButton = page.getByRole('button', {
56
+ // Hub renamed this button to "Create project" on both the classic and the
57
+ // design-system shell. The legacy label is kept so the flow still works
58
+ // against Modeler builds where the rename has not shipped yet. exact:true
59
+ // keeps the new label off the split button's "Create project options".
60
+ this.createNewProjectButton = page
61
+ .getByRole('button', {
57
62
  name: 'New project',
58
- });
63
+ })
64
+ .or(page.getByRole('button', {
65
+ name: 'Create project',
66
+ exact: true,
67
+ }));
59
68
  this.projectNameInput = page.locator('[data-test="editable-input"]');
60
69
  this.formNameInput = page.locator('[data-test="editable-input"]');
61
70
  this.idpApplicationNameInput = page.getByPlaceholder('New IDP Application');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.1062",
3
+ "version": "0.0.1063",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",