Skip to content

Commit 9802f94

Browse files
committed
test(37943): refactor page objets
1 parent ef56e1e commit 9802f94

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

hivemq-edge-frontend/cypress/pages/Workspace/WorkspacePage.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,16 @@ export class WorkspacePage extends ShellPage {
2727
},
2828
}
2929

30+
canvasToolbar = {
31+
get expandButton() {
32+
return cy.getByTestId('toolbox-search-expand')
33+
},
34+
35+
get collapseButton() {
36+
return cy.getByTestId('toolbox-search-collapse')
37+
},
38+
}
39+
3040
layoutControls = {
3141
get panel() {
3242
return cy.getByTestId('layout-controls-panel')
@@ -45,7 +55,7 @@ export class WorkspacePage extends ShellPage {
4555
},
4656

4757
get optionsButton() {
48-
return cy.get('button[aria-label="Layout options"]')
58+
return cy.getByTestId('workspace-layout-options')
4959
},
5060

5161
presetsMenu: {

0 commit comments

Comments
 (0)