|
|
|
@ -44,127 +44,127 @@ test.describe.parallel('Whiteboard tools - visual regression', () => {
|
|
|
|
|
|
|
|
|
|
test('Draw rectangle', async ({ browser, context, page }) => {
|
|
|
|
|
const drawRectangle = new DrawRectangle(browser, context);
|
|
|
|
|
await drawRectangle.initModPage(page, true, { customMeetingId: 'draw_rectangle_meeting', joinParameter: hidePresentationToast });
|
|
|
|
|
await drawRectangle.initUserPage(true, context, { joinParameter: hidePresentationToast });
|
|
|
|
|
await drawRectangle.initModPage(page, true, { customMeetingId: 'draw_rectangle_meeting', createParameter: hidePresentationToast });
|
|
|
|
|
await drawRectangle.initUserPage(true, context, { createParameter: hidePresentationToast });
|
|
|
|
|
await drawRectangle.test();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
test('Draw ellipse', async ({ browser, context, page }) => {
|
|
|
|
|
const drawEllipse = new DrawEllipse(browser, context);
|
|
|
|
|
await drawEllipse.initModPage(page, true, { customMeetingId: 'draw_ellipse_meeting', joinParameter: hidePresentationToast });
|
|
|
|
|
await drawEllipse.initUserPage(true, context, { joinParameter: hidePresentationToast });
|
|
|
|
|
await drawEllipse.initModPage(page, true, { customMeetingId: 'draw_ellipse_meeting', createParameter: hidePresentationToast });
|
|
|
|
|
await drawEllipse.initUserPage(true, context, { createParameter: hidePresentationToast });
|
|
|
|
|
await drawEllipse.test();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
test('Draw triangle', async ({ browser, context, page }) => {
|
|
|
|
|
const drawTriangle = new DrawTriangle(browser, context);
|
|
|
|
|
await drawTriangle.initModPage(page, true, { customMeetingId: 'draw_triangle_meeting', joinParameter: hidePresentationToast });
|
|
|
|
|
await drawTriangle.initUserPage(true, context, { joinParameter: hidePresentationToast });
|
|
|
|
|
await drawTriangle.initModPage(page, true, { customMeetingId: 'draw_triangle_meeting', createParameter: hidePresentationToast });
|
|
|
|
|
await drawTriangle.initUserPage(true, context, { createParameter: hidePresentationToast });
|
|
|
|
|
await drawTriangle.test();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
test('Draw line', async ({ browser, context, page }) => {
|
|
|
|
|
const drawLine = new DrawLine(browser, context);
|
|
|
|
|
await drawLine.initModPage(page, true, { customMeetingId: 'draw_line_meeting', joinParameter: hidePresentationToast });
|
|
|
|
|
await drawLine.initUserPage(true, context, { joinParameter: hidePresentationToast });
|
|
|
|
|
await drawLine.initModPage(page, true, { customMeetingId: 'draw_line_meeting', createParameter: hidePresentationToast });
|
|
|
|
|
await drawLine.initUserPage(true, context, { createParameter: hidePresentationToast });
|
|
|
|
|
await drawLine.test();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
test('Draw with pencil', async ({ browser, context, page }) => {
|
|
|
|
|
const drawPencil = new DrawPencil(browser, context);
|
|
|
|
|
await drawPencil.initModPage(page, true, { customMeetingId: 'draw_pencil_meeting', joinParameter: hidePresentationToast });
|
|
|
|
|
await drawPencil.initUserPage(true, context, { joinParameter: hidePresentationToast });
|
|
|
|
|
await drawPencil.initModPage(page, true, { customMeetingId: 'draw_pencil_meeting', createParameter: hidePresentationToast });
|
|
|
|
|
await drawPencil.initUserPage(true, context, { createParameter: hidePresentationToast });
|
|
|
|
|
await drawPencil.test();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
test('Type text', async ({ browser, context, page }) => {
|
|
|
|
|
const drawText = new DrawText(browser, context);
|
|
|
|
|
await drawText.initModPage(page, true, { customMeetingId: 'draw_text_meeting', joinParameter: hidePresentationToast });
|
|
|
|
|
await drawText.initUserPage(true, context, { joinParameter: hidePresentationToast });
|
|
|
|
|
await drawText.initModPage(page, true, { customMeetingId: 'draw_text_meeting', createParameter: hidePresentationToast });
|
|
|
|
|
await drawText.initUserPage(true, context, { createParameter: hidePresentationToast });
|
|
|
|
|
await drawText.test();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
test('Create sticky note', async ({ browser, context, page }) => {
|
|
|
|
|
const drawStickyNote = new DrawStickyNote(browser, context);
|
|
|
|
|
await drawStickyNote.initModPage(page, true, { customMeetingId: 'draw_sticky_meeting', joinParameter: hidePresentationToast });
|
|
|
|
|
await drawStickyNote.initUserPage(true, context, { joinParameter: hidePresentationToast });
|
|
|
|
|
await drawStickyNote.initModPage(page, true, { customMeetingId: 'draw_sticky_meeting', createParameter: hidePresentationToast });
|
|
|
|
|
await drawStickyNote.initUserPage(true, context, { createParameter: hidePresentationToast });
|
|
|
|
|
await drawStickyNote.test();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
test('Pan', async ({ browser, context, page }) => {
|
|
|
|
|
const pan = new Pan(browser, context);
|
|
|
|
|
await pan.initModPage(page, true, { customMeetingId: 'draw_line_meeting', joinParameter: hidePresentationToast });
|
|
|
|
|
await pan.initUserPage(true, context, { joinParameter: hidePresentationToast });
|
|
|
|
|
await pan.initModPage(page, true, { customMeetingId: 'draw_line_meeting', createParameter: hidePresentationToast });
|
|
|
|
|
await pan.initUserPage(true, context, { createParameter: hidePresentationToast });
|
|
|
|
|
await pan.test();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
test('Eraser', async ({ browser, context, page }) => {
|
|
|
|
|
const eraser = new Eraser(browser, context);
|
|
|
|
|
await eraser.initModPage(page, true, { customMeetingId: 'draw_line_meeting', joinParameter: hidePresentationToast });
|
|
|
|
|
await eraser.initUserPage(true, context, { joinParameter: hidePresentationToast });
|
|
|
|
|
await eraser.initModPage(page, true, { customMeetingId: 'draw_line_meeting', createParameter: hidePresentationToast });
|
|
|
|
|
await eraser.initUserPage(true, context, { createParameter: hidePresentationToast });
|
|
|
|
|
await eraser.test();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
test('Draw arrow', async ({ browser, context, page }) => {
|
|
|
|
|
const drawArrow = new DrawArrow(browser, context);
|
|
|
|
|
await drawArrow.initModPage(page, true, { customMeetingId: 'draw_line_meeting', joinParameter: hidePresentationToast });
|
|
|
|
|
await drawArrow.initUserPage(true, context, { joinParameter: hidePresentationToast });
|
|
|
|
|
await drawArrow.initModPage(page, true, { customMeetingId: 'draw_line_meeting', createParameter: hidePresentationToast });
|
|
|
|
|
await drawArrow.initUserPage(true, context, { createParameter: hidePresentationToast });
|
|
|
|
|
await drawArrow.test();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
test('Delete drawing', async ({ browser, context, page }) => {
|
|
|
|
|
const deleteDrawing = new DeleteDrawing(browser, context);
|
|
|
|
|
await deleteDrawing.initModPage(page, true, { customMeetingId: 'draw_line_meeting', joinParameter: hidePresentationToast });
|
|
|
|
|
await deleteDrawing.initUserPage(true, context, { joinParameter: hidePresentationToast });
|
|
|
|
|
await deleteDrawing.initModPage(page, true, { customMeetingId: 'draw_line_meeting', createParameter: hidePresentationToast });
|
|
|
|
|
await deleteDrawing.initUserPage(true, context, { createParameter: hidePresentationToast });
|
|
|
|
|
await deleteDrawing.test();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
test('Undo drawing', async ({ browser, context, page }) => {
|
|
|
|
|
const undoDrawing = new UndoDrawing(browser, context);
|
|
|
|
|
await undoDrawing.initModPage(page, true, { customMeetingId: 'draw_line_meeting', joinParameter: hidePresentationToast });
|
|
|
|
|
await undoDrawing.initUserPage(true, context, { joinParameter: hidePresentationToast });
|
|
|
|
|
await undoDrawing.initModPage(page, true, { customMeetingId: 'draw_line_meeting', createParameter: hidePresentationToast });
|
|
|
|
|
await undoDrawing.initUserPage(true, context, { createParameter: hidePresentationToast });
|
|
|
|
|
await undoDrawing.test();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
test('Redo drawing', async ({ browser, context, page }) => {
|
|
|
|
|
const redoDrawing = new RedoDrawing(browser, context);
|
|
|
|
|
await redoDrawing.initModPage(page, true, { customMeetingId: 'draw_line_meeting', joinParameter: hidePresentationToast });
|
|
|
|
|
await redoDrawing.initUserPage(true, context, { joinParameter: hidePresentationToast });
|
|
|
|
|
await redoDrawing.initModPage(page, true, { customMeetingId: 'draw_line_meeting', createParameter: hidePresentationToast });
|
|
|
|
|
await redoDrawing.initUserPage(true, context, { createParameter: hidePresentationToast });
|
|
|
|
|
await redoDrawing.test();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
test('Change color', async ({ browser, context, page }) => {
|
|
|
|
|
const changeColor = new ChangeStyles(browser, context);
|
|
|
|
|
await changeColor.initModPage(page, true, { customMeetingId: 'draw_line_meeting', joinParameter: hidePresentationToast });
|
|
|
|
|
await changeColor.initUserPage(true, context, { joinParameter: hidePresentationToast });
|
|
|
|
|
await changeColor.initModPage(page, true, { customMeetingId: 'draw_line_meeting', createParameter: hidePresentationToast });
|
|
|
|
|
await changeColor.initUserPage(true, context, { createParameter: hidePresentationToast });
|
|
|
|
|
await changeColor.changingColor();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
test('Fill drawing', async ({ browser, context, page }) => {
|
|
|
|
|
const fillDrawing = new ChangeStyles(browser, context);
|
|
|
|
|
await fillDrawing.initModPage(page, true, { customMeetingId: 'draw_line_meeting', joinParameter: hidePresentationToast });
|
|
|
|
|
await fillDrawing.initUserPage(true, context, { joinParameter: hidePresentationToast });
|
|
|
|
|
await fillDrawing.initModPage(page, true, { customMeetingId: 'draw_line_meeting', createParameter: hidePresentationToast });
|
|
|
|
|
await fillDrawing.initUserPage(true, context, { createParameter: hidePresentationToast });
|
|
|
|
|
await fillDrawing.fillDrawing();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
test('Dash drawing', async ({ browser, context, page }) => {
|
|
|
|
|
const dashDrawing = new ChangeStyles(browser, context);
|
|
|
|
|
await dashDrawing.initModPage(page, true, { customMeetingId: 'draw_line_meeting', joinParameter: hidePresentationToast });
|
|
|
|
|
await dashDrawing.initUserPage(true, context, { joinParameter: hidePresentationToast });
|
|
|
|
|
await dashDrawing.initModPage(page, true, { customMeetingId: 'draw_line_meeting', createParameter: hidePresentationToast });
|
|
|
|
|
await dashDrawing.initUserPage(true, context, { createParameter: hidePresentationToast });
|
|
|
|
|
await dashDrawing.dashDrawing();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
test('Size drawing', async ({ browser, context, page }) => {
|
|
|
|
|
const sizeDrawing = new ChangeStyles(browser, context);
|
|
|
|
|
await sizeDrawing.initModPage(page, true, { customMeetingId: 'draw_line_meeting', joinParameter: hidePresentationToast });
|
|
|
|
|
await sizeDrawing.initUserPage(true, context, { joinParameter: hidePresentationToast });
|
|
|
|
|
await sizeDrawing.initModPage(page, true, { customMeetingId: 'draw_line_meeting', createParameter: hidePresentationToast });
|
|
|
|
|
await sizeDrawing.initUserPage(true, context, { createParameter: hidePresentationToast });
|
|
|
|
|
await sizeDrawing.sizeDrawing();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
test('Real time text typing', async ({ browser, context, page }) => {
|
|
|
|
|
const realTimeText = new RealTimeText(browser, context);
|
|
|
|
|
await realTimeText.initModPage(page, true, { customMeetingId: 'draw_line_meeting', joinParameter: hidePresentationToast });
|
|
|
|
|
await realTimeText.initUserPage(true, context, { joinParameter: hidePresentationToast });
|
|
|
|
|
await realTimeText.initModPage(page, true, { customMeetingId: 'draw_line_meeting', createParameter: hidePresentationToast });
|
|
|
|
|
await realTimeText.initUserPage(true, context, { createParameter: hidePresentationToast });
|
|
|
|
|
await realTimeText.realTimeTextTyping();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|