🐛 Fix problem moving layout to frame

This commit is contained in:
alonso.torres 2024-06-10 16:03:07 +02:00 committed by Alejandro Alonso
parent c15c3b14ee
commit d48e486668
8 changed files with 492 additions and 15 deletions

View file

@ -117,6 +117,13 @@ export class WorkspacePage extends BaseWebSocketPage {
await pagesToggle.click();
}
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);