mirror of
https://github.com/penpot/penpot.git
synced 2025-06-11 20:31:39 +02:00
🐛 Fix problem moving layout to frame
This commit is contained in:
parent
8825e9f80b
commit
f88bb4e204
9 changed files with 492 additions and 16 deletions
|
@ -102,6 +102,13 @@ export class WorkspacePage extends BaseWebSocketPage {
|
|||
await this.page.mouse.up();
|
||||
}
|
||||
|
||||
async moveSelectionToShape(name) {
|
||||
await this.page.locator('rect.viewport-selrect').hover();
|
||||
await this.page.mouse.down();
|
||||
await this.viewport.getByTestId(name).first().hover({ force: true });
|
||||
await this.page.mouse.up();
|
||||
}
|
||||
|
||||
async clickLeafLayer(name, clickOptions = {}) {
|
||||
const layer = this.layers.getByText(name);
|
||||
await layer.click(clickOptions);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue