diff --git a/bigbluebutton-tests/playwright/core/elements.js b/bigbluebutton-tests/playwright/core/elements.js index 0bd13e43f691..fe9491c2569d 100644 --- a/bigbluebutton-tests/playwright/core/elements.js +++ b/bigbluebutton-tests/playwright/core/elements.js @@ -472,6 +472,7 @@ exports.wbColorRed = 'button[id="TD-Styles-Color-Swatch-red"]'; exports.wbFillDrawing = 'button[id="TD-Styles-Fill"]'; exports.wbDashDotted = 'div[id="TD-Styles-Dash-dotted"]'; exports.wbSizeLarge = 'div[id="TD-Styles-Dash-large"]'; +exports.wbPaste = 'button[id="TD-ContextMenu-Paste"]'; // About modal exports.showAboutModalButton = 'li[data-test="aboutModal"]'; diff --git a/bigbluebutton-tests/playwright/whiteboard/draw.js b/bigbluebutton-tests/playwright/whiteboard/draw.js index 0496383f834a..0f44baf634be 100644 --- a/bigbluebutton-tests/playwright/whiteboard/draw.js +++ b/bigbluebutton-tests/playwright/whiteboard/draw.js @@ -16,6 +16,11 @@ class Draw extends Page { const shapes1 = await this.getOuterHtmlDrawn(); const wbBox = await this.getElementBoundingBox(e.whiteboard); + + await this.page.mouse.click(wbBox.x + 0.4 * wbBox.width, wbBox.y + 0.4 * wbBox.height, { button: 'right' }); + const pasteLocator = this.page.locator(e.wbPaste); + await expect(pasteLocator).toBeVisible(); + await this.page.mouse.move(wbBox.x + 0.3 * wbBox.width, wbBox.y + 0.3 * wbBox.height); await this.page.mouse.down(); await this.page.mouse.move(wbBox.x + 0.7 * wbBox.width, wbBox.y + 0.7 * wbBox.height); diff --git a/bigbluebutton-tests/playwright/whiteboard/whiteboard.spec.js b/bigbluebutton-tests/playwright/whiteboard/whiteboard.spec.js index 0fb16e86723c..3e5d591e229a 100644 --- a/bigbluebutton-tests/playwright/whiteboard/whiteboard.spec.js +++ b/bigbluebutton-tests/playwright/whiteboard/whiteboard.spec.js @@ -27,7 +27,7 @@ test.describe.parallel('Whiteboard @ci', () => { const draw = new Draw(browser, page); await draw.init(true, true); await draw.test(); - }) + }); test('Give Additional Whiteboard Access', async ({ browser, context, page }) => { const multiusers = new MultiUsers(browser, context);