🐛 Fix problem moving layout to frame

This commit is contained in:
alonso.torres 2024-06-10 16:03:07 +02:00
parent 8825e9f80b
commit f88bb4e204
9 changed files with 492 additions and 16 deletions

View file

@ -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);