🐛 Remove data-testid usage from shape

This commit is contained in:
Andrey Antukh 2024-10-09 13:19:51 +02:00 committed by Alonso Torres
parent dd220e228e
commit 35bcb082a0
2 changed files with 1 additions and 10 deletions

View file

@ -168,7 +168,7 @@ export class WorkspacePage extends BaseWebSocketPage {
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.viewport.getByText(name).first().hover({ force: true });
await this.page.mouse.up();
}