🐛 Fix problem with swap components on grid

This commit is contained in:
alonso.torres 2024-10-22 16:12:58 +02:00
parent 16e1e01234
commit cd586c81ee
10 changed files with 2004 additions and 4 deletions

View file

@ -174,13 +174,13 @@ export class WorkspacePage extends BaseWebSocketPage {
}
async clickLeafLayer(name, clickOptions = {}) {
const layer = this.layers.getByText(name);
const layer = this.layers.getByText(name).first();
await layer.click(clickOptions);
}
async clickToggableLayer(name, clickOptions = {}) {
const layer = this.layers
.getByTestId("layer-item")
.getByTestId("layer-row")
.filter({ has: this.page.getByText(name) });
await layer.getByRole("button").click(clickOptions);
}