mirror of
https://github.com/penpot/penpot.git
synced 2025-05-10 05:26:37 +02:00
🐛 Fix problem with swap components on grid
This commit is contained in:
parent
16e1e01234
commit
cd586c81ee
10 changed files with 2004 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue