add qase test ids

This commit is contained in:
Staschalapko 2024-05-01 22:07:57 +03:00
parent 3ece8a92a5
commit 1fbbc47f4a
40 changed files with 476 additions and 438 deletions

View File

@ -8,6 +8,7 @@ const { DashboardPage } = require('../../pages/dashboard/dashboard-page');
const { AssetsPanelPage } = require('../../pages/workspace/assets-panel-page');
const { DesignPanelPage } = require('../../pages/workspace/design-panel-page');
const { updateTestResults } = require('./../../helpers/saveTestResults.js');
const { qase } = require('playwright-qase-reporter/dist/playwright');
const teamName = random().concat('autotest');
@ -29,7 +30,7 @@ test.afterEach(async ({ page },testInfo) => {
await updateTestResults(testInfo.status, testInfo.retry)
});
mainTest('AS-22 Filter Colors from All Assets drop-down', async ({ page }) => {
mainTest(qase(932,'AS-22 Filter Colors from All Assets drop-down'), async ({ page }) => {
const assetsPanelPage = new AssetsPanelPage(page);
await assetsPanelPage.clickAssetsTab();
await assetsPanelPage.selectTypeFromAllAssetsDropdown('Colors');
@ -49,7 +50,7 @@ test.describe(() => {
await mainPage.waitForChangeIsSaved();
});
mainTest('AS-23 File library colors - add', async ({ page }) => {
mainTest(qase(933,'AS-23 File library colors - add'), async ({ page }) => {
const assetsPanelPage = new AssetsPanelPage(page);
await assetsPanelPage.isColorAddedToFileLibraryColors('#ffff00');
await expect(assetsPanelPage.assetsPanel).toHaveScreenshot(
@ -57,7 +58,7 @@ test.describe(() => {
);
});
mainTest('AS-24 File library colors - edit', async ({ page }) => {
mainTest(qase(934,'AS-24 File library colors - edit'), async ({ page }) => {
const mainPage = new MainPage(page);
const assetsPanelPage = new AssetsPanelPage(page);
const colorPalettePopUp = new ColorPalettePage(page);
@ -72,7 +73,7 @@ test.describe(() => {
);
});
mainTest('AS-25 File library colors - rename', async ({ page }) => {
mainTest(qase(935,'AS-25 File library colors - rename'), async ({ page }) => {
const mainPage = new MainPage(page);
const assetsPanelPage = new AssetsPanelPage(page);
await assetsPanelPage.renameFileLibraryColor('test color');
@ -84,7 +85,7 @@ test.describe(() => {
);
});
mainTest('AS-26 File library colors - delete', async ({ page }) => {
mainTest(qase(936,'AS-26 File library colors - delete'), async ({ page }) => {
const mainPage = new MainPage(page);
const assetsPanelPage = new AssetsPanelPage(page);
await assetsPanelPage.deleteFileLibraryColor();
@ -94,7 +95,7 @@ test.describe(() => {
await assetsPanelPage.isAssetsSectionNameDisplayed('Colors', '0');
});
mainTest('AS-27 File library colors - create group', async ({ page }) => {
mainTest(qase(937,'AS-27 File library colors - create group'), async ({ page }) => {
const mainPage = new MainPage(page);
const assetsPanelPage = new AssetsPanelPage(page);
await assetsPanelPage.createGroupFileLibraryAssets('Colors', 'Test Group');
@ -103,7 +104,7 @@ test.describe(() => {
await expect(assetsPanelPage.assetsPanel).toHaveScreenshot('group-colors.png');
});
mainTest('AS-29 File library colors - rename group', async ({ page }) => {
mainTest(qase(939,'AS-29 File library colors - rename group'), async ({ page }) => {
const mainPage = new MainPage(page);
const assetsPanelPage = new AssetsPanelPage(page);
await assetsPanelPage.createGroupFileLibraryAssets('Colors', 'Test Group');
@ -116,7 +117,7 @@ test.describe(() => {
);
});
mainTest('AS-32 File library colors- ungroup', async ({ page }) => {
mainTest(qase(942,'AS-32 File library colors- ungroup'), async ({ page }) => {
const mainPage = new MainPage(page);
const assetsPanelPage = new AssetsPanelPage(page);
await assetsPanelPage.createGroupFileLibraryAssets('Colors', 'Test Group');
@ -129,7 +130,7 @@ test.describe(() => {
);
});
mainTest('AS-34 File library colors - apply to element', async ({ page }) => {
mainTest(qase(944,'AS-34 File library colors - apply to element'), async ({ page }) => {
const mainPage = new MainPage(page);
const assetsPanelPage = new AssetsPanelPage(page);
await mainPage.clickCreateBoardButton();
@ -140,7 +141,7 @@ test.describe(() => {
await expect(mainPage.createdLayer).toHaveScreenshot('apply-color-to-board.png');
});
mainTest('AS-117 File library colors - apply to stroke', async ({ page }) => {
mainTest(qase(1027,'AS-117 File library colors - apply to stroke'), async ({ page }) => {
const mainPage = new MainPage(page);
const assetsPanelPage = new AssetsPanelPage(page);
const designPanelPage = new DesignPanelPage(page);

View File

@ -5,6 +5,7 @@ const { random } = require('../../helpers/string-generator');
const { TeamPage } = require('../../pages/dashboard/team-page');
const { DashboardPage } = require('../../pages/dashboard/dashboard-page');
const { updateTestResults } = require('./../../helpers/saveTestResults.js');
const { qase } = require('playwright-qase-reporter/dist/playwright');
const teamName = random().concat('autotest');
@ -26,7 +27,7 @@ test.afterEach(async ({ page }, testInfo) => {
await updateTestResults(testInfo.status, testInfo.retry)
});
mainTest('AS-110 Open panel main menu - help&info', async ({ page }) => {
mainTest(qase(1020,'AS-110 Open panel main menu - help&info'), async ({ page }) => {
const mainPage = new MainPage(page);
await mainPage.clickMainMenuButton();
await mainPage.clickHelpInfoMainMenuItem();
@ -40,7 +41,7 @@ mainTest('AS-110 Open panel main menu - help&info', async ({ page }) => {
await mainPage.isShortcutsPanelNotDisplayed();
});
mainTest('AS-115 Show/hide panel', async ({ page }) => {
mainTest(qase(1025,'AS-115 Show/hide panel'), async ({ page }) => {
const mainPage = new MainPage(page);
await mainPage.pressShortcutsPanelShortcut();
await mainPage.isShortcutsPanelDisplayed();

View File

@ -6,6 +6,7 @@ const { TeamPage } = require('../../pages/dashboard/team-page');
const { DashboardPage } = require('../../pages/dashboard/dashboard-page');
const { AssetsPanelPage } = require('../../pages/workspace/assets-panel-page');
const { updateTestResults } = require('./../../helpers/saveTestResults.js');
const { qase } = require('playwright-qase-reporter/dist/playwright');
const teamName = random().concat('autotest');
@ -27,14 +28,14 @@ test.afterEach(async ({ page },testInfo) => {
await updateTestResults(testInfo.status, testInfo.retry)
});
mainTest('AS-37 Filter Typographies from All Assets drop-down', async ({ page }) => {
mainTest(qase(947,'AS-37 Filter Typographies from All Assets drop-down'), async ({ page }) => {
const assetsPanelPage = new AssetsPanelPage(page);
await assetsPanelPage.clickAssetsTab();
await assetsPanelPage.selectTypeFromAllAssetsDropdown('Typographies');
await assetsPanelPage.isAssetsSectionNameDisplayed('Typographies', '0');
});
mainTest('AS-38 Typographic styles - add from Assets panel', async ({ page }) => {
mainTest(qase(948,'AS-38 Typographic styles - add from Assets panel'), async ({ page }) => {
const mainPage = new MainPage(page);
const assetsPanelPage = new AssetsPanelPage(page);
await assetsPanelPage.clickAssetsTab();
@ -65,7 +66,7 @@ test.describe(() => {
await assetsPanelPage.minimizeFileLibraryTypography();
});
mainTest('AS-40 Typographic styles - edit', async ({ page }) => {
mainTest(qase(950,'AS-40 Typographic styles - edit'), async ({ page }) => {
const mainPage = new MainPage(page);
const assetsPanelPage = new AssetsPanelPage(page);
await assetsPanelPage.editFileLibraryTypography();
@ -88,7 +89,7 @@ test.describe(() => {
);
});
mainTest('AS-41 Typographic styles - rename', async ({ page }) => {
mainTest(qase(951,'AS-41 Typographic styles - rename'), async ({ page }) => {
const mainPage = new MainPage(page);
const assetsPanelPage = new AssetsPanelPage(page);
await assetsPanelPage.renameFileLibraryTypography('Test Font');
@ -104,7 +105,7 @@ test.describe(() => {
);
});
mainTest('AS-42 Typographic styles - delete', async ({ page }) => {
mainTest(qase(952,'AS-42 Typographic styles - delete'), async ({ page }) => {
const mainPage = new MainPage(page);
const assetsPanelPage = new AssetsPanelPage(page);
await assetsPanelPage.deleteFileLibraryTypography();
@ -114,7 +115,7 @@ test.describe(() => {
);
});
mainTest('AS-43 Typographic styles - create group', async ({ page }) => {
mainTest(qase(953,'AS-43 Typographic styles - create group'), async ({ page }) => {
const mainPage = new MainPage(page);
const assetsPanelPage = new AssetsPanelPage(page);
await assetsPanelPage.createGroupFileLibraryAssets('Typographies', 'Test Group');
@ -125,7 +126,7 @@ test.describe(() => {
);
});
mainTest('AS-45 Typographic styles - rename group', async ({ page }) => {
mainTest(qase(955,'AS-45 Typographic styles - rename group'), async ({ page }) => {
const mainPage = new MainPage(page);
const assetsPanelPage = new AssetsPanelPage(page);
await assetsPanelPage.createGroupFileLibraryAssets('Typographies', 'Test Group');
@ -138,7 +139,7 @@ test.describe(() => {
);
});
mainTest('AS-48 Typographic styles - ungroup', async ({ page }) => {
mainTest(qase(958,'AS-48 Typographic styles - ungroup'), async ({ page }) => {
const mainPage = new MainPage(page);
const assetsPanelPage = new AssetsPanelPage(page);
await assetsPanelPage.createGroupFileLibraryAssets('Typographies', 'Test Group');
@ -152,7 +153,7 @@ test.describe(() => {
});
mainTest(
'AS-50 Typographic styles - apply style to text from Assets panel',
qase(960,'AS-50 Typographic styles - apply style to text from Assets panel'),
async ({ page, browserName }) => {
const mainPage = new MainPage(page);
const assetsPanelPage = new AssetsPanelPage(page);
@ -175,7 +176,7 @@ test.describe(() => {
);
mainTest(
'AS-54 Typographic styles - apply style to text from Typographies panel',
qase(964,'AS-54 Typographic styles - apply style to text from Typographies panel'),
async ({ page, browserName }) => {
const mainPage = new MainPage(page);
const assetsPanelPage = new AssetsPanelPage(page);

View File

@ -9,6 +9,7 @@ const { DesignPanelPage } = require('../../pages/workspace/design-panel-page');
const { LayersPanelPage } = require('../../pages/workspace/layers-panel-page');
const { ColorPalettePage } = require('../../pages/workspace/color-palette-page');
const { updateTestResults } = require('./../../helpers/saveTestResults.js');
const { qase } = require('playwright-qase-reporter/dist/playwright');
const teamName = random().concat('autotest');
@ -60,7 +61,7 @@ test.afterEach(async ({}, testInfo) => {
});
mainTest(
'PENPOT-1303 Check main components in Library backup',
qase(1303,'PENPOT-1303 Check main components in Library backup'),
async () => {
await mainPage.clickOnPageOnLayersPanel(false);
await expect(mainPage.viewport).toHaveScreenshot(
@ -70,7 +71,7 @@ mainTest(
);
mainTest(
'PENPOT-1370 Rename Library backup page',
qase(1370,'PENPOT-1370 Rename Library backup page'),
async () => {
await mainPage.clickOnPageOnLayersPanel(false);
await mainPage.renamePageViaRightClick('Test', false);
@ -82,7 +83,7 @@ mainTest(
);
mainTest(
'PENPOT-1371 Add/Delete main components from Library backup page',
qase(1371,'PENPOT-1371 Add/Delete main components from Library backup page'),
async () => {
await mainPage.clickOnPageOnLayersPanel(false);
await mainPage.createDefaultRectangleByCoordinates(200, 200);
@ -108,7 +109,7 @@ test.describe(() => {
});
mainTest(
'PENPOT-1372 Restore components, that were deleted from library backup',
qase(1372,'PENPOT-1372 Restore components, that were deleted from library backup'),
async ({ browserName }) => {
await mainPage.clickShortcutCtrlZ(browserName);
await expect(mainPage.viewport).toHaveScreenshot(
@ -119,7 +120,7 @@ test.describe(() => {
});
mainTest(
'PENPOT-1373 Delete Library backup page',
qase(1373,'PENPOT-1373 Delete Library backup page'),
async () => {
await mainPage.clickOnPageOnLayersPanel(false);
await mainPage.deleteSecondPageViaRightClick();
@ -132,7 +133,7 @@ mainTest(
);
mainTest(
'PENPOT-1374 Duplicate Library backup page',
qase(1374,'PENPOT-1374 Duplicate Library backup page'),
async () => {
await mainPage.clickOnPageOnLayersPanel(false);
await mainPage.duplicatePageViaRightClick(false);
@ -144,7 +145,7 @@ mainTest(
);
mainTest(
'PENPOT-1516 Check Library backup file in case of unpublishing a few shared libraries',
qase(1516,'PENPOT-1516 Check Library backup file in case of unpublishing a few shared libraries'),
async ({ page }, testInfo) => {
await testInfo.setTimeout(testInfo.timeout + 20000);

View File

@ -9,6 +9,7 @@ const { DesignPanelPage } = require('../../pages/workspace/design-panel-page');
const { LayersPanelPage } = require('../../pages/workspace/layers-panel-page');
const { ColorPalettePage } = require('../../pages/workspace/color-palette-page');
const { updateTestResults } = require('./../../helpers/saveTestResults.js');
const { qase } = require('playwright-qase-reporter/dist/playwright');
const teamName = random().concat('autotest');
@ -37,7 +38,7 @@ test.describe(() => {
});
mainTest(
'PENPOT-1457 Publish Shared Library from the Libraries popup (with assets)',
qase(1457,'PENPOT-1457 Publish Shared Library from the Libraries popup (with assets)'),
async () => {
await mainPage.createDefaultRectangleByCoordinates(200, 200);
await mainPage.waitForChangeIsSaved();
@ -60,7 +61,7 @@ test.describe(() => {
);
mainTest(
'PENPOT-1459 Publish Shared Library without any assets',
qase(1459,'PENPOT-1459 Publish Shared Library without any assets'),
async () => {
await assetsPanelPage.clickAssetsTab();
await assetsPanelPage.clickLibrariesButton();
@ -84,7 +85,7 @@ test.describe(() => {
test.describe(() => {
mainTest(
'PENPOT-1460 Canceling publish Shared Library',
qase(1460,'PENPOT-1460 Canceling publish Shared Library'),
async () => {
await assetsPanelPage.clickAssetsTab();
await assetsPanelPage.clickLibrariesButton();
@ -103,7 +104,7 @@ test.describe(() => {
});
mainTest(
'PENPOT-1458 Publish Shared Library from the dashboard (RMB) (with assets)',
qase(1458,'PENPOT-1458 Publish Shared Library from the dashboard (RMB) (with assets)'),
async () => {
await mainPage.createDefaultRectangleByCoordinates(200, 200);
await mainPage.waitForChangeIsSaved();
@ -121,7 +122,7 @@ mainTest(
);
mainTest(
'PENPOT-1466 Unpublish Shared Library which is not linked with any files (from dashboard)',
qase(1466,'PENPOT-1466 Unpublish Shared Library which is not linked with any files (from dashboard)'),
async () => {
await mainPage.createDefaultRectangleByCoordinates(200, 200);
await mainPage.createComponentViaRightClick();
@ -139,7 +140,7 @@ mainTest(
test.describe(() => {
mainTest(
'PENPOT-1467 Unpublish Shared Library which is not linked with any files (from Libraries popup)',
qase(1467,'PENPOT-1467 Unpublish Shared Library which is not linked with any files (from Libraries popup)'),
async () => {
await mainPage.createDefaultRectangleByCoordinates(200, 200);
await mainPage.createComponentViaRightClick();
@ -185,7 +186,7 @@ test.describe(() => {
});
mainTest(
'PENPOT-1468 Unpublish Shared Library which is linked with a few files (but both files do not used any assets yet)',
qase(1468,'PENPOT-1468 Unpublish Shared Library which is linked with a few files (but both files do not used any assets yet)'),
async () => {
await dashboardPage.createFileViaTitlePanel();
await assetsPanelPage.clickAssetsTab();
@ -231,7 +232,7 @@ test.describe(() => {
);
mainTest(
'PENPOT-1469 Unpublish Shared Library which is linked with a few files (both files use assets )',
qase(1469,'PENPOT-1469 Unpublish Shared Library which is linked with a few files (both files use assets )'),
async () => {
await dashboardPage.createFileViaTitlePanel();
await assetsPanelPage.clickAssetsTab();
@ -307,7 +308,7 @@ test.describe(() => {
});
mainTest(
'PENPOT-1474 Unlink Shared Library file from Libraries popup when assets are not used in working file',
qase(1474,'PENPOT-1474 Unlink Shared Library file from Libraries popup when assets are not used in working file'),
async () => {
await dashboardPage.createFileViaTitlePanel();
await assetsPanelPage.clickAssetsTab();
@ -334,7 +335,7 @@ test.describe(() => {
);
mainTest(
'PENPOT-1475 Unlink Shared Library file from Libraries popup when assets are used in working file',
qase(1475,'PENPOT-1475 Unlink Shared Library file from Libraries popup when assets are used in working file'),
async () => {
await dashboardPage.createFileViaTitlePanel();
await assetsPanelPage.clickAssetsTab();
@ -553,7 +554,7 @@ test.describe(() => {
});
mainTest(
'PENPOT-1092 Delete library which is used by a few files ( 1 library in a few files)',
qase(1092,'PENPOT-1092 Delete library which is used by a few files ( 1 library in a few files)'),
async () => {
await dashboardPage.deleteFileWithNameViaRightClick('New File 1');
await expect(dashboardPage.deleteFileModalWindow).toHaveScreenshot(
@ -599,7 +600,7 @@ test.describe(() => {
});
mainTest(
'PENPOT-1471 Remove Shared Library file which is not linked with any files (from dashboard)',
qase(1471,'PENPOT-1471 Remove Shared Library file which is not linked with any files (from dashboard)'),
async () => {
await mainPage.createDefaultRectangleByCoordinates(200, 200);
await mainPage.createComponentViaRightClick();
@ -621,7 +622,7 @@ test.describe(() => {
const team1 = teamName;
const team2 = random().concat('QA Test team 2');
mainTest('PENDOT-1540 Move library to a different team', async () => {
mainTest(qase(1540,'PENDOT-1540 Move library to a different team'), async () => {
await mainPage.createDefaultEllipseByCoordinates(200, 200);
await mainPage.createComponentViaRightClick();
await mainPage.waitForChangeIsSaved();
@ -683,7 +684,7 @@ test.describe(() => {
});
mainTest(
'PENPOT-1004 Search shared library (LIBRARIES pop-up)',
qase(1004,'PENPOT-1004 Search shared library (LIBRARIES pop-up)'),
async () => {
await assetsPanelPage.searchSharedLibraries('Whiteboarding & mapping kit');
await expect(assetsPanelPage.librariesModal).toHaveScreenshot(

View File

@ -8,6 +8,7 @@ const { random } = require('../../helpers/string-generator');
const { DesignPanelPage } = require('../../pages/workspace/design-panel-page');
const { AssetsPanelPage } = require('../../pages/workspace/assets-panel-page');
const { updateTestResults } = require('./../../helpers/saveTestResults.js');
const { qase } = require('playwright-qase-reporter/dist/playwright');
const teamName = random().concat('autotest');
@ -29,7 +30,7 @@ test.afterEach(async ({ page }, testInfo) => {
await updateTestResults(testInfo.status, testInfo.retry)
});
mainTest('CP-1 Open color picker from Stroke menu', async ({ page }) => {
mainTest(qase(1029,'CP-1 Open color picker from Stroke menu'), async ({ page }) => {
const mainPage = new MainPage(page);
const colorPalettePage = new ColorPalettePage(page);
const designPanelPage = new DesignPanelPage(page);
@ -38,7 +39,7 @@ mainTest('CP-1 Open color picker from Stroke menu', async ({ page }) => {
await colorPalettePage.isColorPalettePopUpOpened();
});
mainTest('CP-2 Open color picker from Fill menu', async ({ page }) => {
mainTest(qase(1030,'CP-2 Open color picker from Fill menu'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
const colorPalettePage = new ColorPalettePage(page);
@ -49,14 +50,14 @@ mainTest('CP-2 Open color picker from Fill menu', async ({ page }) => {
await colorPalettePage.isColorPalettePopUpOpened();
});
mainTest('CP-3 Open color picker from Canvas background menu', async ({ page }) => {
mainTest(qase(1031,'CP-3 Open color picker from Canvas background menu'), async ({ page }) => {
const designPanelPage = new DesignPanelPage(page);
const colorPalettePage = new ColorPalettePage(page);
await designPanelPage.clickCanvasBackgroundColorIcon();
await colorPalettePage.isColorPalettePopUpOpened();
});
mainTest('CP-7 Use Recent colors', async ({ page }) => {
mainTest(qase(1035,'CP-7 Use Recent colors'), async ({ page }) => {
const color1 = '#FF0000';
const color2 = '#B1B2B5';
const mainPage = new MainPage(page);
@ -80,7 +81,7 @@ mainTest('CP-7 Use Recent colors', async ({ page }) => {
await expect(mainPage.createdLayer).toHaveScreenshot('board-recent-color.png');
});
mainTest('CP-8 Use colors from File library', async ({ page }) => {
mainTest(qase(1036,'CP-8 Use colors from File library'), async ({ page }) => {
const mainPage = new MainPage(page);
const colorPalettePage = new ColorPalettePage(page);
const designPanelPage = new DesignPanelPage(page);
@ -102,7 +103,7 @@ mainTest('CP-8 Use colors from File library', async ({ page }) => {
);
});
mainTest('CP-17 Open Color palette from shortcut', async ({ page }) => {
mainTest(qase(1045,'CP-17 Open Color palette from shortcut'), async ({ page }) => {
const mainPage = new MainPage(page);
const colorPalettePage = new ColorPalettePage(page);
const designPanelPage = new DesignPanelPage(page);
@ -127,7 +128,7 @@ mainTest('CP-17 Open Color palette from shortcut', async ({ page }) => {
await mainPage.isColorsPaletteNotDisplayed();
});
mainTest('CP-18 Open Color palette from toolbar', async ({ page }) => {
mainTest(qase(1046,'CP-18 Open Color palette from toolbar'), async ({ page }) => {
const mainPage = new MainPage(page);
const colorPalettePage = new ColorPalettePage(page);
const designPanelPage = new DesignPanelPage(page);
@ -151,7 +152,7 @@ mainTest('CP-18 Open Color palette from toolbar', async ({ page }) => {
await mainPage.isColorsPaletteNotDisplayed();
});
mainTest('CP-20 Choose file library colors', async ({ page }) => {
mainTest(qase(1048,'CP-20 Choose file library colors'), async ({ page }) => {
const mainPage = new MainPage(page);
const colorPalettePage = new ColorPalettePage(page);
const assetsPanelPage = new AssetsPanelPage(page);
@ -181,7 +182,7 @@ mainTest('CP-20 Choose file library colors', async ({ page }) => {
});
mainTest(
'CP-21 Click any layer and change Fill color from palette',
qase(1049,'CP-21 Click any layer and change Fill color from palette'),
async ({ page }) => {
const mainPage = new MainPage(page);
const colorPalettePage = new ColorPalettePage(page);
@ -215,7 +216,7 @@ mainTest(
);
mainTest(
'CP-26 Open color picker from add or edit color in assets',
qase(1054,'CP-26 Open color picker from add or edit color in assets'),
async ({ page }) => {
const assetsPanelPage = new AssetsPanelPage(page);
const colorPalettePage = new ColorPalettePage(page);

View File

@ -8,6 +8,7 @@ const { LayersPanelPage } = require('../../../pages/workspace/layers-panel-page'
const { AssetsPanelPage } = require('../../../pages/workspace/assets-panel-page');
const { DesignPanelPage } = require('../../../pages/workspace/design-panel-page');
const { updateTestResults } = require('./../../../helpers/saveTestResults.js');
const { qase } = require('playwright-qase-reporter/dist/playwright');
const teamName = random().concat('autotest');
@ -31,7 +32,7 @@ test.afterEach(async ({ page }, testInfo) => {
await updateTestResults(testInfo.status, testInfo.retry)
});
mainTest('PENPOT-1497 Delete copy component from DEL button', async () => {
mainTest(qase(1497,'PENPOT-1497 Delete copy component from DEL button'), async () => {
await mainPage.createDefaultRectangleByCoordinates(200, 300);
await mainPage.createComponentViaRightClick();
await mainPage.waitForChangeIsSaved();

View File

@ -10,6 +10,7 @@ const { updateTestResults } = require('../../../helpers/saveTestResults.js');
const { InspectPanelPage } = require('../../../pages/workspace/inspect-panel-page');
const { AssetsPanelPage } = require('../../../pages/workspace/assets-panel-page');
const { ColorPalettePage } = require('../../../pages/workspace/color-palette-page');
const { qase } = require('playwright-qase-reporter/dist/playwright');
const teamName = random().concat('autotest');
const annotation = 'Test annotation for automation';
@ -55,7 +56,7 @@ test.describe(() => {
await mainPage.clickCreatedBoardTitleOnCanvas();
});
mainTest('PENPOT-1717 Create a component from empty Grid Board', async ({}) => {
mainTest(qase(1717,'PENPOT-1717 Create a component from empty Grid Board'), async ({}) => {
await mainPage.createComponentViaRightClick();
await mainPage.waitForChangeIsSaved();
await expect(mainPage.viewport).toHaveScreenshot('empty-board-component-with-grid-layout.png', {
@ -63,7 +64,7 @@ test.describe(() => {
});
});
mainTest('PENPOT-1724 Create a component from grid board with some element inside, edit component in grid layout section', async ({}) => {
mainTest(qase(1724,'PENPOT-1724 Create a component from grid board with some element inside, edit component in grid layout section'), async ({}) => {
await mainPage.createComponentViaRightClick();
await mainPage.waitForChangeIsSaved();
await mainPage.clickViewportOnce();
@ -77,7 +78,7 @@ test.describe(() => {
});
});
mainTest('PENPOT-1729 Move a component between pages', async ({page, context}) => {
mainTest(qase(1729,'PENPOT-1729 Move a component between pages'), async ({page, context}) => {
await context.grantPermissions(["clipboard-read", "clipboard-write"]);
await mainPage.createComponentViaRightClick();
await mainPage.waitForChangeIsSaved();
@ -94,7 +95,7 @@ test.describe(() => {
});
});
mainTest('PENPOT-1730 Restore main component', async ({browserName, context}) => {
mainTest(qase(1730,'PENPOT-1730 Restore main component'), async ({browserName, context}) => {
await context.grantPermissions(["clipboard-read", "clipboard-write"]);
await mainPage.createComponentViaRightClick();
await mainPage.clickViewportOnce();
@ -115,7 +116,7 @@ test.describe(() => {
);
});
mainTest('PENPOT-1731 Undo component editing and deleting', async ({ browserName }) => {
mainTest(qase(1731,'PENPOT-1731 Undo component editing and deleting'), async ({ browserName }) => {
await mainPage.createComponentViaRightClick();
await mainPage.waitForChangeIsSaved();
await designPanelPage.clickFillColorIcon();
@ -144,7 +145,7 @@ test.describe(() => {
});
});
mainTest('PENPOT-1732,1733,1734 Click "Show main component" in File2', async ({ page, browserName }) => {
mainTest(qase([1732,1733,1734],'PENPOT-1732,1733,1734 Click "Show main component" in File2'), async ({ page, browserName }) => {
await mainPage.createComponentViaRightClick();
await mainPage.waitForChangeIsSaved();
await mainPage.clickPencilBoxButton();
@ -198,7 +199,7 @@ test.describe(() => {
await mainPage.waitForChangeIsSaved();
});
mainTest('PENPOT-1718 Copy-paste component, that was created from grid board', async ({browserName, context}) => {
mainTest(qase(1718,'PENPOT-1718 Copy-paste component, that was created from grid board'), async ({browserName, context}) => {
await context.grantPermissions(["clipboard-read", "clipboard-write"]);
await mainPage.clickViewportOnce();
await mainPage.clickCreatedBoardTitleOnCanvas();
@ -212,13 +213,13 @@ test.describe(() => {
);
});
mainTest('PENPOT-1719 Create a component from grid board with some element inside', async ({}) => {
mainTest(qase(1719,'PENPOT-1719 Create a component from grid board with some element inside'), async ({}) => {
await expect(mainPage.viewport).toHaveScreenshot('board-component-with-grid-layout-with-rectangle.png', {
mask: [mainPage.guides],
});
});
mainTest('PENPOT-1728 Duplicate component, that was created from grid board', async ({browserName}) => {
mainTest(qase(1728,'PENPOT-1728 Duplicate component, that was created from grid board'), async ({browserName}) => {
await mainPage.clickShortcutCtrlD(browserName);
await expect(mainPage.viewport).toHaveScreenshot('board-component-with-grid-layout-duplicated.png', {
mask: [mainPage.guides],
@ -251,7 +252,7 @@ test.describe(() => {
await designPanelPage.changeAxisXandYForLayer('500', '100');
});
mainTest('PENPOT-1720 Change the copy component and click "Update main component"', async ({}) => {
mainTest(qase(1720,'PENPOT-1720 Change the copy component and click "Update main component"'), async ({}) => {
await designPanelPage.changeHeightAndWidthForLayer('25', '25');
await layersPanelPage.updateMainComponentViaRightClick();
await mainPage.waitForChangeIsSaved();
@ -260,7 +261,7 @@ test.describe(() => {
});
});
mainTest('PENPOT-1721 Change the copy component and click "Show main component"', async ({}) => {
mainTest(qase(1721,'PENPOT-1721 Change the copy component and click "Show main component"'), async ({}) => {
await designPanelPage.clickFillColorIcon();
await colorPalettePage.setHex('#000000');
await mainPage.waitForChangeIsSaved();
@ -271,7 +272,7 @@ test.describe(() => {
});
});
mainTest('PENPOT-1722 Change the copy component and click "Reset overrides"', async ({}) => {
mainTest(qase(1722,'PENPOT-1722 Change the copy component and click "Reset overrides"'), async ({}) => {
await designPanelPage.clickFillColorIcon();
await colorPalettePage.setHex('#000000');
await mainPage.waitForChangeIsSaved();
@ -282,7 +283,7 @@ test.describe(() => {
});
});
mainTest('PENPOT-1723 Change the copy component and click "Detach instance"', async ({}) => {
mainTest(qase(1723,'PENPOT-1723 Change the copy component and click "Detach instance"'), async ({}) => {
await designPanelPage.changeHeightAndWidthForLayer('25', '25');
await mainPage.waitForChangeIsSaved();
await layersPanelPage.detachInstanceCopyComponentViaRightClick();
@ -320,7 +321,7 @@ test.describe(() => {
});
mainTest('PENPOT-1725,1752 Create annotation for component, that already has annotation', async ({}) => {
mainTest(qase([1725,1752],'PENPOT-1725,1752 Create annotation for component, that already has annotation'), async ({}) => {
await designPanelPage.isAnnotationAddedToComponent(annotation);
await expect(designPanelPage.componentBlockOnDesignTab).toHaveScreenshot(
'component-annotation.png',
@ -337,7 +338,7 @@ test.describe(() => {
);
});
mainTest('PENPOT-1726 Edit annotation for component', async ({}) => {
mainTest(qase(1726,'PENPOT-1726 Edit annotation for component'), async ({}) => {
await designPanelPage.clickOnEditAnnotation();
await designPanelPage.editAnnotationForComponent('Edit annotation');
await designPanelPage.waitForChangeIsSaved();
@ -347,7 +348,7 @@ test.describe(() => {
);
});
mainTest('PENPOT-1727 Delete annotation for component', async ({}) => {
mainTest(qase(1727,'PENPOT-1727 Delete annotation for component'), async ({}) => {
await designPanelPage.clickOnDeleteAnnotation();
await designPanelPage.confirmDeleteAnnotation();
await designPanelPage.waitForChangeIsSaved();

View File

@ -11,6 +11,7 @@ const { InspectPanelPage } = require('../../../pages/workspace/inspect-panel-pag
const { BasePage } = require('../../../pages/base-page');
const { ColorPalettePage } = require('../../../pages/workspace/color-palette-page');
const { updateTestResults } = require('./../../../helpers/saveTestResults.js');
const { qase } = require('playwright-qase-reporter/dist/playwright');
const teamName = random().concat('autotest');
const annotation = 'Test annotation for automation';
@ -47,7 +48,7 @@ test.describe(() => {
await mainPage.waitForChangeIsSaved();
});
mainTest('Show in assets panel option from Design tab', async ({ page }) => {
mainTest(qase(1452,'Show in assets panel option from Design tab'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await mainPage.clickOnLayerOnCanvas();
@ -59,7 +60,7 @@ test.describe(() => {
});
mainTest(
'Show in assets panel option from component context menu',
qase(0,'Show in assets panel option from component context menu'),
async ({ page }) => {
const mainPage = new MainPage(page);
await mainPage.showInAssetsPanelRightClick();
@ -69,7 +70,7 @@ test.describe(() => {
},
);
mainTest('Create annotation with valid text', async ({ page }) => {
mainTest(qase(1419,'Create annotation with valid text'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await mainPage.clickOnLayerOnCanvas();
@ -83,7 +84,7 @@ test.describe(() => {
);
});
mainTest('Create annotation from context menu', async ({ page }) => {
mainTest(qase(1423,'Create annotation from context menu'), async ({ page }) => {
const designPanelPage = new DesignPanelPage(page);
await designPanelPage.createAnnotationRightClick();
await designPanelPage.addAnnotationForComponent(annotation);
@ -94,7 +95,7 @@ test.describe(() => {
);
});
mainTest('Cancel annotation creation and accept', async ({ page }) => {
mainTest(qase(1424,'Cancel annotation creation and accept'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await mainPage.clickOnLayerOnCanvas();
@ -106,7 +107,7 @@ test.describe(() => {
);
});
mainTest('Edit annotation with valid text', async ({ page }) => {
mainTest(qase(1425,'Edit annotation with valid text'), async ({ page }) => {
const newAnnotation = 'Edit annotation';
const designPanelPage = new DesignPanelPage(page);
await designPanelPage.createAnnotationRightClick();
@ -122,7 +123,7 @@ test.describe(() => {
);
});
mainTest('Delete annotation', async ({ page }) => {
mainTest(qase(1427,'Delete annotation'), async ({ page }) => {
const designPanelPage = new DesignPanelPage(page);
await designPanelPage.createAnnotationRightClick();
await designPanelPage.addAnnotationForComponent(annotation);
@ -136,7 +137,7 @@ test.describe(() => {
);
});
mainTest('Annotation on Inspect tab', async ({ page }) => {
mainTest(qase(1618,'Annotation on Inspect tab'), async ({ page }) => {
const designPanelPage = new DesignPanelPage(page);
const inspectPanelPage = new InspectPanelPage(page);
await designPanelPage.createAnnotationRightClick();
@ -149,7 +150,7 @@ test.describe(() => {
);
});
mainTest('Duplicate main component', async ({ page }) => {
mainTest(qase(1454,'Duplicate main component'), async ({ page }) => {
const mainPage = new MainPage(page);
const layersPanelPage = new LayersPanelPage(page);
const assetsPanelPage = new AssetsPanelPage(page);
@ -167,7 +168,7 @@ test.describe(() => {
);
});
mainTest('Check Show main component option', async ({ page }) => {
mainTest(qase(1455,'Check Show main component option'), async ({ page }) => {
const mainPage = new MainPage(page);
const assetsPanelPage = new AssetsPanelPage(page);
await assetsPanelPage.clickAssetsTab();
@ -177,7 +178,7 @@ test.describe(() => {
});
mainTest(
'Check annotation applies for copies and inspect tab',
qase(1428,'Check annotation applies for copies and inspect tab'),
async ({ page }) => {
const mainPage = new MainPage(page);
const layersPanelPage = new LayersPanelPage(page);
@ -202,7 +203,7 @@ test.describe(() => {
},
);
mainTest('Components - rename group', async ({ page }) => {
mainTest(qase(1285,'Components - rename group'), async ({ page }) => {
const mainPage = new MainPage(page);
const assetsPanelPage = new AssetsPanelPage(page);
await assetsPanelPage.clickAssetsTab();
@ -217,7 +218,7 @@ test.describe(() => {
);
});
mainTest('Components - ungroup', async ({ page }) => {
mainTest(qase(1286,'Components - ungroup'), async ({ page }) => {
const mainPage = new MainPage(page);
const assetsPanelPage = new AssetsPanelPage(page);
await assetsPanelPage.clickAssetsTab();
@ -232,7 +233,7 @@ test.describe(() => {
);
});
mainTest('Components - change view list tile', async ({ page }) => {
mainTest(qase(1676,'Components - change view (list/tile)'), async ({ page }) => {
const mainPage = new MainPage(page);
const assetsPanelPage = new AssetsPanelPage(page);
await mainPage.createDefaultEllipseByCoordinates(100, 200, true);
@ -262,7 +263,7 @@ test.describe(() => {
});
mainTest(
'PENPOT-1399 Impossible to create annotation for copy component',
qase(1399,'PENPOT-1399 Impossible to create annotation for copy component'),
async ({ page }) => {
const mainPage = new MainPage(page);
const layersPanelPage = new LayersPanelPage(page);
@ -288,7 +289,7 @@ test.describe(() => {
});
mainTest(
'Check created component group of shapes on Assets tab',
qase(1274,'Check created component (group of shapes) on Assets tab'),
async ({ page }) => {
const mainPage = new MainPage(page);
const layersPanelPage = new LayersPanelPage(page);
@ -315,7 +316,7 @@ mainTest(
},
);
mainTest('Create a group with component and check its name', async () => {
mainTest(qase(1621,'Create a group with component and check its name'), async () => {
const groupName = 'Test Group';
await mainPage.createDefaultBoardByCoordinates(200, 300);
await mainPage.createComponentViaRightClick();
@ -331,7 +332,7 @@ mainTest('Create a group with component and check its name', async () => {
await expect(mainPage.viewport).toHaveScreenshot('component-group-canvas.png');
});
mainTest('Rename component with valid name', async () => {
mainTest(qase(1453,'Rename component with valid name'), async () => {
const newName = 'Renamed ellipse name';
await mainPage.createDefaultEllipseByCoordinates(400, 600);
await mainPage.createComponentViaRightClick();
@ -347,7 +348,7 @@ mainTest('Rename component with valid name', async () => {
);
});
mainTest('Filter Components from All Assets drop-down', async () => {
mainTest(qase(966,'Filter Components from All Assets drop-down'), async () => {
await assetsPanelPage.clickAssetsTab();
await assetsPanelPage.selectTypeFromAllAssetsDropdown('Components');
await assetsPanelPage.isAssetsSectionNameDisplayed('Components', '0');
@ -366,7 +367,7 @@ test.describe(() => {
});
mainTest(
'PENPOT-1411 Click Show main component on copy',
qase(1411,'PENPOT-1411 Click Show main component on copy'),
async () => {
await layersPanelPage.clickCopyComponentOnLayersTab();
await basePage.showMainComponentViaRightClick();
@ -378,7 +379,7 @@ test.describe(() => {
);
mainTest(
'PENPOT-1412 Change copy and click Reset overrides',
qase(1412,'PENPOT-1412 Change copy and click Reset overrides'),
async () => {
await layersPanelPage.clickCopyComponentOnLayersTab();
await designPanelPage.changeHeightAndWidthForLayer('100', '150');
@ -391,7 +392,7 @@ test.describe(() => {
);
mainTest(
'PENPOT-1413 Change copy color, change main color, right-click copy and click Reset overrides',
qase(1413,'PENPOT-1413 Change copy color, change main color, right-click copy and click Reset overrides'),
async () => {
await layersPanelPage.clickCopyComponentOnLayersTab();
await designPanelPage.clickAddFillButton();
@ -427,7 +428,7 @@ test.describe(() => {
);
mainTest(
'PENPOT-1300 Restore main component via context menu',
qase(1300,'PENPOT-1300 Restore main component via context menu'),
async () => {
await layersPanelPage.clickMainComponentOnLayersTab();
await layersPanelPage.deleteMainComponentViaRightClick();
@ -442,7 +443,7 @@ test.describe(() => {
);
mainTest(
'PENPOT-1296 Detach instance from context menu',
qase(1296,'PENPOT-1296 Detach instance from context menu'),
async () => {
await layersPanelPage.clickCopyComponentOnLayersTab();
await layersPanelPage.detachInstanceCopyComponentViaRightClick();
@ -456,7 +457,7 @@ test.describe(() => {
);
mainTest(
'PENPOT-1297 Detach instance from "Design" tab',
qase(1297,'PENPOT-1297 Detach instance from "Design" tab'),
async () => {
await layersPanelPage.clickCopyComponentOnLayersTab();
await designPanelPage.clickOnComponentMenuButton();
@ -472,7 +473,7 @@ test.describe(() => {
);
mainTest(
'PENPOT-1298 Reset overrides via context menu',
qase(1298,'PENPOT-1298 Reset overrides via context menu'),
async () => {
await layersPanelPage.clickCopyComponentOnLayersTab();
await designPanelPage.changeHeightAndWidthForLayer('100', '150');
@ -525,7 +526,7 @@ test.describe(() => {
});
mainTest(
'PENPOT-1416 Create 2 copies of main component. Change color of copy 1, change color of copy 2, right-click copy 2 and click "Update main component"',
qase(1416,'PENPOT-1416 Create 2 copies of main component. Change color of copy 1, change color of copy 2, right-click copy 2 and click "Update main component"'),
async () => {
await layersPanelPage.clickCopyComponentOnLayersTab();
await designPanelPage.clickAddFillButton();
@ -555,7 +556,7 @@ test.describe(() => {
);
mainTest(
'PENPOT-1417 Create a copy from main, change color of copy, create a copy from copy, change color of main',
qase(1417,'PENPOT-1417 Create a copy from main, change color of copy, create a copy from copy, change color of main'),
async () => {
await mainPage.duplicateLayerViaRightClick();
await mainPage.waitForChangeIsSaved();

View File

@ -9,6 +9,7 @@ const { AssetsPanelPage } = require('../../../pages/workspace/assets-panel-page'
const { DesignPanelPage } = require('../../../pages/workspace/design-panel-page');
const { updateTestResults } = require('./../../../helpers/saveTestResults.js');
const { ColorPalettePage } = require('../../../pages/workspace/color-palette-page');
const { qase } = require('playwright-qase-reporter/dist/playwright');
const teamName = random().concat('autotest');
@ -29,7 +30,7 @@ test.afterEach(async ({ page }, testInfo) => {
await updateTestResults(testInfo.status, testInfo.retry)
});
mainTest('Create component shape', async ({ page }) => {
mainTest(qase(1273,'Create component shape'), async ({ page }) => {
const mainPage = new MainPage(page);
const assetsPanelPage = new AssetsPanelPage(page);
await mainPage.createDefaultRectangleByCoordinates(200, 300);
@ -47,7 +48,7 @@ mainTest('Create component shape', async ({ page }) => {
});
mainTest(
'Drag a component from assets tab and drop into workspace',
qase(1312,'Drag a component from assets tab and drop into workspace'),
async ({ page, browserName }) => {
if (browserName !== 'webkit') {
const mainPage = new MainPage(page);
@ -71,7 +72,7 @@ mainTest(
);
mainTest(
'Create component from rectangle by clicking CTRL K',
qase(1431,'Create component from rectangle by clicking CTRL K'),
async ({ page, browserName }) => {
const mainPage = new MainPage(page);
const layersPanelPage = new LayersPanelPage(page);
@ -95,7 +96,7 @@ mainTest(
);
mainTest(
'Create component from ellipse by clicking CTRL K',
qase(1432,'Create component from ellipse by clicking CTRL K'),
async ({ page, browserName }) => {
const mainPage = new MainPage(page);
const layersPanelPage = new LayersPanelPage(page);
@ -119,7 +120,7 @@ mainTest(
);
mainTest(
'Create component from board by clicking CTRL K',
qase(1433,'Create component from board by clicking CTRL K'),
async ({ page, browserName }) => {
const mainPage = new MainPage(page);
const layersPanelPage = new LayersPanelPage(page);
@ -143,7 +144,7 @@ mainTest(
);
mainTest(
'Create component from text by right-click',
qase(1434,'Create component from text by right-click'),
async ({ page, browserName }) => {
const mainPage = new MainPage(page);
const layersPanelPage = new LayersPanelPage(page);
@ -166,7 +167,7 @@ mainTest(
},
);
mainTest('Create component from image by right-click', async ({ page }) => {
mainTest(qase(1435,'Create component from image by right-click'), async ({ page }) => {
const mainPage = new MainPage(page);
const layersPanelPage = new LayersPanelPage(page);
const assetsPanelPage = new AssetsPanelPage(page);
@ -189,7 +190,7 @@ mainTest('Create component from image by right-click', async ({ page }) => {
);
});
mainTest('Create component from path by right-click', async ({ page }) => {
mainTest(qase(1436,'Create component from path by right-click'), async ({ page }) => {
const mainPage = new MainPage(page);
const layersPanelPage = new LayersPanelPage(page);
const assetsPanelPage = new AssetsPanelPage(page);
@ -208,7 +209,7 @@ mainTest('Create component from path by right-click', async ({ page }) => {
);
});
mainTest('Create component from curve by right-click', async ({ page }) => {
mainTest(qase(1437,'Create component from curve by right-click'), async ({ page }) => {
const mainPage = new MainPage(page);
const layersPanelPage = new LayersPanelPage(page);
const assetsPanelPage = new AssetsPanelPage(page);
@ -229,7 +230,7 @@ mainTest('Create component from curve by right-click', async ({ page }) => {
);
});
mainTest('Undo component', async ({ page, browserName }) => {
mainTest(qase(1291,'Undo component'), async ({ page, browserName }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await mainPage.createDefaultRectangleByCoordinates(200, 300);
@ -245,7 +246,7 @@ mainTest('Undo component', async ({ page, browserName }) => {
});
mainTest(
'Create multiple components from rectangle and ellipse',
qase(1530,'Create multiple components from rectangle and ellipse'),
async ({ page }) => {
const mainPage = new MainPage(page);
const layersPanelPage = new LayersPanelPage(page);
@ -272,7 +273,7 @@ mainTest(
);
mainTest(
'Create multiple components from text, board and image',
qase(1531,'Create multiple components from text, board and image'),
async ({ page, browserName }) => {
const mainPage = new MainPage(page);
const layersPanelPage = new LayersPanelPage(page);
@ -301,7 +302,7 @@ mainTest(
},
);
mainTest('PENPOT-1751 Grouping component copies',
mainTest(qase(1751,'PENPOT-1751 Grouping component copies'),
async ( {page}, testInfo) => {
await testInfo.setTimeout(testInfo.timeout + 20000);
@ -329,7 +330,7 @@ mainTest('PENPOT-1751 Grouping component copies',
},
);
mainTest('PENPOT-1749 Change group shadow color',
mainTest(qase(1749,'PENPOT-1749 Change group shadow color'),
async ( {page}, testInfo) => {
await testInfo.setTimeout(testInfo.timeout + 20000);

View File

@ -7,6 +7,7 @@ const { TeamPage } = require('../../../pages/dashboard/team-page');
const { LayersPanelPage } = require('../../../pages/workspace/layers-panel-page');
const { AssetsPanelPage } = require('../../../pages/workspace/assets-panel-page');
const { updateTestResults } = require('./../../../helpers/saveTestResults.js');
const { qase } = require('playwright-qase-reporter/dist/playwright');
const teamName = random().concat('autotest');
@ -27,7 +28,7 @@ test.afterEach(async ({ page }, testInfo) => {
await updateTestResults(testInfo.status, testInfo.retry)
});
mainTest('Undo deleted component', async ({ page, browserName }) => {
mainTest(qase(1295,'Undo deleted component'), async ({ page, browserName }) => {
const mainPage = new MainPage(page);
await mainPage.createDefaultRectangleByCoordinates(200, 300);
await mainPage.createComponentViaRightClick();
@ -40,7 +41,7 @@ mainTest('Undo deleted component', async ({ page, browserName }) => {
);
});
mainTest('Delete component Assets tab', async ({ page }) => {
mainTest(qase(1456,'Delete component Assets tab'), async ({ page }) => {
const mainPage = new MainPage(page);
const assetsPanelPage = new AssetsPanelPage(page);
await mainPage.createDefaultRectangleByCoordinates(200, 300);
@ -57,7 +58,7 @@ mainTest('Delete component Assets tab', async ({ page }) => {
);
});
mainTest('Restore main component from context menu', async ({ page }) => {
mainTest(qase(1345,'Restore main component from context menu'), async ({ page }) => {
const mainPage = new MainPage(page);
const layersPanelPage = new LayersPanelPage(page);
const assetsPanelPage = new AssetsPanelPage(page);

View File

@ -9,6 +9,7 @@ const { ColorPalettePage } = require('../../../pages/workspace/color-palette-pag
const { DesignPanelPage } = require('../../../pages/workspace/design-panel-page');
const { AssetsPanelPage } = require('../../../pages/workspace/assets-panel-page');
const { updateTestResults } = require('./../../../helpers/saveTestResults.js');
const { qase } = require('playwright-qase-reporter/dist/playwright');
const teamName = random().concat('autotest');
@ -66,7 +67,7 @@ test.describe(() => {
});
mainTest(
'PENPOT-1503 Create flex board with main component and its copy, change direction',
qase(1503,'PENPOT-1503 Create flex board with main component and its copy, change direction'),
async () => {
await layersPanelPage.isLayoutIconVisibleOnLayer();
await mainPage.clickCreatedBoardTitleOnCanvas();
@ -78,7 +79,7 @@ test.describe(() => {
);
mainTest(
'PENPOT-1504 Create flex board with main component and its copy, change alingment',
qase(1504,'PENPOT-1504 Create flex board with main component and its copy, change alingment'),
async () => {
await layersPanelPage.isLayoutIconVisibleOnLayer();
await mainPage.clickCreatedBoardTitleOnCanvas();
@ -104,7 +105,7 @@ test.describe(() => {
});
mainTest(
'PENPOT-1511 Create component with 2 boards with components inside it. change paddings',
qase(1511,'PENPOT-1511 Create component with 2 boards with components inside it. change paddings'),
async ( {page}, testInfo) => {
await testInfo.setTimeout(testInfo.timeout + 20000);
@ -146,7 +147,7 @@ test.describe(() => {
);
mainTest(
'PENPOT-1514 Create component inside flex board, change alignment for element',
qase(1514,'PENPOT-1514 Create component inside flex board, change alignment for element'),
async () => {
await mainPage.createDefaultRectangleByCoordinates(200, 200, true);
await mainPage.createComponentViaRightClick();

View File

@ -9,6 +9,7 @@ const { ColorPalettePage } = require('../../../pages/workspace/color-palette-pag
const { DesignPanelPage } = require('../../../pages/workspace/design-panel-page');
const { AssetsPanelPage } = require('../../../pages/workspace/assets-panel-page');
const { updateTestResults } = require('./../../../helpers/saveTestResults.js');
const { qase } = require('playwright-qase-reporter/dist/playwright');
const teamName = random().concat('autotest');
@ -32,7 +33,7 @@ test.afterEach(async ({ page }, testInfo) => {
await updateTestResults(testInfo.status, testInfo.retry)
});
mainTest('Update main component', async () => {
mainTest(qase(1275,'Update main component'), async () => {
test.setTimeout(60000);
await mainPage.createDefaultRectangleByCoordinates(200, 300);
await mainPage.createComponentViaRightClick();
@ -55,7 +56,7 @@ mainTest('Update main component', async () => {
);
});
mainTest('Check copy and main component icons', async () => {
mainTest(qase(1306,'Check copy and main component icons'), async () => {
await mainPage.createDefaultRectangleByCoordinates(200, 300);
await mainPage.createComponentViaRightClick();
await mainPage.waitForChangeIsSaved();
@ -85,7 +86,7 @@ test.describe(() => {
});
mainTest(
'Create a component and 2 copies of it, change rotation of main',
qase(1438,'Create a component and 2 copies of it, change rotation of main'),
async () => {
await layersPanelPage.clickMainComponentOnLayersTab();
await designPanelPage.changeRotationForLayer('20');
@ -96,7 +97,7 @@ test.describe(() => {
);
mainTest(
'Create a component and 2 copies of it, change all corners of main',
qase(1440,'Create a component and 2 copies of it, change all corners of main'),
async () => {
const cornerValue = '45';
await layersPanelPage.clickMainComponentOnLayersTab();
@ -113,7 +114,7 @@ test.describe(() => {
);
mainTest(
"Create a component and 2 copies of it, change corners of main separate by using 'All corners'",
qase(1441,'Create a component and 2 copies of it, change corners of main separate by using "All corners"'),
async () => {
const cornerValue = '45';
await layersPanelPage.clickMainComponentOnLayersTab();
@ -126,7 +127,7 @@ test.describe(() => {
);
mainTest(
'PENPOT-1408 Create a component and 2 copies of it, change stroke color of main',
qase(1408,'PENPOT-1408 Create a component and 2 copies of it, change stroke color of main'),
async () => {
await layersPanelPage.clickMainComponentOnLayersTab();
await designPanelPage.clickAddStrokeButton();
@ -142,7 +143,7 @@ test.describe(() => {
);
mainTest(
'PENPOT-1444 Create a component and 2 copies of it, change fill of main',
qase(1444,'PENPOT-1444 Create a component and 2 copies of it, change fill of main'),
async () => {
await layersPanelPage.clickMainComponentOnLayersTab();
await layersPanelPage.selectMainComponentChildLayer();
@ -162,7 +163,7 @@ test.describe(() => {
);
mainTest(
'PENPOT-1445 Create a component and 2 copies of it, change shadow opacity and color of main',
qase(1445,'PENPOT-1445 Create a component and 2 copies of it, change shadow opacity and color of main'),
async () => {
await layersPanelPage.clickMainComponentOnLayersTab();
await designPanelPage.clickAddShadowButton();
@ -192,7 +193,7 @@ test.describe(() => {
);
mainTest(
'PENPOT-1446 Create a component and 2 copies of it, change blur of main',
qase(1446,'PENPOT-1446 Create a component and 2 copies of it, change blur of main'),
async () => {
await layersPanelPage.clickMainComponentOnLayersTab();
await designPanelPage.clickAddBlurButton();
@ -208,7 +209,7 @@ test.describe(() => {
);
mainTest(
'PENPOT-1447 Create a component and 2 copies of it, change grid style and size of main',
qase(1447,'PENPOT-1447 Create a component and 2 copies of it, change grid style and size of main'),
async () => {
await layersPanelPage.clickMainComponentOnLayersTab();
await designPanelPage.clickAddGridButton();
@ -250,7 +251,7 @@ test.describe("Text", () => {
});
mainTest(
'PENPOT-1448 Create a component from text and 2 copies of it, change font, style and size of main',
qase(1448,'PENPOT-1448 Create a component from text and 2 copies of it, change font, style and size of main'),
async () => {
await layersPanelPage.clickMainComponentOnLayersTab();
await layersPanelPage.selectMainComponentChildLayer();
@ -282,7 +283,7 @@ test.describe(() => {
});
mainTest(
'PENPOT-1404 Change copy components shadow and update main components color',
qase(1404,'PENPOT-1404 Change copy components shadow and update main components color'),
async () => {
await layersPanelPage.clickCopyComponentOnLayersTab();
await designPanelPage.clickAddShadowButton();
@ -301,7 +302,7 @@ test.describe(() => {
);
mainTest(
'PENPOT-1403 Change copy components color and update main components color',
qase(1403,'PENPOT-1403 Change copy components color and update main components color'),
async () => {
await layersPanelPage.clickCopyComponentOnLayersTab();
await mainPage.waitForChangeIsSaved();
@ -322,7 +323,7 @@ test.describe(() => {
);
mainTest(
'PENPOT-1405 Change copy components blur and update main components color',
qase(1405,'PENPOT-1405 Change copy components blur and update main components color'),
async () => {
await layersPanelPage.clickCopyComponentOnLayersTab();
await designPanelPage.clickAddBlurButton();
@ -340,7 +341,7 @@ test.describe(() => {
);
mainTest(
'PENPOT-1406 Change copy components grid and update main components color',
qase(1406,'PENPOT-1406 Change copy components grid and update main components color'),
async () => {
await layersPanelPage.clickCopyComponentOnLayersTab();
await designPanelPage.clickAddGridButton();
@ -358,7 +359,7 @@ test.describe(() => {
);
mainTest(
'PENPOT-1409 Change copy name and change component name',
qase(1409,'PENPOT-1409 Change copy name and change component name'),
async () => {
await layersPanelPage.clickCopyComponentOnLayersTab();
@ -380,7 +381,7 @@ test.describe(() => {
);
});
mainTest('PENPOT-1478 Changed direct, not overriden', async () => {
mainTest(qase(1478,'PENPOT-1478 Changed direct, not overriden'), async () => {
await mainPage.createDefaultRectangleByCoordinates(200, 300);
await mainPage.createComponentViaRightClick();
await mainPage.waitForChangeIsSaved();
@ -403,7 +404,7 @@ mainTest('PENPOT-1478 Changed direct, not overriden', async () => {
);
});
mainTest('PENPOT-1479 Changed remote, not overriden', async () => {
mainTest(qase(1479,'PENPOT-1479 Changed remote, not overriden'), async () => {
await mainPage.createDefaultRectangleByCoordinates(200, 300);
await mainPage.createComponentViaRightClick();
await mainPage.waitForChangeIsSaved();
@ -432,7 +433,7 @@ mainTest('PENPOT-1479 Changed remote, not overriden', async () => {
);
});
mainTest('PENPOT-1480 Changed direct, overriden in copy', async () => {
mainTest(qase(1480,'PENPOT-1480 Changed direct, overriden in copy'), async () => {
await mainPage.createDefaultRectangleByCoordinates(200, 300);
await mainPage.createComponentViaRightClick();
await mainPage.waitForChangeIsSaved();
@ -458,7 +459,7 @@ mainTest('PENPOT-1480 Changed direct, overriden in copy', async () => {
);
});
mainTest('PENPOT-1482 Changed remote, overriden in copy', async () => {
mainTest(qase(1482,'PENPOT-1482 Changed remote, overriden in copy'), async () => {
await mainPage.createDefaultRectangleByCoordinates(200, 300);
await mainPage.createComponentViaRightClick();
await mainPage.waitForChangeIsSaved();
@ -490,7 +491,7 @@ mainTest('PENPOT-1482 Changed remote, overriden in copy', async () => {
);
});
mainTest('PENPOT-1483 Changed remote, overriden in near, overriden in copy', async () => {
mainTest(qase(1483,'PENPOT-1483 Changed remote, overriden in near, overriden in copy'), async () => {
await mainPage.createDefaultRectangleByCoordinates(200, 300);
await mainPage.createComponentViaRightClick();
await mainPage.waitForChangeIsSaved();

View File

@ -8,6 +8,7 @@ const { DashboardPage } = require('../../pages/dashboard/dashboard-page');
const { DesignPanelPage } = require('../../pages/workspace/design-panel-page');
const { LayersPanelPage } = require('../../pages/workspace/layers-panel-page');
const { updateTestResults } = require('./../../helpers/saveTestResults.js');
const { qase } = require('playwright-qase-reporter/dist/playwright');
const teamName = random().concat('autotest');
@ -29,7 +30,7 @@ test.afterEach(async ({ page }, testInfo) => {
await updateTestResults(testInfo.status, testInfo.retry)
});
mainTest('CO-1 Change color background', async ({ page }) => {
mainTest(qase(216,'CO-1 Change color background'), async ({ page }) => {
const mainPage = new MainPage(page);
const colorPalettePage = new ColorPalettePage(page);
const designPanelPage = new DesignPanelPage(page);
@ -49,7 +50,7 @@ test.describe(() => {
await mainPage.waitForChangeIsSaved();
});
mainTest('CO-2 Create a board from toolbar', async ({ page }) => {
mainTest(qase(217,'CO-2 Create a board from toolbar'), async ({ page }) => {
const mainPage = new MainPage(page);
await mainPage.isCreatedLayerVisible();
await expect(mainPage.viewport).toHaveScreenshot('board.png', {
@ -57,7 +58,7 @@ test.describe(() => {
});
});
mainTest('CO-4 Rename board with valid name', async ({ page }) => {
mainTest(qase(219,'CO-4 Rename board with valid name'), async ({ page }) => {
const newName = 'New test board';
const renamedName = 'renamed board';
const mainPage = new MainPage(page);
@ -74,7 +75,7 @@ test.describe(() => {
});
mainTest(
'CO-9 Add, hide, unhide, change type and delete Shadow to board',
qase(224,'CO-9 Add, hide, unhide, change type and delete Shadow to board'),
async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
@ -121,7 +122,7 @@ test.describe(() => {
},
);
mainTest('CO-10 Add and edit Shadow to board', async ({ page }) => {
mainTest(qase(225,'CO-10 Add and edit Shadow to board'), async ({ page }) => {
const mainPage = new MainPage(page);
const colorPalettePage = new ColorPalettePage(page);
const designPanelPage = new DesignPanelPage(page);
@ -146,7 +147,7 @@ test.describe(() => {
});
});
mainTest('CO-12 Add, hide, unhide and delete Blur to board', async ({ page }) => {
mainTest(qase(227,'CO-12 Add, hide, unhide and delete Blur to board'), async ({ page }) => {
const mainPage = new MainPage(page);
const colorPalettePage = new ColorPalettePage(page);
const designPanelPage = new DesignPanelPage(page);
@ -175,7 +176,7 @@ test.describe(() => {
});
});
mainTest('CO-13 Add and edit Blur to board', async ({ page }) => {
mainTest(qase(228,'CO-13 Add and edit Blur to board'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await designPanelPage.clickAddBlurButton();
@ -186,7 +187,7 @@ test.describe(() => {
});
});
mainTest('CO-14 Add, edit and delete Stroke to board', async ({ page }) => {
mainTest(qase(229,'CO-14 Add, edit and delete Stroke to board'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await designPanelPage.clickAddStrokeButton();
@ -268,7 +269,7 @@ test.describe(() => {
});
});
mainTest('CO-25-1 Delete board via rightclick', async ({ page }) => {
mainTest(qase(240,'CO-25-1 Delete board via rightclick'), async ({ page }) => {
const mainPage = new MainPage(page);
await mainPage.isCreatedLayerVisible();
await mainPage.deleteLayerViaRightClick();
@ -276,7 +277,7 @@ test.describe(() => {
await expect(mainPage.viewport).toHaveScreenshot('empty-canvas.png');
});
mainTest('CO-25-2 Delete board via shortcut Del', async ({ page }) => {
mainTest(qase(240,'CO-25-2 Delete board via shortcut Del'), async ({ page }) => {
const mainPage = new MainPage(page);
await mainPage.isCreatedLayerVisible();
await mainPage.deleteLayerViaShortcut();
@ -284,7 +285,7 @@ test.describe(() => {
await expect(mainPage.viewport).toHaveScreenshot('empty-canvas.png');
});
mainTest('CO-28 Add rotation to board', async ({ page }) => {
mainTest(qase(243,'CO-28 Add rotation to board'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await designPanelPage.changeRotationForLayer('90');
@ -301,7 +302,7 @@ test.describe(() => {
await expect(mainPage.viewport).toHaveScreenshot('board-rotated-359.png');
});
mainTest('CO-29 Change border radius multiple values', async ({ page }) => {
mainTest(qase(244,'CO-29 Change border radius multiple values'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await designPanelPage.clickIndividualCornersRadiusButton();
@ -318,7 +319,7 @@ test.describe(() => {
});
mainTest.skip(
"CO-56 Click 'Focus off' board from shortcut F",
qase(271,"CO-56 Click 'Focus off' board from shortcut F"),
async ({ page }) => {
// todo bug 6359 > need to update after fix
const mainPage = new MainPage(page);
@ -339,7 +340,7 @@ test.describe(() => {
},
);
mainTest('CO-411 Search board - ignore case', async ({ page }) => {
mainTest(qase(604,'CO-411 Search board - ignore case'), async ({ page }) => {
const mainPage = new MainPage(page);
const layersPanelPage = new LayersPanelPage(page);
await mainPage.doubleClickCreatedBoardTitleOnCanvas();
@ -350,7 +351,7 @@ test.describe(() => {
await layersPanelPage.isLayerSearched('Test');
});
mainTest('PENPOT-1756 Absolute positioned board moving', async ({ page }) => {
mainTest(qase(1756,'PENPOT-1756 Absolute positioned board moving'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
const layersPanelPage = new LayersPanelPage(page);
@ -402,7 +403,7 @@ test.describe(() => {
});
mainTest(
'CO-33 Zoom to board by double click board icon on the list',
qase(248,'CO-33 Zoom to board by double click board icon on the list'),
async ({ page }) => {
const mainPage = new MainPage(page);
const layersPanelPage = new LayersPanelPage(page);
@ -420,7 +421,7 @@ test.describe(() => {
);
mainTest(
'CO-34 Hide and show board from rightclick and icons',
qase(249,'CO-34 Hide and show board from rightclick and icons'),
async ({ page }) => {
const mainPage = new MainPage(page);
const layersPanelPage = new LayersPanelPage(page);
@ -450,7 +451,7 @@ test.describe(() => {
);
mainTest.skip(
"CO-53 Click 'Focus on' board from right click",
qase(268,"CO-53 Click 'Focus on' board from right click"),
async ({ page }) => {
// todo bug 6359 > need to update after fix
const mainPage = new MainPage(page);

View File

@ -6,6 +6,7 @@ const { DashboardPage } = require('../../pages/dashboard/dashboard-page');
const { random } = require('../../helpers/string-generator');
const { CommentsPanelPage } = require('../../pages/workspace/comments-panel-page');
const { updateTestResults } = require('./../../helpers/saveTestResults.js');
const { qase } = require('playwright-qase-reporter/dist/playwright');
const teamName = random().concat('autotest');
@ -37,7 +38,7 @@ test.describe(() => {
await commentsPanelPage.clickPostCommentButton();
});
mainTest('CO-339 Create comment from toolbar', async ({ page }) => {
mainTest(qase([554,1219],'CO-339 Create comment from toolbar'), async ({ page }) => {
const comment = 'Test Comment';
const mainPage = new MainPage(page);
const commentsPanelPage = new CommentsPanelPage(page);
@ -54,7 +55,7 @@ test.describe(() => {
});
mainTest(
'CO-346 Reply comment with valid text using Latin alphabet',
qase([561,1226],'CO-346 Reply comment with valid text using Latin alphabet'),
async ({ page }) => {
const replyComment =
'Lorem Ipsum is simply dummy text of the printing and typesetting industry';
@ -71,7 +72,7 @@ test.describe(() => {
);
mainTest(
'CO-351 Edit comment with valid text using Latin alphabet',
qase([566,1231],'CO-351 Edit comment with valid text using Latin alphabet'),
async ({ page }) => {
const editedComment = 'Edited Test Comment';
const mainPage = new MainPage(page);
@ -92,7 +93,7 @@ test.describe(() => {
},
);
mainTest('CO-356 Delete thread', async ({ page }) => {
mainTest(qase([571,1236],'CO-356 Delete thread'), async ({ page }) => {
const mainPage = new MainPage(page);
const commentsPanelPage = new CommentsPanelPage(page);
await commentsPanelPage.clickCommentOptionsButton();
@ -107,7 +108,7 @@ test.describe(() => {
});
});
mainTest('CO-360 Resolve comment', async ({ page }) => {
mainTest(qase([575,1240],'CO-360 Resolve comment'), async ({ page }) => {
const mainPage = new MainPage(page);
const commentsPanelPage = new CommentsPanelPage(page);
await commentsPanelPage.clickResolveCommentCheckbox();
@ -125,7 +126,7 @@ test.describe(() => {
});
mainTest(
'CO-341 Post comment with valid text using Latin alphabet',
qase([556,1221],'CO-341 Post comment with valid text using Latin alphabet'),
async ({ page }) => {
const comment =
'Lorem Ipsum is simply dummy text of the printing and typesetting industry.';

View File

@ -7,6 +7,7 @@ const { TeamPage } = require('../../pages/dashboard/team-page');
const { DashboardPage } = require('../../pages/dashboard/dashboard-page');
const { LayersPanelPage } = require('../../pages/workspace/layers-panel-page');
const { updateTestResults } = require('./../../helpers/saveTestResults.js');
const { qase } = require('playwright-qase-reporter/dist/playwright');
const teamName = random().concat('autotest');
@ -32,7 +33,7 @@ test.describe(() => {
// All tests in this describe group will get 2 retry attempts.
test.describe.configure({ retries: 2 });
mainTest('CO-268 Create curve line from toolbar', async ({ page }) => {
mainTest(qase(483,'CO-268 Create curve line from toolbar'), async ({ page }) => {
const mainPage = new MainPage(page);
await mainPage.clickCreateCurveButton();
await mainPage.drawCurve(900, 300, 600, 200);
@ -42,7 +43,7 @@ test.describe(() => {
});
mainTest(
'CO-270 Rename path, that was created with curve with valid name',
qase(485,'CO-270 Rename path, that was created with curve with valid name'),
async ({ page }) => {
const mainPage = new MainPage(page);
const layersPanelPage = new LayersPanelPage(page);

View File

@ -8,6 +8,7 @@ const { DashboardPage } = require('../../pages/dashboard/dashboard-page');
const { LayersPanelPage } = require('../../pages/workspace/layers-panel-page');
const { DesignPanelPage } = require('../../pages/workspace/design-panel-page');
const { updateTestResults } = require('./../../helpers/saveTestResults.js');
const { qase } = require('playwright-qase-reporter/dist/playwright');
const teamName = random().concat('autotest');
@ -38,13 +39,13 @@ test.describe(() => {
await mainPage.waitForChangeIsSaved();
});
mainTest('CO-112 Create an ellipse from toolbar', async ({ page }) => {
mainTest(qase(327,'CO-112 Create an ellipse from toolbar'), async ({ page }) => {
const mainPage = new MainPage(page);
await mainPage.isCreatedLayerVisible();
await expect(mainPage.viewport).toHaveScreenshot('ellipse.png');
});
mainTest('CO-114 Rename ellipse with valid name', async ({ page }) => {
mainTest(qase(329,'CO-114 Rename ellipse with valid name'), async ({ page }) => {
const mainPage = new MainPage(page);
const layersPanelPage = new LayersPanelPage(page);
await layersPanelPage.doubleClickLayerOnLayersTab('Ellipse');
@ -54,7 +55,7 @@ test.describe(() => {
});
mainTest(
'CO-117 Add, hide, unhide, change type and delete Shadow to ellipse',
qase(332,'CO-117 Add, hide, unhide, change type and delete Shadow to ellipse'),
async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
@ -101,7 +102,7 @@ test.describe(() => {
},
);
mainTest('CO-118 Add and edit Shadow to ellipse', async ({ page }) => {
mainTest(qase(333,'CO-118 Add and edit Shadow to ellipse'), async ({ page }) => {
const mainPage = new MainPage(page);
const colorPalettePage = new ColorPalettePage(page);
const designPanelPage = new DesignPanelPage(page);
@ -124,7 +125,7 @@ test.describe(() => {
});
mainTest(
'CO-119 Add, hide, unhide and delete Blur to ellipse',
qase(334,'CO-119 Add, hide, unhide and delete Blur to ellipse'),
async ({ page }) => {
const mainPage = new MainPage(page);
const colorPalettePage = new ColorPalettePage(page);
@ -155,7 +156,7 @@ test.describe(() => {
},
);
mainTest('CO-120 Add and edit Blur to ellipse', async ({ page }) => {
mainTest(qase(335,'CO-120 Add and edit Blur to ellipse'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await designPanelPage.clickAddBlurButton();
@ -164,7 +165,7 @@ test.describe(() => {
await expect(mainPage.viewport).toHaveScreenshot('ellipse-blur.png');
});
mainTest('CO-121 Add, edit and delete Stroke to ellipse', async ({ page }) => {
mainTest(qase(336,'CO-121 Add, edit and delete Stroke to ellipse'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await designPanelPage.clickAddStrokeButton();
@ -247,7 +248,7 @@ test.describe(() => {
mainTest.skip(
// todo bug 6359 > need to update after fix
"CO-126 Click 'Focus off' ellipse from shortcut F",
qase(341,"CO-126 Click 'Focus off' ellipse from shortcut F"),
async ({ page }) => {
const mainPage = new MainPage(page);
const layersPanelPage = new LayersPanelPage(page);
@ -268,7 +269,7 @@ test.describe(() => {
},
);
mainTest('CO-136-1 Delete ellipse via rightclick', async ({ page }) => {
mainTest(qase(351,'CO-136-1 Delete ellipse via rightclick'), async ({ page }) => {
const mainPage = new MainPage(page);
await mainPage.isCreatedLayerVisible();
await mainPage.deleteLayerViaRightClick();
@ -276,7 +277,7 @@ test.describe(() => {
await expect(mainPage.viewport).toHaveScreenshot('empty-canvas.png');
});
mainTest('CO-136-2 Delete ellipse via shortcut Del', async ({ page }) => {
mainTest(qase(351,'CO-136-2 Delete ellipse via shortcut Del'), async ({ page }) => {
const mainPage = new MainPage(page);
await mainPage.isCreatedLayerVisible();
await mainPage.deleteLayerViaShortcut();
@ -284,7 +285,7 @@ test.describe(() => {
await expect(mainPage.viewport).toHaveScreenshot('empty-canvas.png');
});
mainTest('CO-138 Add rotation to ellipse', async ({ page }) => {
mainTest(qase(353,'CO-138 Add rotation to ellipse'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await designPanelPage.changeRotationForLayer('90');
@ -301,7 +302,7 @@ test.describe(() => {
await expect(mainPage.viewport).toHaveScreenshot('ellipse-rotated-359.png');
});
mainTest('CO-154 Transform ellipse to path', async ({ page }) => {
mainTest(qase(369,'CO-154 Transform ellipse to path'), async ({ page }) => {
const mainPage = new MainPage(page);
await mainPage.transformToPathViaRightClick();
await mainPage.waitForChangeIsSaved();
@ -310,7 +311,7 @@ test.describe(() => {
});
});
mainTest('CO-161 Selection to board', async ({ page }) => {
mainTest(qase(376,'CO-161 Selection to board'), async ({ page }) => {
const mainPage = new MainPage(page);
await mainPage.selectionToBoardViaRightClick();
await mainPage.waitForChangeIsSaved();

View File

@ -7,6 +7,7 @@ const { random } = require('../../helpers/string-generator');
const { TeamPage } = require('../../pages/dashboard/team-page');
const { DashboardPage } = require('../../pages/dashboard/dashboard-page');
const { updateTestResults } = require('./../../helpers/saveTestResults.js');
const { qase } = require('playwright-qase-reporter/dist/playwright');
const teamName = random().concat('autotest');
@ -45,7 +46,7 @@ test.describe(() => {
await mainPage.waitForChangeIsSaved();
});
mainTest('FL-1 Add flex layout to board from rightclick', async ({ page }) => {
mainTest(qase(607,'FL-1 Add flex layout to board from rightclick'), async ({ page }) => {
const mainPage = new MainPage(page);
const layersPanelPage = new LayersPanelPage(page);
const designPanelPage = new DesignPanelPage(page);
@ -58,7 +59,7 @@ test.describe(() => {
});
});
mainTest('FL-2 Add flex layout to board from shortcut', async ({ page }) => {
mainTest(qase(608,'FL-2 Add flex layout to board from shortcut'), async ({ page }) => {
const mainPage = new MainPage(page);
const layersPanelPage = new LayersPanelPage(page);
const designPanelPage = new DesignPanelPage(page);
@ -72,7 +73,7 @@ test.describe(() => {
});
mainTest(
'FL-4 Remove flex layout from board from rightclick',
qase(610,'FL-4 Remove flex layout from board from rightclick'),
async ({ page }) => {
const mainPage = new MainPage(page);
const layersPanelPage = new LayersPanelPage(page);
@ -89,7 +90,7 @@ test.describe(() => {
},
);
mainTest('FL-5 Remove flex layout from board from shortcut', async ({ page }) => {
mainTest(qase(611,'FL-5 Remove flex layout from board from shortcut'), async ({ page }) => {
const mainPage = new MainPage(page);
const layersPanelPage = new LayersPanelPage(page);
const designPanelPage = new DesignPanelPage(page);
@ -105,7 +106,7 @@ test.describe(() => {
});
mainTest(
'FL-6 Remove flex layout from board from Design panel',
qase(612,'FL-6 Remove flex layout from board from Design panel'),
async ({ page }) => {
const mainPage = new MainPage(page);
const layersPanelPage = new LayersPanelPage(page);
@ -122,7 +123,7 @@ test.describe(() => {
},
);
mainTest('FL-7 Change direction', async ({ page }) => {
mainTest(qase(613,'FL-7 Change direction'), async ({ page }) => {
const mainPage = new MainPage(page);
const layersPanelPage = new LayersPanelPage(page);
const designPanelPage = new DesignPanelPage(page);
@ -158,7 +159,7 @@ test.describe(() => {
});
});
mainTest('FL-9 Change alignment', async ({ page }) => {
mainTest(qase(615,'FL-9 Change alignment'), async ({ page }) => {
const mainPage = new MainPage(page);
const layersPanelPage = new LayersPanelPage(page);
const designPanelPage = new DesignPanelPage(page);
@ -183,7 +184,7 @@ test.describe(() => {
});
});
mainTest('FL-10 Change justification', async ({ page }) => {
mainTest(qase(616,'FL-10 Change justification'), async ({ page }) => {
const mainPage = new MainPage(page);
const layersPanelPage = new LayersPanelPage(page);
const designPanelPage = new DesignPanelPage(page);
@ -232,7 +233,7 @@ test.describe(() => {
});
});
mainTest('FL-12 Change column gap', async ({ page }) => {
mainTest(qase(618,'FL-12 Change column gap'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
const layersPanelPage = new LayersPanelPage(page);
@ -257,7 +258,7 @@ test.describe(() => {
});
});
mainTest('FL-13 Change row gap', async ({ page }) => {
mainTest(qase(619,'FL-13 Change row gap'), async ({ page }) => {
const mainPage = new MainPage(page);
const layersPanelPage = new LayersPanelPage(page);
const designPanelPage = new DesignPanelPage(page);
@ -284,7 +285,7 @@ test.describe(() => {
});
});
mainTest('FL-14 Change single padding', async ({ page }) => {
mainTest(qase(620,'FL-14 Change single padding'), async ({ page }) => {
const mainPage = new MainPage(page);
const layersPanelPage = new LayersPanelPage(page);
const designPanelPage = new DesignPanelPage(page);
@ -317,7 +318,7 @@ test.describe(() => {
);
});
mainTest('FL-15 Change multiple padding', async ({ page }) => {
mainTest(qase(621,'FL-15 Change multiple padding'), async ({ page }) => {
const mainPage = new MainPage(page);
const layersPanelPage = new LayersPanelPage(page);
const designPanelPage = new DesignPanelPage(page);
@ -365,7 +366,7 @@ test.describe(() => {
);
});
mainTest.skip('FL-21 Flex elements change - alignment', async ({ page }) => {
mainTest.skip(qase(627,'FL-21 Flex elements change - alignment'), async ({ page }) => {
// todo bug 6389 > need to update after fix
const mainPage = new MainPage(page);
const layersPanelPage = new LayersPanelPage(page);
@ -398,7 +399,7 @@ test.describe(() => {
);
});
mainTest('FL-22 Flex elements - change margin single', async ({ page }) => {
mainTest(qase(628,'FL-22 Flex elements - change margin single'), async ({ page }) => {
const mainPage = new MainPage(page);
const layersPanelPage = new LayersPanelPage(page);
const designPanelPage = new DesignPanelPage(page);
@ -455,7 +456,7 @@ test.describe(() => {
await mainPage.waitForChangeIsSaved();
});
mainTest('FL-37 Set margins and padding to 0', async ({ page }) => {
mainTest(qase(643,'FL-37 Set margins and padding to 0'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await designPanelPage.changeLayoutPadding('Vertical', '0');
@ -481,7 +482,7 @@ test.describe(() => {
});
});
mainTest('FL-39 Gap click highlight', async ({ page }) => {
mainTest(qase(645,'FL-39 Gap click highlight'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await designPanelPage.changeLayoutColumnGap('20');
@ -496,7 +497,7 @@ test.describe(() => {
});
mainTest(
'FL-42 Use absolute position and look if element still inside a board',
qase(647,'FL-42 Use absolute position and look if element still inside a board'),
async ({ page }) => {
const mainPage = new MainPage(page);
const layersPanelPage = new LayersPanelPage(page);

View File

@ -10,6 +10,7 @@ const { updateTestResults } = require('./../../helpers/saveTestResults.js');
const { InspectPanelPage } = require('../../pages/workspace/inspect-panel-page');
const { AssetsPanelPage } = require('../../pages/workspace/assets-panel-page');
const { ColorPalettePage } = require('../../pages/workspace/color-palette-page');
const { qase } = require('playwright-qase-reporter/dist/playwright');
const teamName = random().concat('autotest');
@ -37,7 +38,7 @@ test.afterEach(async ({ page }, testInfo) => {
await updateTestResults(testInfo.status, testInfo.retry)
});
mainTest('PENPOT-1689,1696 Check grid lines, check edit mode in the right panel', async ({ page }) => {
mainTest(qase([1689,1696],'PENPOT-1689,1696 Check grid lines, check edit mode in the right panel'), async ({ page }) => {
await mainPage.createDefaultBoardByCoordinates(200, 300);
await designPanelPage.changeHeightAndWidthForLayer('300', '400');
await mainPage.waitForChangeIsSaved();
@ -93,7 +94,7 @@ test.describe(() => {
await mainPage.waitForChangeIsSaved();
});
mainTest('PENPOT-1690 Change direction', async ({ page }) => {
mainTest(qase(1690,'PENPOT-1690 Change direction'), async ({ page }) => {
await designPanelPage.changeLayoutDirection('Column', false);
await mainPage.waitForChangeIsSaved();
await expect(layersPanelPage.layersSidebar).toHaveScreenshot(
@ -101,7 +102,7 @@ test.describe(() => {
);
});
mainTest('PENPOT-1691 Change alignment', async ({ page }) => {
mainTest(qase(1691,'PENPOT-1691 Change alignment'), async ({ page }) => {
await designPanelPage.changeLayoutAlignment('Center', false);
await mainPage.waitForChangeIsSaved();
await expect(mainPage.viewport).toHaveScreenshot('board-with-grid-alignment-center.png', {
@ -109,7 +110,7 @@ test.describe(() => {
});
});
mainTest('PENPOT-1692 Change justify - PENPOT-1694 Сhange vertical, horizontal, bottom and left paddings', async ({ page }) => {
mainTest(qase(1692,'PENPOT-1692 Change justify - PENPOT-1694 Сhange vertical, horizontal, bottom and left paddings'), async ({ page }) => {
await designPanelPage.openGridEditModeFromDesignPanel();
await mainPage.waitForChangeIsSaved();
await designPanelPage.switchToIndependentPaddingOnGridEdit();
@ -144,7 +145,7 @@ test.describe(() => {
);
});
mainTest('PENPOT-1693,1716,1744 Change row gap, Check Gap info on inspect tab', async ({ page }) => {
mainTest(qase([1693,1716,1744],'PENPOT-1693,1716,1744 Change row gap, Check Gap info on inspect tab'), async ({ page }) => {
await designPanelPage.openGridEditModeFromDesignPanel();
await mainPage.waitForChangeIsSaved();
await designPanelPage.changeLayoutRowGapOnGridEdit('50');
@ -162,7 +163,7 @@ test.describe(() => {
);
});
mainTest('PENPOT-1695 Change columns and rows', async ({ page }) => {
mainTest(qase(1695,'PENPOT-1695 Change columns and rows'), async ({ page }) => {
await designPanelPage.openGridEditModeFromDesignPanel();
await mainPage.waitForChangeIsSaved();
await mainPage.addRowGridLayoutBtnClick();
@ -174,7 +175,7 @@ test.describe(() => {
});
});
mainTest('PENPOT-1697,1735 Check if the grid layout is resized automatically', async ({ page }) => {
mainTest(qase([1697,1735],'PENPOT-1697,1735 Check if the grid layout is resized automatically'), async ({ page }) => {
await mainPage.createDefaultBoardByCoordinates(200, 300);
await designPanelPage.changeHeightAndWidthForLayer('300', '400');
await mainPage.waitForChangeIsSaved();
@ -201,7 +202,7 @@ mainTest('PENPOT-1697,1735 Check if the grid layout is resized automatically', a
});
});
mainTest('PENPOT-1698 Upload an image and add it to the table - check the resizing of the image inside the table', async ({ page }) => {
mainTest(qase(1698,'PENPOT-1698 Upload an image and add it to the table - check the resizing of the image inside the table'), async ({ page }) => {
await mainPage.createDefaultBoardByCoordinates(200, 300);
await designPanelPage.changeHeightAndWidthForLayer('600', '600');
await mainPage.waitForChangeIsSaved();
@ -244,7 +245,7 @@ test.describe(() => {
await mainPage.waitForChangeIsSaved();
});
mainTest('PENPOT-1699 Image and change - alignment and change vertical, horizontal margin', async ({ page }) => {
mainTest(qase(1699,'PENPOT-1699 Image and change - alignment and change vertical, horizontal margin'), async ({ page }) => {
await mainPage.uploadImage('images/mini_sample.jpg');
await layersPanelPage.dragAndDropComponentToBoard('mini_sample');
await mainPage.waitForChangeIsSaved();
@ -285,7 +286,7 @@ test.describe(() => {
});
});
mainTest('PENPOT-1700 Create a board with Grid Layout with a image and create duplicate this image in next column (change vertical direction)', async ({ page }) => {
mainTest(qase(1700,'PENPOT-1700 Create a board with Grid Layout with a image and create duplicate this image in next column (change vertical direction)'), async ({ page }) => {
await designPanelPage.changeLayoutDirection('Column', false);
await mainPage.waitForChangeIsSaved();
await layersPanelPage.clickLayerOnLayersTab('mini_sample');
@ -296,7 +297,7 @@ test.describe(() => {
});
});
mainTest('PENPOT-1701 Create a board with Grid Layout with a image and create duplicate this image in next column (change horizontal direction)', async ({ page }) => {
mainTest(qase(1701,'PENPOT-1701 Create a board with Grid Layout with a image and create duplicate this image in next column (change horizontal direction)'), async ({ page }) => {
await designPanelPage.changeLayoutDirection('Row', false);
await mainPage.waitForChangeIsSaved();
await layersPanelPage.clickLayerOnLayersTab('mini_sample');
@ -307,7 +308,7 @@ test.describe(() => {
});
});
mainTest('PENPOT-1704 Change position and alignment within the Board', async ({ page }) => {
mainTest(qase(1704,'PENPOT-1704 Change position and alignment within the Board'), async ({ page }) => {
await mainPage.clickBoardOnCanvas();
await mainPage.doubleClickBoardOnCanvas();
await designPanelPage.changeLayoutAlignment('Center', false);
@ -324,7 +325,7 @@ test.describe(() => {
});
});
mainTest('PENPOT-1705 Change margin and padding within the Board', async ({ page }) => {
mainTest(qase(1705,'PENPOT-1705 Change margin and padding within the Board'), async ({ page }) => {
await mainPage.clickBoardOnCanvas();
await mainPage.doubleClickBoardOnCanvas();
await designPanelPage.switchToIndependentPaddingOnGridEdit();
@ -347,7 +348,7 @@ test.describe(() => {
);
});
mainTest('PENPOT-1706 Adding Flex Board', async ({ page }) => {
mainTest(qase(1706,'PENPOT-1706 Adding Flex Board'), async ({ page }) => {
await designPanelPage.addLayoutFromDesignPanel('flex');
await designPanelPage.isFlexElementSectionOpened();
await mainPage.waitForChangeIsSaved();
@ -362,7 +363,7 @@ test.describe(() => {
);
});
mainTest('PENPOT-1711 add grid lines as a dashboard - table - change duplicate, add row, delete row, change column numbers', async ({ page }) => {
mainTest(qase(1711,'PENPOT-1711 add grid lines as a dashboard - table - change duplicate, add row, delete row, change column numbers'), async ({ page }) => {
await designPanelPage.changeHeightAndWidthForLayer('600', '400');
await mainPage.clickBoardOnCanvas();
await mainPage.doubleClickBoardOnCanvas();
@ -388,7 +389,7 @@ test.describe(() => {
});
});
mainTest('PENPOT-1713 Add 4 pictures of different sizes and change the color for the back', async ({ page }) => {
mainTest(qase(1713,'PENPOT-1713 Add 4 pictures of different sizes and change the color for the back'), async ({ page }) => {
await mainPage.uploadImage('images/horizontal_sample.jpg');
await layersPanelPage.dragAndDropComponentToBoard('horizontal_sample');
await mainPage.waitForChangeIsSaved();
@ -412,7 +413,7 @@ test.describe(() => {
});
});
mainTest('PENPOT-1745 Check code section', async ({ page }) => {
mainTest(qase(1745,'PENPOT-1745 Check code section'), async ({ page }) => {
await mainPage.createDefaultRectangleByCoordinates(200, 200, true);
await layersPanelPage.dragAndDropComponentToBoard('Rectangle');
await mainPage.clickViewportOnce();
@ -446,7 +447,7 @@ test.describe(() => {
await mainPage.clickCreatedBoardTitleOnCanvas();
});
mainTest('PENPOT-1715 Add grid lines, check edit mode and add the text', async ({ page }) => {
mainTest(qase(1715,'PENPOT-1715 Add grid lines, check edit mode and add the text'), async ({ page }) => {
await mainPage.createDefaultTextLayer();
await layersPanelPage.dragAndDropComponentToBoard('Hello World!');
await mainPage.waitForChangeIsSaved();
@ -456,7 +457,7 @@ test.describe(() => {
});
});
mainTest('PENPOT-1702 Check fraction units, three dots and check duplicate, add row, delete row', async ({ page }) => {
mainTest(qase(1702,'PENPOT-1702 Check fraction units, three dots and check duplicate, add row, delete row'), async ({ page }) => {
await designPanelPage.changeHeightAndWidthForLayer('600', '400');
await mainPage.clickBoardOnCanvas();
await mainPage.doubleClickBoardOnCanvas();
@ -477,7 +478,7 @@ test.describe(() => {
});
});
mainTest('PENPOT-1703 Check fraction units, change px column manual', async ({ page }) => {
mainTest(qase(1703,'PENPOT-1703 Check fraction units, change px column manual'), async ({ page }) => {
await mainPage.clickBoardOnCanvas();
await mainPage.doubleClickBoardOnCanvas();
await mainPage.changeGridRowLabel('100 PX');
@ -487,7 +488,7 @@ test.describe(() => {
});
});
mainTest('PENPOT-1708 Check occupy two cells (button Area) - vertical and horizontal', async ({ page }) => {
mainTest(qase(1708,'PENPOT-1708 Check occupy two cells (button Area) - vertical and horizontal'), async ({ page }) => {
await mainPage.clickBoardOnCanvas();
await mainPage.doubleClickBoardOnCanvas();
await mainPage.waitForChangeIsSaved();
@ -506,7 +507,7 @@ test.describe(() => {
});
});
mainTest('PENPOT-1709 Check occupy four cells (button Area) - Create Area name', async ({ page }) => {
mainTest(qase(1709,'PENPOT-1709 Check occupy four cells (button Area) - Create Area name'), async ({ page }) => {
await mainPage.clickBoardOnCanvas();
await mainPage.doubleClickBoardOnCanvas();
await mainPage.waitForChangeIsSaved();
@ -518,7 +519,7 @@ test.describe(() => {
});
});
mainTest('PENPOT-1736 Check row numbers in right menu', async ({ page }) => {
mainTest(qase(1736,'PENPOT-1736 Check row numbers in right menu'), async ({ page }) => {
await mainPage.clickBoardOnCanvas();
await mainPage.doubleClickBoardOnCanvas();
await mainPage.waitForChangeIsSaved();
@ -529,7 +530,7 @@ test.describe(() => {
});
});
mainTest('PENPOT-1737 Locate button', async ({ page }) => {
mainTest(qase(1737,'PENPOT-1737 Locate button'), async ({ page }) => {
await mainPage.clickBoardOnCanvas();
await designPanelPage.changeAxisXandYForLayer('400', '2000');
await designPanelPage.addLayoutFromDesignPanel('grid');
@ -555,7 +556,7 @@ test.describe(() => {
// });
// });
mainTest('PENPOT-1739,1742 Duplicate vertical and horizontal direction, undo element duplication', async ({ browserName }) => {
mainTest(qase([1739,1742],'PENPOT-1739,1742 Duplicate vertical and horizontal direction, undo element duplication'), async ({ browserName }) => {
await mainPage.createDefaultRectangleByCoordinates(200, 200, true);
await layersPanelPage.dragAndDropComponentToBoard('Rectangle');
await mainPage.waitForChangeIsSaved();
@ -585,7 +586,7 @@ test.describe(() => {
});
});
mainTest('PENPOT-1743 Undo element editing', async ({ browserName }) => {
mainTest(qase(1743,'PENPOT-1743 Undo element editing'), async ({ browserName }) => {
await mainPage.createDefaultRectangleByCoordinates(200, 200, true);
await layersPanelPage.dragAndDropComponentToBoard('Rectangle');
await mainPage.waitForChangeIsSaved();
@ -604,7 +605,7 @@ test.describe(() => {
});
});
mainTest('PENPOT-1746 Check to add area - manually', async ({ page }) => {
mainTest(qase(1746,'PENPOT-1746 Check to add area - manually'), async ({ page }) => {
await mainPage.clickBoardOnCanvas();
await mainPage.doubleClickBoardOnCanvas();
await mainPage.waitForChangeIsSaved();
@ -616,7 +617,7 @@ test.describe(() => {
});
});
mainTest('PENPOT-1748 Check to add area - When you select cells and then “right click” merge cells', async ({ page }) => {
mainTest(qase(1748,'PENPOT-1748 Check to add area - When you select cells and then “right click” merge cells'), async ({ page }) => {
await mainPage.clickBoardOnCanvas();
await mainPage.doubleClickBoardOnCanvas();
await mainPage.waitForChangeIsSaved();
@ -631,7 +632,7 @@ test.describe(() => {
});
});
mainTest('PENPOT-1707,1741 Add grid lines, and upload the images, check removed some image', async ({ page, browserName }) => {
mainTest(qase([1707,1741],'PENPOT-1707,1741 Add grid lines, and upload the images, check removed some image'), async ({ page, browserName }) => {
await mainPage.createDefaultBoardByCoordinates(400, 300);
await designPanelPage.changeHeightAndWidthForLayer('500', '600');
await mainPage.waitForChangeIsSaved();
@ -651,7 +652,7 @@ mainTest('PENPOT-1707,1741 Add grid lines, and upload the images, check removed
});
});
mainTest('PENPOT-1710 Add grid lines as a dashboard - table', async ({ page }) => {
mainTest(qase(1710,'PENPOT-1710 Add grid lines as a dashboard - table'), async ({ page }) => {
await mainPage.createDefaultBoardByCoordinates(200, 300);
await designPanelPage.changeHeightAndWidthForLayer('300', '400');
await mainPage.waitForChangeIsSaved();
@ -667,7 +668,7 @@ mainTest('PENPOT-1710 Add grid lines as a dashboard - table', async ({ page }) =
});
});
mainTest('PENPOT-1712 Add grid lines, change px for all column', async ({ page, browserName }) => {
mainTest(qase(1712,'PENPOT-1712 Add grid lines, change px for all column'), async ({ page, browserName }) => {
await mainPage.createDefaultBoardByCoordinates(400, 300);
await designPanelPage.changeHeightAndWidthForLayer('500', '600');
await mainPage.waitForChangeIsSaved();

View File

@ -8,6 +8,7 @@ const { DashboardPage } = require('../../pages/dashboard/dashboard-page');
const { LayersPanelPage } = require('../../pages/workspace/layers-panel-page');
const { DesignPanelPage } = require('../../pages/workspace/design-panel-page');
const { updateTestResults } = require('./../../helpers/saveTestResults.js');
const { qase } = require('playwright-qase-reporter/dist/playwright');
const teamName = random().concat('autotest');
@ -38,13 +39,13 @@ test.describe(() => {
await mainPage.waitForChangeIsSaved();
});
mainTest('CO-221 Import PNG image', async ({ page }) => {
mainTest(qase(436,'CO-221 Import PNG image'), async ({ page }) => {
const mainPage = new MainPage(page);
await mainPage.isCreatedLayerVisible();
await expect(mainPage.viewport).toHaveScreenshot('image-png.png');
});
mainTest('CO-225 Rename image with valid name', async ({ page }) => {
mainTest(qase(440,'CO-225 Rename image with valid name'), async ({ page }) => {
const mainPage = new MainPage(page);
const layersPanelPage = new LayersPanelPage(page);
await layersPanelPage.doubleClickLayerOnLayersTab('images');
@ -54,7 +55,7 @@ test.describe(() => {
});
mainTest(
'CO-227 Add, hide, unhide, change type and delete Shadow to image',
qase(442,'CO-227 Add, hide, unhide, change type and delete Shadow to image'),
async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
@ -101,7 +102,7 @@ test.describe(() => {
},
);
mainTest('CO-228 Add and edit Shadow to image', async ({ page }) => {
mainTest(qase(443,'CO-228 Add and edit Shadow to image'), async ({ page }) => {
const mainPage = new MainPage(page);
const colorPalettePage = new ColorPalettePage(page);
const designPanelPage = new DesignPanelPage(page);
@ -122,7 +123,7 @@ test.describe(() => {
await expect(mainPage.viewport).toHaveScreenshot('image-inner-shadow.png');
});
mainTest('CO-244 Change border radius multiple values', async ({ page }) => {
mainTest(qase(459,'CO-244 Change border radius multiple values'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await designPanelPage.clickIndividualCornersRadiusButton();
@ -134,7 +135,7 @@ test.describe(() => {
await expect(mainPage.viewport).toHaveScreenshot('image-png.png');
});
mainTest('CO-267 Selection to board', async ({ page }) => {
mainTest(qase(482,'CO-267 Selection to board'), async ({ page }) => {
const mainPage = new MainPage(page);
await mainPage.selectionToBoardViaRightClick();
await mainPage.waitForChangeIsSaved();
@ -151,13 +152,13 @@ test.describe(() => {
await mainPage.waitForChangeIsSaved();
});
mainTest('CO-220 Import JPEG image', async ({ page }) => {
mainTest(qase(435,'CO-220 Import JPEG image'), async ({ page }) => {
const mainPage = new MainPage(page);
await mainPage.isCreatedLayerVisible();
await expect(mainPage.viewport).toHaveScreenshot('image-jpeg.png');
});
mainTest('CO-229 Add, hide, unhide and delete Blur to image', async ({ page }) => {
mainTest(qase(444,'CO-229 Add, hide, unhide and delete Blur to image'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await designPanelPage.clickAddBlurButton();
@ -182,7 +183,7 @@ test.describe(() => {
});
});
mainTest('CO-231 Add, edit and delete Stroke to image', async ({ page }) => {
mainTest(qase(446,'CO-231 Add, edit and delete Stroke to image'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await designPanelPage.clickAddStrokeButton();
@ -253,7 +254,7 @@ test.describe(() => {
});
});
mainTest('CO-242-1 Delete image via rightclick', async ({ page }) => {
mainTest(qase(457,'CO-242-1 Delete image via rightclick'), async ({ page }) => {
const mainPage = new MainPage(page);
await mainPage.isCreatedLayerVisible();
await mainPage.deleteLayerViaRightClick();
@ -261,7 +262,7 @@ test.describe(() => {
await expect(mainPage.viewport).toHaveScreenshot('empty-canvas.png');
});
mainTest('CO-245 Change border radius one value', async ({ page }) => {
mainTest(qase(460,'CO-245 Change border radius one value'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await designPanelPage.changeGeneralCornerRadiusForLayer('30');
@ -278,7 +279,7 @@ test.describe(() => {
await expect(mainPage.viewport).toHaveScreenshot('image-corners-0.png');
});
mainTest('CO-412 Add rotation to image', async ({ page }) => {
mainTest(qase(1270,'CO-412 Add rotation to image'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await designPanelPage.changeRotationForLayer('90');
@ -295,7 +296,7 @@ test.describe(() => {
await expect(mainPage.viewport).toHaveScreenshot('image-rotated-359.png');
});
mainTest('CO-259 Flip Vertical and Flip Horizontal image', async ({ page }) => {
mainTest(qase(474,'CO-259 Flip Vertical and Flip Horizontal image'), async ({ page }) => {
const mainPage = new MainPage(page);
await mainPage.flipVerticalViaRightClick();
await mainPage.waitForChangeIsSaved();
@ -322,12 +323,12 @@ test.describe(() => {
await mainPage.waitForChangeIsSaved();
});
mainTest('CO-222 Import GIF image', async ({ page }) => {
mainTest(qase(437,'CO-222 Import GIF image'), async ({ page }) => {
const mainPage = new MainPage(page);
await mainPage.isCreatedLayerVisible();
});
mainTest('CO-242-2 Delete image via shortcut Del', async ({ page }) => {
mainTest(qase(457,'CO-242-2 Delete image via shortcut Del'), async ({ page }) => {
const mainPage = new MainPage(page);
await mainPage.isCreatedLayerVisible();
await mainPage.deleteLayerViaShortcut();

View File

@ -5,6 +5,7 @@ const { random } = require('../../helpers/string-generator');
const { TeamPage } = require('../../pages/dashboard/team-page');
const { DashboardPage } = require('../../pages/dashboard/dashboard-page');
const { updateTestResults } = require('./../../helpers/saveTestResults.js');
const { qase } = require('playwright-qase-reporter/dist/playwright');
const teamName = random().concat('autotest');
@ -38,7 +39,7 @@ test.describe(() => {
});
mainTest(
'CO-329 Add nodes via Node panel and SHIFT PLUS shortcut',
qase(544,'CO-329 Add nodes via Node panel and SHIFT PLUS shortcut'),
async ({ page }) => {
const mainPage = new MainPage(page);
await mainPage.holdShiftKeyboardButton();
@ -59,7 +60,7 @@ test.describe(() => {
);
mainTest(
'CO-330 Delete node via Node panel and Del shortcut',
qase(545,'CO-330 Delete node via Node panel and Del shortcut'),
async ({ page }) => {
const mainPage = new MainPage(page);
await mainPage.clickFirstNode();
@ -74,7 +75,7 @@ test.describe(() => {
);
mainTest(
'CO-332 Merge nodes via Node panel and CTRL J shortcut',
qase(547,'CO-332 Merge nodes via Node panel and CTRL J shortcut'),
async ({ page }) => {
const mainPage = new MainPage(page);
await mainPage.holdShiftKeyboardButton();
@ -96,7 +97,7 @@ test.describe(() => {
},
);
mainTest('CO-333 Join nodes via Node panel and J shortcut', async ({ page }) => {
mainTest(qase(548,'CO-333 Join nodes via Node panel and J shortcut'), async ({ page }) => {
const mainPage = new MainPage(page);
await mainPage.clickDrawNodesButtonOnNodePanel();
await mainPage.clickViewportByCoordinates(600, 200, 2);
@ -121,7 +122,7 @@ test.describe(() => {
});
mainTest(
'CO-334 Separate nodes via Node panel and K shortcut',
qase(549,'CO-334 Separate nodes via Node panel and K shortcut'),
async ({ page }) => {
const mainPage = new MainPage(page);
await mainPage.holdShiftKeyboardButton();
@ -146,7 +147,7 @@ test.describe(() => {
);
mainTest(
'CO-335 To corner via Node panel and X shortcut - single node',
qase(550,'CO-335 To corner via Node panel and X shortcut - single node'),
async ({ page }) => {
const mainPage = new MainPage(page);
await mainPage.clickFirstNode();
@ -166,7 +167,7 @@ test.describe(() => {
});
mainTest(
'CO-337 To curve via Node panel and C shortcut - single node',
qase(552,'CO-337 To curve via Node panel and C shortcut - single node'),
async ({ page }) => {
const mainPage = new MainPage(page);
await mainPage.clickCreateRectangleButton();

View File

@ -8,6 +8,7 @@ const { DashboardPage } = require('../../pages/dashboard/dashboard-page');
const { LayersPanelPage } = require('../../pages/workspace/layers-panel-page');
const { DesignPanelPage } = require('../../pages/workspace/design-panel-page');
const { updateTestResults } = require('./../../helpers/saveTestResults.js');
const { qase } = require('playwright-qase-reporter/dist/playwright');
const teamName = random().concat('autotest');
@ -29,21 +30,21 @@ test.afterEach(async ({ page }, testInfo) => {
await updateTestResults(testInfo.status, testInfo.retry)
});
mainTest('CO-272 Create Path from toolbar - closed BUG', async ({ page }) => {
mainTest(qase(487,'CO-272 Create Path from toolbar - closed BUG'), async ({ page }) => {
const mainPage = new MainPage(page);
await mainPage.createDefaultClosedPath();
await mainPage.isCreatedLayerVisible();
await expect(mainPage.viewport).toHaveScreenshot('path-closed.png');
});
mainTest('CO-274 Create Path from toolbar - opened', async ({ page }) => {
mainTest(qase(489,'CO-274 Create Path from toolbar - opened'), async ({ page }) => {
const mainPage = new MainPage(page);
await mainPage.createDefaultOpenPath();
await mainPage.isCreatedLayerVisible();
await expect(mainPage.viewport).toHaveScreenshot('path-opened.png');
});
mainTest('PENPOT-1755 Create Path from toolbar with cap', async ({ page }) => {
mainTest(qase(1755,'PENPOT-1755 Create Path from toolbar with cap'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await mainPage.createDefaultOpenPath();
@ -61,7 +62,7 @@ test.describe(() => {
await mainPage.createDefaultClosedPath();
});
mainTest('CO-277 Rename path with valid name BUG', async ({ page }) => {
mainTest(qase(492,'CO-277 Rename path with valid name BUG'), async ({ page }) => {
const mainPage = new MainPage(page);
const layersPanelPage = new LayersPanelPage(page);
await layersPanelPage.doubleClickLayerOnLayersTab('Path');
@ -70,7 +71,7 @@ test.describe(() => {
await layersPanelPage.isLayerNameDisplayed('renamed path');
});
mainTest('CO-282 Add, hide, unhide and delete Blur to Path BUG', async ({ page }) => {
mainTest(qase(497,'CO-282 Add, hide, unhide and delete Blur to Path BUG'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await designPanelPage.clickAddBlurButton();
@ -95,7 +96,7 @@ test.describe(() => {
});
});
mainTest('CO-283 Add and edit Blur to path BUG', async ({ page }) => {
mainTest(qase(498,'CO-283 Add and edit Blur to path BUG'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await designPanelPage.clickAddBlurButton();
@ -104,7 +105,7 @@ test.describe(() => {
await expect(mainPage.viewport).toHaveScreenshot('path-blur.png');
});
mainTest('CO-297 Add rotation to path BUG', async ({ page }) => {
mainTest(qase(512,'CO-297 Add rotation to path BUG'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await designPanelPage.changeRotationForLayer('90');
@ -121,7 +122,7 @@ test.describe(() => {
await expect(mainPage.viewport).toHaveScreenshot('path-rotated-359.png');
});
mainTest('CO-298-1 Delete path via rightclick BUG', async ({ page }) => {
mainTest(qase(513,'CO-298-1 Delete path via rightclick BUG'), async ({ page }) => {
const mainPage = new MainPage(page);
await mainPage.isCreatedLayerVisible();
await mainPage.deleteLayerViaRightClick();
@ -129,7 +130,7 @@ test.describe(() => {
await expect(mainPage.viewport).toHaveScreenshot('empty-canvas.png');
});
mainTest('CO-298-2 Delete path via shortcut Del BUG', async ({ page }) => {
mainTest(qase(513,'CO-298-2 Delete path via shortcut Del BUG'), async ({ page }) => {
const mainPage = new MainPage(page);
await mainPage.isCreatedLayerVisible();
await mainPage.deleteLayerViaShortcut();
@ -138,7 +139,7 @@ test.describe(() => {
});
mainTest(
'CO-303 Hide and show path from rightclick and icons BUG',
qase(518,'CO-303 Hide and show path from rightclick and icons BUG'),
async ({ page }) => {
const mainPage = new MainPage(page);
const layersPanelPage = new LayersPanelPage(page);
@ -180,7 +181,7 @@ test.describe(() => {
},
);
mainTest('CO-310 Flip Vertical and Flip Horizontal path BUG', async ({ page }) => {
mainTest(qase(525,'CO-310 Flip Vertical and Flip Horizontal path BUG'), async ({ page }) => {
const mainPage = new MainPage(page);
await mainPage.flipVerticalViaRightClick();
await mainPage.waitForChangeIsSaved();
@ -198,7 +199,7 @@ test.describe(() => {
await expect(mainPage.viewport).toHaveScreenshot('path-non-flipped-jpeg.png');
});
mainTest('CO-322 Selection to board BUG', async ({ page }) => {
mainTest(qase(537,'CO-322 Selection to board BUG'), async ({ page }) => {
const mainPage = new MainPage(page);
await mainPage.selectionToBoardViaRightClick();
await mainPage.waitForChangeIsSaved();
@ -214,7 +215,7 @@ test.describe(() => {
});
mainTest(
'CO-279 Add, hide, unhide, change type and delete Shadow to Path',
qase(494,'CO-279 Add, hide, unhide, change type and delete Shadow to Path'),
async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
@ -258,7 +259,7 @@ test.describe(() => {
},
);
mainTest('CO-280 Add and edit Shadow to path', async ({ page }) => {
mainTest(qase(495,'CO-280 Add and edit Shadow to path'), async ({ page }) => {
const mainPage = new MainPage(page);
const colorPalettePage = new ColorPalettePage(page);
const designPanelPage = new DesignPanelPage(page);

View File

@ -8,6 +8,7 @@ const { DashboardPage } = require('../../pages/dashboard/dashboard-page');
const { DesignPanelPage } = require('../../pages/workspace/design-panel-page');
const { LayersPanelPage } = require('../../pages/workspace/layers-panel-page');
const { updateTestResults } = require('./../../helpers/saveTestResults.js');
const { qase } = require('playwright-qase-reporter/dist/playwright');
const teamName = random().concat('autotest');
@ -38,7 +39,7 @@ test.describe(() => {
await mainPage.waitForChangeIsSaved();
});
mainTest('CO-59 Create a rectangle from toolbar', async ({ page }) => {
mainTest(qase(274,'CO-59 Create a rectangle from toolbar'), async ({ page }) => {
const mainPage = new MainPage(page);
await mainPage.isCreatedLayerVisible();
await expect(mainPage.viewport).toHaveScreenshot('rectangle.png');
@ -46,7 +47,7 @@ test.describe(() => {
mainTest.skip(
// todo bug 6359 > need to update after fix
"CO-68 Click 'Focus off' rectangle from shortcut F",
qase(283,"CO-68 Click 'Focus off' rectangle from shortcut F"),
async ({ page }) => {
const mainPage = new MainPage(page);
await mainPage.focusLayerViaRightClickOnCanvas();
@ -67,7 +68,7 @@ test.describe(() => {
);
mainTest(
'CO-69 Add, hide, unhide, change type and delete Shadow to rectangle',
qase(284,'CO-69 Add, hide, unhide, change type and delete Shadow to rectangle'),
async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
@ -115,7 +116,7 @@ test.describe(() => {
);
mainTest(
'CO-72 Add, hide, unhide and delete Blur to rectangle',
qase(287,'CO-72 Add, hide, unhide and delete Blur to rectangle'),
async ({ page }) => {
const mainPage = new MainPage(page);
const colorPalettePage = new ColorPalettePage(page);
@ -149,7 +150,7 @@ test.describe(() => {
},
);
mainTest('CO-74 Add, edit and delete Stroke to rectangle', async ({ page }) => {
mainTest(qase(289,'CO-74 Add, edit and delete Stroke to rectangle'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await designPanelPage.clickAddStrokeButton();
@ -228,7 +229,7 @@ test.describe(() => {
});
});
mainTest('CO-80 Rename rectangle with valid name', async ({ page }) => {
mainTest(qase(295,'CO-80 Rename rectangle with valid name'), async ({ page }) => {
const mainPage = new MainPage(page);
const layersPanelPage = new LayersPanelPage(page);
await layersPanelPage.doubleClickLayerOnLayersTab('Rectangle');
@ -237,7 +238,7 @@ test.describe(() => {
await layersPanelPage.isLayerNameDisplayed('renamed rectangle');
});
mainTest('CO-70 Add and edit Shadow to rectangle', async ({ page }) => {
mainTest(qase(285,'CO-70 Add and edit Shadow to rectangle'), async ({ page }) => {
const mainPage = new MainPage(page);
const colorPalettePage = new ColorPalettePage(page);
const designPanelPage = new DesignPanelPage(page);
@ -258,7 +259,7 @@ test.describe(() => {
await expect(mainPage.viewport).toHaveScreenshot('rectangle-inner-shadow.png');
});
mainTest('CO-73 Add and edit Blur to rectangle', async ({ page }) => {
mainTest(qase(288,'CO-73 Add and edit Blur to rectangle'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await designPanelPage.clickAddBlurButton();
@ -267,7 +268,7 @@ test.describe(() => {
await expect(mainPage.viewport).toHaveScreenshot('rectangle-blur.png');
});
mainTest('CO-76-1 Delete rectangle via rightclick', async ({ page }) => {
mainTest(qase(291,'CO-76-1 Delete rectangle via rightclick'), async ({ page }) => {
const mainPage = new MainPage(page);
await mainPage.isCreatedLayerVisible();
await mainPage.deleteLayerViaRightClick();
@ -275,7 +276,7 @@ test.describe(() => {
await expect(mainPage.viewport).toHaveScreenshot('empty-canvas.png');
});
mainTest('CO-76-2 Delete rectangle via shortcut Del', async ({ page }) => {
mainTest(qase(291,'CO-76-2 Delete rectangle via shortcut Del'), async ({ page }) => {
const mainPage = new MainPage(page);
await mainPage.isCreatedLayerVisible();
await mainPage.deleteLayerViaShortcut();
@ -283,7 +284,7 @@ test.describe(() => {
await expect(mainPage.viewport).toHaveScreenshot('empty-canvas.png');
});
mainTest('CO-62 Add rotation to rectangle', async ({ page }) => {
mainTest(qase(277,'CO-62 Add rotation to rectangle'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await designPanelPage.changeRotationForLayer('90');
@ -300,7 +301,7 @@ test.describe(() => {
await expect(mainPage.viewport).toHaveScreenshot('rectangle-rotated-359.png');
});
mainTest('CO-63 Change border radius multiple values', async ({ page }) => {
mainTest(qase(278,'CO-63 Change border radius multiple values'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await designPanelPage.clickIndividualCornersRadiusButton();
@ -314,7 +315,7 @@ test.describe(() => {
await expect(mainPage.viewport).toHaveScreenshot('rectangle.png');
});
mainTest('CO-104 Transform rectangle to path', async ({ page }) => {
mainTest(qase(319,'CO-104 Transform rectangle to path'), async ({ page }) => {
const mainPage = new MainPage(page);
await mainPage.transformToPathViaRightClick();
await mainPage.waitForChangeIsSaved();
@ -323,7 +324,7 @@ test.describe(() => {
});
});
mainTest('CO-111 Selection to board', async ({ page }) => {
mainTest(qase(326,'CO-111 Selection to board'), async ({ page }) => {
const mainPage = new MainPage(page);
await mainPage.selectionToBoardViaRightClick();
await mainPage.waitForChangeIsSaved();

View File

@ -9,6 +9,7 @@ const { DesignPanelPage } = require('../../pages/workspace/design-panel-page');
const { LayersPanelPage } = require('../../pages/workspace/layers-panel-page');
const { updateTestResults } = require('./../../helpers/saveTestResults.js');
const { InspectPanelPage } = require('../../pages/workspace/inspect-panel-page');
const { qase } = require('playwright-qase-reporter/dist/playwright');
const teamName = random().concat('autotest');
@ -37,13 +38,13 @@ test.describe(() => {
await mainPage.createDefaultTextLayer(browserName);
});
mainTest('CO-162 Create a text from toolbar', async ({ page }) => {
mainTest(qase(377,'CO-162 Create a text from toolbar'), async ({ page }) => {
const mainPage = new MainPage(page);
await mainPage.isCreatedLayerVisible();
await expect(mainPage.viewport).toHaveScreenshot('text.png');
});
mainTest('CO-165 Add rotation to text', async ({ page }) => {
mainTest(qase(380,'CO-165 Add rotation to text'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await designPanelPage.changeRotationForLayer('90');
@ -61,7 +62,7 @@ test.describe(() => {
});
mainTest(
'CO-166 Add, hide, unhide, change type and delete Shadow to Text',
qase(381,'CO-166 Add, hide, unhide, change type and delete Shadow to Text'),
async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
@ -105,7 +106,7 @@ test.describe(() => {
},
);
mainTest('CO-167 Add and edit Shadow to text', async ({ page }) => {
mainTest(qase(382,'CO-167 Add and edit Shadow to text'), async ({ page }) => {
const mainPage = new MainPage(page);
const colorPalettePage = new ColorPalettePage(page);
const designPanelPage = new DesignPanelPage(page);
@ -126,7 +127,7 @@ test.describe(() => {
await expect(mainPage.viewport).toHaveScreenshot('text-inner-shadow.png');
});
mainTest('CO-169 Add, hide, unhide and delete Blur to text', async ({ page }) => {
mainTest(qase(384,'CO-169 Add, hide, unhide and delete Blur to text'), async ({ page }) => {
const mainPage = new MainPage(page);
const colorPalettePage = new ColorPalettePage(page);
const designPanelPage = new DesignPanelPage(page);
@ -155,7 +156,7 @@ test.describe(() => {
});
});
mainTest('CO-170 Add and edit Blur to text', async ({ page }) => {
mainTest(qase(385,'CO-170 Add and edit Blur to text'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await designPanelPage.clickAddBlurButton();
@ -164,7 +165,7 @@ test.describe(() => {
await expect(mainPage.viewport).toHaveScreenshot('text-blur.png');
});
mainTest('CO-171 Add, edit and delete Stroke to Text', async ({ page }) => {
mainTest(qase(386,'CO-171 Add, edit and delete Stroke to Text'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await designPanelPage.clickAddStrokeButton();
@ -217,21 +218,21 @@ test.describe(() => {
});
});
mainTest('CO-173-1 Delete text via rightclick', async ({ page }) => {
mainTest(qase(388,'CO-173-1 Delete text via rightclick'), async ({ page }) => {
const mainPage = new MainPage(page);
await mainPage.deleteLayerViaRightClick();
await mainPage.waitForChangeIsSaved();
await expect(mainPage.viewport).toHaveScreenshot('empty-canvas.png');
});
mainTest('CO-173-2 Delete text via shortcut Del', async ({ page }) => {
mainTest(qase(388,'CO-173-2 Delete text via shortcut Del'), async ({ page }) => {
const mainPage = new MainPage(page);
await mainPage.deleteLayerViaShortcut();
await mainPage.waitForChangeIsSaved();
await expect(mainPage.viewport).toHaveScreenshot('empty-canvas.png');
});
mainTest('CO-177 Rename text with valid name', async ({ page }) => {
mainTest(qase(392,'CO-177 Rename text with valid name'), async ({ page }) => {
const mainPage = new MainPage(page);
const layersPanelPage = new LayersPanelPage(page);
await layersPanelPage.doubleClickLayerOnLayersTab('Hello World!');
@ -240,7 +241,7 @@ test.describe(() => {
await layersPanelPage.isLayerNameDisplayed('renamed text');
});
mainTest('CO-209 Change text uppercase, lowercase', async ({ page }) => {
mainTest(qase(424,'CO-209 Change text uppercase, lowercase'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await designPanelPage.changeTextCase('Upper');
@ -254,7 +255,7 @@ test.describe(() => {
await expect(mainPage.viewport).toHaveScreenshot('text-lower-case.png');
});
mainTest('CO-210 Change alignment', async ({ page }) => {
mainTest(qase(425,'CO-210 Change alignment'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await designPanelPage.changeHeightAndWidthForLayer('200', '200');
@ -269,7 +270,7 @@ test.describe(() => {
await expect(mainPage.viewport).toHaveScreenshot('text-align-top.png');
});
mainTest('CO-212 Change RTL/LTR', async ({ page }) => {
mainTest(qase(427,'CO-212 Change RTL/LTR'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await designPanelPage.changeTextDirection('RTL');
@ -285,7 +286,7 @@ test.describe(() => {
});
mainTest(
'CO-216 Change text color and opacity by typing color code, PENPOT-1753 Check text color in inspect mode',
qase(431,'CO-216 Change text color and opacity by typing color code, PENPOT-1753 Check text color in inspect mode'),
async ({ page }) => {
const mainPage = new MainPage(page);
const colorPalettePage = new ColorPalettePage(page);
@ -304,7 +305,7 @@ test.describe(() => {
},
);
mainTest('CO-219 Selection to board', async ({ page }) => {
mainTest(qase(434,'CO-219 Selection to board'), async ({ page }) => {
const mainPage = new MainPage(page);
await mainPage.selectionToBoardViaRightClick();
await mainPage.waitForChangeIsSaved();

View File

@ -5,6 +5,7 @@ const { random } = require('../../helpers/string-generator');
const { test } = require('@playwright/test');
const { TeamPage } = require('../../pages/dashboard/team-page');
const { updateTestResults } = require('./../../helpers/saveTestResults.js');
const { qase } = require('playwright-qase-reporter/dist/playwright');
const teamName = random().concat('autotest');
@ -20,7 +21,7 @@ test.afterEach(async ({ page }, testInfo) => {
await updateTestResults(testInfo.status, testInfo.retry)
});
mainTest('DA-1 Create new file in Drafts on title panel', async ({ page }) => {
mainTest(qase(55,'DA-1 Create new file in Drafts on title panel'), async ({ page }) => {
const dashboardPage = new DashboardPage(page);
const mainPage = new MainPage(page);
await dashboardPage.createFileViaTitlePanel();
@ -31,7 +32,7 @@ mainTest('DA-1 Create new file in Drafts on title panel', async ({ page }) => {
});
mainTest(
"DA-2 Create new file in Drafts via 'New file' placeholder",
qase(56,"DA-2 Create new file in Drafts via 'New file' placeholder"),
async ({ page }) => {
const dashboardPage = new DashboardPage(page);
const mainPage = new MainPage(page);
@ -41,7 +42,7 @@ mainTest(
},
);
mainTest('DA-3 Open file in Drafts', async ({ page }) => {
mainTest(qase(57,'DA-3 Open file in Drafts'), async ({ page }) => {
const dashboardPage = new DashboardPage(page);
const mainPage = new MainPage(page);
await dashboardPage.createFileViaPlaceholder();
@ -53,7 +54,7 @@ mainTest('DA-3 Open file in Drafts', async ({ page }) => {
await mainPage.backToDashboardFromFileEditor();
});
mainTest('DA-5 Rename file in Drafts via rightclick', async ({ page }) => {
mainTest(qase(59,'DA-5 Rename file in Drafts via right click'), async ({ page }) => {
const dashboardPage = new DashboardPage(page);
const mainPage = new MainPage(page);
await dashboardPage.createFileViaPlaceholder();
@ -61,7 +62,7 @@ mainTest('DA-5 Rename file in Drafts via rightclick', async ({ page }) => {
await dashboardPage.renameFile('test');
});
mainTest('DA-7 Duplicate file in Drafts via rightclick', async ({ page }) => {
mainTest(qase(61,'DA-7 Duplicate file in Drafts via right click'), async ({ page }) => {
const dashboardPage = new DashboardPage(page);
const mainPage = new MainPage(page);
await dashboardPage.createFileViaPlaceholder();
@ -75,7 +76,7 @@ mainTest('DA-7 Duplicate file in Drafts via rightclick', async ({ page }) => {
});
mainTest(
'DA-9 Add file as Shared Library in Drafts via rightclick',
qase(63,'DA-9 Add file as Shared Library in Drafts via right click'),
async ({ page }) => {
const dashboardPage = new DashboardPage(page);
const mainPage = new MainPage(page);
@ -87,7 +88,7 @@ mainTest(
);
mainTest(
'DA-11 Remove file as Shared Library via Options icon in Drafts',
qase(65,'DA-11 Remove file as Shared Library via Options icon in Drafts'),
async ({ page }) => {
const dashboardPage = new DashboardPage(page);
const mainPage = new MainPage(page);
@ -107,7 +108,7 @@ mainTest(
);
mainTest(
'DA-12 Remove file as Shared Library in Drafts via rightclick',
qase(66,'DA-12 Remove file as Shared Library in Drafts via right click'),
async ({ page }) => {
const dashboardPage = new DashboardPage(page);
const mainPage = new MainPage(page);
@ -120,7 +121,7 @@ mainTest(
},
);
mainTest('DA-13 Download Penpot file in Drafts via rightclick', async ({ page }) => {
mainTest(qase(67,'DA-13 Download Penpot file in Drafts via right click'), async ({ page }) => {
const dashboardPage = new DashboardPage(page);
const mainPage = new MainPage(page);
await dashboardPage.createFileViaPlaceholder();
@ -129,7 +130,7 @@ mainTest('DA-13 Download Penpot file in Drafts via rightclick', async ({ page })
});
mainTest(
'DA-15 Download standard file in Drafts via rightclick',
qase(69,'DA-15 Download standard file in Drafts via right click'),
async ({ page }) => {
const dashboardPage = new DashboardPage(page);
const mainPage = new MainPage(page);
@ -139,7 +140,7 @@ mainTest(
},
);
mainTest.skip('DA-17 Import file to Drafts .penpot', async ({ page }) => {
mainTest.skip(qase(71,'DA-17 Import file to Drafts .penpot'), async ({ page }) => {
const dashboardPage = new DashboardPage(page);
await dashboardPage.openSidebarItem('Drafts');
await dashboardPage.importFileFromProjectPage(
@ -149,7 +150,7 @@ mainTest.skip('DA-17 Import file to Drafts .penpot', async ({ page }) => {
await dashboardPage.isFilePresent('Wireframing kit'); // todo: issue 5596
});
mainTest.skip('DA-18 Import file to Drafts svgjson', async ({ page }) => {
mainTest.skip(qase(72,'DA-18 Import file to Drafts svgjson'), async ({ page }) => {
const dashboardPage = new DashboardPage(page);
await dashboardPage.openSidebarItem('Drafts');
await dashboardPage.importFileFromProjectPage(
@ -159,7 +160,7 @@ mainTest.skip('DA-18 Import file to Drafts svgjson', async ({ page }) => {
await dashboardPage.isFilePresent('Wireframing kit');
});
mainTest('DA-22 Delete file in Drafts via rightclick', async ({ page }) => {
mainTest(qase(76,'DA-22 Delete file in Drafts via right click'), async ({ page }) => {
const dashboardPage = new DashboardPage(page);
const mainPage = new MainPage(page);
await dashboardPage.createFileViaPlaceholder();
@ -172,7 +173,7 @@ mainTest('DA-22 Delete file in Drafts via rightclick', async ({ page }) => {
await dashboardPage.checkNumberOfFiles('0 files');
});
mainTest('DA-24 Create new project', async ({ page }) => {
mainTest(qase(78,'DA-24 Create new project'), async ({ page }) => {
const dashboardPage = new DashboardPage(page);
await dashboardPage.clickAddProjectButton();
await dashboardPage.setProjectName('Test Project');
@ -180,7 +181,7 @@ mainTest('DA-24 Create new project', async ({ page }) => {
});
mainTest(
'DA-25 Create a file in Project via plus button on title panel',
qase(79,'DA-25 Create a file in Project via plus button on title panel'),
async ({ page }) => {
const dashboardPage = new DashboardPage(page);
const mainPage = new MainPage(page);
@ -194,7 +195,7 @@ mainTest(
);
mainTest(
"DA-26 Create a file in Project via 'New file' placeholder",
qase(80,"DA-26 Create a file in Project via 'New file' placeholder"),
async ({ page }) => {
const dashboardPage = new DashboardPage(page);
const mainPage = new MainPage(page);
@ -207,7 +208,7 @@ mainTest(
},
);
mainTest('DA-28 Rename file in Project', async ({ page }) => {
mainTest(qase(1114,'DA-28 Rename file in Project'), async ({ page }) => {
const dashboardPage = new DashboardPage(page);
const mainPage = new MainPage(page);
await dashboardPage.clickAddProjectButton();
@ -219,7 +220,7 @@ mainTest('DA-28 Rename file in Project', async ({ page }) => {
await dashboardPage.renameFile('test_rightclick');
});
mainTest('DA-29 Duplicate file in Project', async ({ page }) => {
mainTest(qase(1115,'DA-29 Duplicate file in Project'), async ({ page }) => {
const dashboardPage = new DashboardPage(page);
const mainPage = new MainPage(page);
await dashboardPage.clickAddProjectButton();
@ -244,7 +245,7 @@ mainTest('DA-29 Duplicate file in Project', async ({ page }) => {
});
mainTest(
'DA-33-1 Add file as Shared Library in Project via rightclick',
qase(1119,'DA-33-1 Add file as Shared Library in Project via right click'),
async ({ page }) => {
const dashboardPage = new DashboardPage(page);
const mainPage = new MainPage(page);
@ -259,7 +260,7 @@ mainTest(
);
mainTest(
'DA-33-2 Add file as Shared Library in Project via Options icon',
qase(1119,'DA-33-2 Add file as Shared Library in Project via Options icon'),
async ({ page }) => {
const dashboardPage = new DashboardPage(page);
const mainPage = new MainPage(page);
@ -274,7 +275,7 @@ mainTest(
);
mainTest(
'DA-34-1 Remove file as Shared Library in Project via rightclick',
qase(1120,'DA-34-1 Remove file as Shared Library in Project via right click'),
async ({ page }) => {
const dashboardPage = new DashboardPage(page);
const mainPage = new MainPage(page);
@ -291,7 +292,7 @@ mainTest(
);
mainTest(
'DA-34-2 Remove file as Shared Library in Project via Options icon',
qase(1120,'DA-34-2 Remove file as Shared Library in Project via Options icon'),
async ({ page }) => {
const dashboardPage = new DashboardPage(page);
const mainPage = new MainPage(page);
@ -309,7 +310,7 @@ mainTest(
);
mainTest(
'DA-35-1 Download Penpot file in Project via rightclick',
qase(1121,'DA-35-1 Download Penpot file in Project via right click'),
async ({ page }) => {
const dashboardPage = new DashboardPage(page);
const mainPage = new MainPage(page);
@ -323,7 +324,7 @@ mainTest(
);
mainTest(
'DA-35-2 Download Penpot file in Project via Options icon',
qase(1121,'DA-35-2 Download Penpot file in Project via Options icon'),
async ({ page }) => {
const dashboardPage = new DashboardPage(page);
const mainPage = new MainPage(page);
@ -337,7 +338,7 @@ mainTest(
);
mainTest(
'DA-36-1 Download standard file in Project via rightclick',
qase(1122,'DA-36-1 Download standard file in Project via right click'),
async ({ page }) => {
const dashboardPage = new DashboardPage(page);
const mainPage = new MainPage(page);
@ -351,7 +352,7 @@ mainTest(
);
mainTest(
'DA-36-2 Download standard file in Project via Options icon',
qase(1122,'DA-36-2 Download standard file in Project via Options icon'),
async ({ page }) => {
const dashboardPage = new DashboardPage(page);
const mainPage = new MainPage(page);
@ -364,7 +365,7 @@ mainTest(
},
);
mainTest('DA-37-1 Delete file in Project via rightclick', async ({ page }) => {
mainTest(qase(1123,'DA-37-1 Delete file in Project via right click'), async ({ page }) => {
const dashboardPage = new DashboardPage(page);
const mainPage = new MainPage(page);
await dashboardPage.clickAddProjectButton();
@ -380,7 +381,7 @@ mainTest('DA-37-1 Delete file in Project via rightclick', async ({ page }) => {
await dashboardPage.checkNumberOfFiles('0 files');
});
mainTest('DA-37-2 Delete file in Project via Options icon', async ({ page }) => {
mainTest(qase(1123,'DA-37-2 Delete file in Project via Options icon'), async ({ page }) => {
const dashboardPage = new DashboardPage(page);
const mainPage = new MainPage(page);
await dashboardPage.clickAddProjectButton();
@ -396,7 +397,7 @@ mainTest('DA-37-2 Delete file in Project via Options icon', async ({ page }) =>
await dashboardPage.checkNumberOfFiles('0 files');
});
mainTest('DA-52-1 Rename project via rightclick', async ({ page }) => {
mainTest(qase(1138,'DA-52-1 Rename project via right click'), async ({ page }) => {
const dashboardPage = new DashboardPage(page);
const mainPage = new MainPage(page);
await dashboardPage.clickAddProjectButton();
@ -409,7 +410,7 @@ mainTest('DA-52-1 Rename project via rightclick', async ({ page }) => {
);
});
mainTest('DA-52-2 Rename project via Options icon', async ({ page }) => {
mainTest(qase(1138,'DA-52-2 Rename project via Options icon'), async ({ page }) => {
const dashboardPage = new DashboardPage(page);
const mainPage = new MainPage(page);
await dashboardPage.clickAddProjectButton();
@ -422,7 +423,7 @@ mainTest('DA-52-2 Rename project via Options icon', async ({ page }) => {
);
});
mainTest('DA-53 Duplicate Project', async ({ page }) => {
mainTest(qase(1139,'DA-53 Duplicate Project'), async ({ page }) => {
const dashboardPage = new DashboardPage(page);
const mainPage = new MainPage(page);
await dashboardPage.clickAddProjectButton();
@ -437,7 +438,7 @@ mainTest('DA-53 Duplicate Project', async ({ page }) => {
await dashboardPage.isHeaderDisplayed('Test Project (copy) (copy)');
});
mainTest('DA-54 Unpin project', async ({ page }) => {
mainTest(qase(1140,'DA-54 Unpin project'), async ({ page }) => {
const dashboardPage = new DashboardPage(page);
await dashboardPage.clickAddProjectButton();
await dashboardPage.setProjectName('Test Project');
@ -450,7 +451,7 @@ mainTest('DA-54 Unpin project', async ({ page }) => {
);
});
mainTest('DA-55 Pin project', async ({ page }) => {
mainTest(qase(1141,'DA-55 Pin project'), async ({ page }) => {
const dashboardPage = new DashboardPage(page);
await dashboardPage.clickAddProjectButton();
await dashboardPage.setProjectName('Test Project');
@ -464,13 +465,13 @@ mainTest('DA-55 Pin project', async ({ page }) => {
await dashboardPage.checkPinnedProjectsSidebarItem('Test Project');
});
mainTest('DA-59 Import file to project - fail invalid format', async ({ page }) => {
mainTest(qase(1145,'DA-59 Import file to project - fail invalid format'), async ({ page }) => {
const dashboardPage = new DashboardPage(page);
await dashboardPage.openSidebarItem('Drafts');
await dashboardPage.importFileWithInvalidFormat('images/images.png');
});
mainTest('DA-60-1 Delete project via rightclick', async ({ page }) => {
mainTest(qase(1146,'DA-60-1 Delete project via right click'), async ({ page }) => {
const dashboardPage = new DashboardPage(page);
const mainPage = new MainPage(page);
await dashboardPage.clickAddProjectButton();
@ -482,7 +483,7 @@ mainTest('DA-60-1 Delete project via rightclick', async ({ page }) => {
await dashboardPage.isProjectTitleDisplayed('Drafts');
});
mainTest('DA-60-2 Delete project via Options icon', async ({ page }) => {
mainTest(qase(1146,'DA-60-2 Delete project via Options icon'), async ({ page }) => {
const dashboardPage = new DashboardPage(page);
const mainPage = new MainPage(page);
await dashboardPage.clickAddProjectButton();
@ -494,7 +495,7 @@ mainTest('DA-60-2 Delete project via Options icon', async ({ page }) => {
await dashboardPage.isProjectTitleDisplayed('Drafts');
});
mainTest('DA-62 Search file from Drafts', async ({ page }) => {
mainTest(qase(1148,'DA-62 Search file from Drafts'), async ({ page }) => {
const dashboardPage = new DashboardPage(page);
const mainPage = new MainPage(page);
await dashboardPage.createFileViaPlaceholder();
@ -506,7 +507,7 @@ mainTest('DA-62 Search file from Drafts', async ({ page }) => {
await dashboardPage.isFilePresent('qwe');
});
mainTest('DA-63 Search file from Projects', async ({ page }) => {
mainTest(qase(1149,'DA-63 Search file from Projects'), async ({ page }) => {
const dashboardPage = new DashboardPage(page);
const mainPage = new MainPage(page);
await dashboardPage.clickAddProjectButton();

View File

@ -4,6 +4,7 @@ const { test } = require('@playwright/test');
const { random } = require('../../helpers/string-generator');
const { TeamPage } = require('../../pages/dashboard/team-page');
const { updateTestResults } = require('./../../helpers/saveTestResults.js');
const { qase } = require('playwright-qase-reporter/dist/playwright');
const teamName = random().concat('autotest');
@ -19,20 +20,20 @@ test.afterEach(async ({ page }, testInfo) => {
await updateTestResults(testInfo.status, testInfo.retry)
});
mainTest('DA-66 Upload single font', async ({ page }) => {
mainTest(qase(1152,'DA-66 Upload single font'), async ({ page }) => {
const dashboardPage = new DashboardPage(page);
await dashboardPage.openSidebarItem('Fonts');
await dashboardPage.uploadFont('fonts/Pacifico.ttf');
await dashboardPage.isFontExists('Pacifico', 'Regular');
});
mainTest('DA-68 Fonts - upload fail invalid file format', async ({ page }) => {
mainTest(qase(1154,'DA-68 Fonts - upload fail invalid file format'), async ({ page }) => {
const dashboardPage = new DashboardPage(page);
await dashboardPage.openSidebarItem('Fonts');
await dashboardPage.uploadFontWithInvalidFormat('images/images.png');
});
mainTest('DA-69 Search font', async ({ page }) => {
mainTest(qase(1155,'DA-69 Search font'), async ({ page }) => {
const dashboardPage = new DashboardPage(page);
await dashboardPage.openSidebarItem('Fonts');
await dashboardPage.uploadFont('fonts/ArialTh.ttf');
@ -42,7 +43,7 @@ mainTest('DA-69 Search font', async ({ page }) => {
await dashboardPage.isFontNotExist('Allura-Regular');
});
mainTest('DA-71 Edit font BUG', async ({ page }) => {
mainTest(qase(1157,'DA-71 Edit font BUG'), async ({ page }) => {
const dashboardPage = new DashboardPage(page);
await dashboardPage.openSidebarItem('Fonts');
await dashboardPage.uploadFont('fonts/Allura-Regular.otf');
@ -51,7 +52,7 @@ mainTest('DA-71 Edit font BUG', async ({ page }) => {
await dashboardPage.isFontExists('New Test Font', 'Regular');
});
mainTest('DA-72 Delete font', async ({ page }) => {
mainTest(qase(1158,'DA-72 Delete font'), async ({ page }) => {
const dashboardPage = new DashboardPage(page);
await dashboardPage.openSidebarItem('Fonts');
await dashboardPage.uploadFont('fonts/Pacifico.ttf');

View File

@ -9,6 +9,7 @@ const { DesignPanelPage } = require('../../pages/workspace/design-panel-page');
const { LayersPanelPage } = require('../../pages/workspace/layers-panel-page');
const { ColorPalettePage } = require('../../pages/workspace/color-palette-page');
const { updateTestResults } = require('./../../helpers/saveTestResults.js');
const { qase } = require('playwright-qase-reporter/dist/playwright');
const teamName = random().concat('autotest');
@ -33,7 +34,7 @@ test.afterEach(async ({ page }, testInfo) => {
});
mainTest(
'PENPOT-1084 Check view for empty library',
qase(1084,'PENPOT-1084 Check view for empty library'),
async () => {
await mainPage.clickPencilBoxButton();
await dashboardPage.addFileAsSharedLibraryViaOptionsIcon();
@ -47,7 +48,7 @@ mainTest(
);
mainTest(
'PENPOT-1541 Create 2 rectangles and look library view',
qase(1541,'PENPOT-1541 Create 2 rectangles and look library view'),
async () => {
await mainPage.createDefaultRectangleByCoordinates(200, 200);
await mainPage.createComponentViaRightClick();
@ -67,7 +68,7 @@ mainTest(
);
mainTest(
'PENPOT-1542 Create 4 ellipses and look at library view',
qase(1542,'PENPOT-1542 Create 4 ellipses and look at library view'),
async () => {
await mainPage.createDefaultEllipseByCoordinates(200, 200);
await mainPage.createComponentViaRightClick();
@ -93,7 +94,7 @@ mainTest(
);
mainTest(
'PENPOT-1351 Check actual library view after adding / updating / removing assets',
qase(1351,'PENPOT-1351 Check actual library view after adding / updating / removing assets'),
async () => {
await mainPage.createDefaultTextLayer(200, 300);
await mainPage.createComponentViaRightClick();
@ -139,7 +140,7 @@ mainTest(
);
mainTest(
'PENPOT-1476 Check view for library with one type of assets',
qase(1476,'PENPOT-1476 Check view for library with one type of assets'),
async () => {
await mainPage.createDefaultRectangleByCoordinates(200, 300);
await mainPage.createComponentViaRightClick();
@ -173,7 +174,7 @@ test.describe(() => {
});
mainTest(
'PENPOT-1057 Rename file from Libraries tab',
qase(1057,'PENPOT-1057 Rename file from Libraries tab'),
async () => {
await dashboardPage.renameFile('Renamed Test File');
await dashboardPage.isFilePresent('Renamed Test File');
@ -181,7 +182,7 @@ test.describe(() => {
);
mainTest(
'PENPOT-1058 Duplicate file from Libraries tab',
qase(1058,'PENPOT-1058 Duplicate file from Libraries tab'),
async () => {
await dashboardPage.duplicateFileViaRightclick();
await dashboardPage.openSidebarItem('Projects');

View File

@ -6,12 +6,13 @@ const { DashboardPage } = require('../../pages/dashboard/dashboard-page');
const { MainPage } = require('../../pages/workspace/main-page');
const { random } = require('../../helpers/string-generator');
const { updateTestResults } = require('./../../helpers/saveTestResults.js');
const { qase } = require('playwright-qase-reporter/dist/playwright');
test.describe(() => {
const team = random().concat('autotest');
mainTest('DA-76 Create a team', async ({ page }) => {
mainTest(qase(1162,'DA-76 Create a team'), async ({ page }) => {
const teamPage = new TeamPage(page);
await teamPage.createTeam(team);
await teamPage.isTeamSelected(team);
@ -27,7 +28,7 @@ test.describe(() => {
const team1 = random().concat('QA Test team 1');
const team2 = random().concat('QA Test team 2');
mainTest('DA-77 Team.Switch between teams', async ({ page }) => {
mainTest(qase(1163,'DA-77 Team.Switch between teams'), async ({ page }) => {
const teamPage = new TeamPage(page);
await teamPage.createTeam(team1);
await teamPage.isTeamSelected(team1);
@ -47,7 +48,7 @@ test.describe(() => {
const team = random().concat('autotest');
mainTest(
'DA-78 Team Invitations - open the form via Invitations tab',
qase(1164,'DA-78 Team Invitations - open the form via Invitations tab'),
async ({ page }) => {
const teamPage = new TeamPage(page);
await teamPage.createTeam(team);
@ -70,7 +71,7 @@ test.describe(() => {
const team = random().concat('autotest');
mainTest(
'DA-79 Team Invitations - open the form via Team Hero',
qase(1165,'DA-79 Team Invitations - open the form via Team Hero'),
async ({ page }) => {
const teamPage = new TeamPage(page);
await teamPage.createTeam(team);
@ -92,7 +93,7 @@ test.describe(() => {
const team = random().concat('autotest');
mainTest(
'DA-80 Team Invitations invite via owner single invitation, editor',
qase(1166,'DA-80 Team Invitations invite via owner single invitation, editor'),
async ({ page }) => {
const teamPage = new TeamPage(page);
await teamPage.createTeam(team);
@ -123,7 +124,7 @@ test.describe(() => {
const team = random().concat('autotest');
mainTest(
'DA-81 Team Invitations - invite via owner single invitation, admin',
qase(1167,'DA-81 Team Invitations - invite via owner single invitation, admin'),
async ({ page }) => {
const teamPage = new TeamPage(page);
await teamPage.createTeam(team);
@ -155,7 +156,7 @@ test.describe(() => {
const team = random().concat('autotest');
mainTest(
'DA-89 Team.Invitations-fail to send invitation to existing team member',
qase(1175,'DA-89 Team.Invitations-fail to send invitation to existing team member'),
async ({ page }) => {
const teamPage = new TeamPage(page);
await teamPage.createTeam(team);
@ -183,7 +184,7 @@ test.describe(() => {
const team = random().concat('autotest');
mainTest(
'DA-90 Team Invitations - resend invitation via owner',
qase(1176,'DA-90 Team Invitations - resend invitation via owner'),
async ({ page }) => {
const teamPage = new TeamPage(page);
await teamPage.createTeam(team);
@ -216,7 +217,7 @@ test.describe(() => {
const team = random().concat('autotest');
mainTest(
'DA-92 Team Invitations - delete invitation via owner',
qase(1178,'DA-92 Team Invitations - delete invitation via owner'),
async ({ page }) => {
const teamPage = new TeamPage(page);
await teamPage.createTeam(team);
@ -249,7 +250,7 @@ test.describe(() => {
const team = random().concat('autotest');
mainTest(
'DA-95 Team Invitations - change role in invitation via owner',
qase(1181,'DA-95 Team Invitations - change role in invitation via owner'),
async ({ page }) => {
const teamPage = new TeamPage(page);
await teamPage.createTeam(team);
@ -286,7 +287,7 @@ test.describe(() => {
const team = random().concat('autotest');
mainTest(
'DA-114 Team Settings - upload team profile picture',
qase(1200,'DA-114 Team Settings - upload team profile picture'),
async ({ page }) => {
const teamPage = new TeamPage(page);
await teamPage.createTeam(team);
@ -313,7 +314,7 @@ test.describe(() => {
test.describe(() => {
const team = random().concat('autotest');
mainTest("DA-116 Team. Settings - check 'Team members' info", async ({ page }) => {
mainTest(qase(1202,"DA-116 Team. Settings - check 'Team members' info"), async ({ page }) => {
const teamPage = new TeamPage(page);
const profilePage = new ProfilePage(page);
await profilePage.openYourAccountPage();
@ -342,7 +343,7 @@ test.describe(() => {
const team = random().concat('autotest');
mainTest(
"DA-117 Team. Settings - check 'Team projects' info",
qase(1203,"DA-117 Team. Settings - check 'Team projects' info"),
async ({ page }) => {
const dashboardPage = new DashboardPage(page);
const teamPage = new TeamPage(page);
@ -385,7 +386,7 @@ test.describe(() => {
const team = random().concat('autotest');
const teamNew = random().concat('autotest');
mainTest('DA-119 Rename a team via owner', async ({ page }) => {
mainTest(qase(1205,'DA-119 Rename a team via owner'), async ({ page }) => {
const teamPage = new TeamPage(page);
await teamPage.createTeam(team);
await teamPage.isTeamSelected(team);
@ -402,7 +403,7 @@ test.describe(() => {
test.describe(() => {
const team = random().concat('autotest');
mainTest('DA-122 Delete a team via owner', async ({ page }) => {
mainTest(qase(1208,'DA-122 Delete a team via owner'), async ({ page }) => {
const teamPage = new TeamPage(page);
await teamPage.createTeam(team);
await teamPage.isTeamSelected(team);

View File

@ -2,8 +2,9 @@ const { test } = require('@playwright/test');
const { LoginPage } = require('../pages/login-page');
const { DashboardPage } = require('../pages/dashboard/dashboard-page');
const { updateTestResults } = require('./../helpers/saveTestResults.js');
const { qase } = require('playwright-qase-reporter/dist/playwright');
test('ON-8 Login with an email address', async ({ page }) => {
test(qase(35,'ON-8 Login with an email address'), async ({ page }) => {
const loginPage = new LoginPage(page);
await loginPage.goto();
await loginPage.acceptCookie();
@ -14,7 +15,7 @@ test('ON-8 Login with an email address', async ({ page }) => {
await dashboardPage.isHeaderDisplayed('Projects');
});
test('ON-13 Login with invalid email address', async ({ page }) => {
test(qase(40,'ON-13 Login with invalid email address'), async ({ page }) => {
const loginPage = new LoginPage(page);
await loginPage.goto();
await loginPage.acceptCookie();
@ -25,7 +26,7 @@ test('ON-13 Login with invalid email address', async ({ page }) => {
await loginPage.isLoginButtonDisabled();
});
test('ON-14 Login with no password', async ({ page }) => {
test(qase(41,'ON-14 Login with no password'), async ({ page }) => {
const loginPage = new LoginPage(page);
await loginPage.goto();
await loginPage.enterEmail(process.env.LOGIN_EMAIL);
@ -35,7 +36,7 @@ test('ON-14 Login with no password', async ({ page }) => {
await loginPage.isLoginButtonDisabled();
});
test('ON-15 Login with incorrect password', async ({ page }) => {
test(qase(42,'ON-15 Login with incorrect password'), async ({ page }) => {
const loginPage = new LoginPage(page);
await loginPage.goto();
await loginPage.enterEmail(process.env.LOGIN_EMAIL);

View File

@ -6,6 +6,7 @@ const { TeamPage } = require('../../pages/dashboard/team-page');
const { DashboardPage } = require('../../pages/dashboard/dashboard-page');
const { DesignPanelPage } = require('../../pages/workspace/design-panel-page');
const { updateTestResults } = require('./../../helpers/saveTestResults.js');
const { qase } = require('playwright-qase-reporter/dist/playwright');
const teamName = random().concat('autotest');
@ -27,7 +28,7 @@ test.afterEach(async ({ page }, testInfo) => {
await updateTestResults(testInfo.status, testInfo.retry)
});
mainTest('PF-179 Add export setting via design panel', async ({ page }) => {
mainTest(qase(897,'PF-179 Add export setting via design panel'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await mainPage.clickCreateRectangleButton();
@ -37,7 +38,7 @@ mainTest('PF-179 Add export setting via design panel', async ({ page }) => {
await designPanelPage.isExportElementButtonDisplayed('Export 1 element');
});
mainTest('PF-181 Remove export setting via design panel', async ({ page }) => {
mainTest(qase(899,'PF-181 Remove export setting via design panel'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await mainPage.clickCreateRectangleButton();

View File

@ -39,7 +39,7 @@ test.describe(() => {
await mainPage.isCreatedLayerVisible();
});
mainTest(qase(1,'PF-68 Add fill to board'), async ({ page }) => {
mainTest(qase(786,'PF-68 Add fill to board'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await designPanelPage.isFillHexCodeSet('FFFFFF');
@ -60,7 +60,7 @@ test.describe(() => {
await expect(mainPage.createdLayer).toHaveScreenshot('board-changed-fill.png');
});
mainTest('PF-78 Change fill opacity for board', async ({ page }) => {
mainTest(qase(796,'PF-78 Change fill opacity for board'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await designPanelPage.changeOpacityForFill('70');
@ -73,7 +73,7 @@ test.describe(() => {
);
});
mainTest('PF-93 Remove fill for board', async ({ page }) => {
mainTest(qase(811,'PF-93 Remove fill for board'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await designPanelPage.clickRemoveFillButton();
@ -89,7 +89,7 @@ test.describe(() => {
await mainPage.isCreatedLayerVisible();
});
mainTest('PF-72 Add fill to path', async ({ page }) => {
mainTest(qase(790,'PF-72 Add fill to path'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await designPanelPage.clickAddFillButton();
@ -99,7 +99,7 @@ test.describe(() => {
await expect(mainPage.createdLayer).toHaveScreenshot('path-fill.png');
});
mainTest('PF-77 Change fill color for path', async ({ page }) => {
mainTest(qase(795,'PF-77 Change fill color for path'), async ({ page }) => {
const mainPage = new MainPage(page);
const colorPalettePage = new ColorPalettePage(page);
const designPanelPage = new DesignPanelPage(page);
@ -114,7 +114,7 @@ test.describe(() => {
await expect(mainPage.createdLayer).toHaveScreenshot('path-changed-fill.png');
});
mainTest('PF-82 Change fill opacity for path', async ({ page }) => {
mainTest(qase(800,'PF-82 Change fill opacity for path'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await designPanelPage.clickAddFillButton();
@ -126,7 +126,7 @@ test.describe(() => {
await expect(mainPage.createdLayer).toHaveScreenshot('path-changed-opacity.png');
});
mainTest('PF-97 Remove fill for path', async ({ page }) => {
mainTest(qase(815,'PF-97 Remove fill for path'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await designPanelPage.clickAddFillButton();
@ -147,7 +147,7 @@ test.describe(() => {
await mainPage.isCreatedLayerVisible();
});
mainTest('PF-69 Add fill to shape', async ({ page }) => {
mainTest(qase(787,'PF-69 Add fill to shape'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await designPanelPage.isFillHexCodeSet('B1B2B5');
@ -155,7 +155,7 @@ test.describe(() => {
await expect(mainPage.createdLayer).toHaveScreenshot('rectangle-fill.png');
});
mainTest('PF-79 Change fill opacity for shape', async ({ page }) => {
mainTest(qase(797,'PF-79 Change fill opacity for shape'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await designPanelPage.changeOpacityForFill('70');
@ -167,7 +167,7 @@ test.describe(() => {
);
});
mainTest('PF-94 Remove fill for shape', async ({ page }) => {
mainTest(qase(812,'PF-94 Remove fill for shape'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await designPanelPage.clickRemoveFillButton();
@ -177,7 +177,7 @@ test.describe(() => {
);
});
mainTest('PF-74 Change fill color for shape', async ({ page }) => {
mainTest(qase(792,'PF-74 Change fill color for shape'), async ({ page }) => {
const mainPage = new MainPage(page);
const colorPalettePage = new ColorPalettePage(page);
const designPanelPage = new DesignPanelPage(page);

View File

@ -6,6 +6,7 @@ const { TeamPage } = require('../../pages/dashboard/team-page');
const { DashboardPage } = require('../../pages/dashboard/dashboard-page');
const { DesignPanelPage } = require('../../pages/workspace/design-panel-page');
const { updateTestResults } = require('./../../helpers/saveTestResults.js');
const { qase } = require('playwright-qase-reporter/dist/playwright');
const teamName = random().concat('autotest');
@ -36,7 +37,7 @@ test.describe(() => {
await mainPage.isCreatedLayerVisible();
});
mainTest('PF-1 Set square grid', async ({ page }) => {
mainTest(qase(719,'PF-1 Set square grid'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await designPanelPage.clickAddGridButton();
@ -44,7 +45,7 @@ test.describe(() => {
await expect(mainPage.createdLayer).toHaveScreenshot('square-grid-default.png');
});
mainTest('PF-2 Square grid - change size', async ({ page }) => {
mainTest(qase(720,'PF-2 Square grid - change size'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await designPanelPage.clickAddGridButton();
@ -57,7 +58,7 @@ test.describe(() => {
);
});
mainTest('PF-3 Square grid - change opacity', async ({ page }) => {
mainTest(qase(721,'PF-3 Square grid - change opacity'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await designPanelPage.clickAddGridButton();
@ -71,7 +72,7 @@ test.describe(() => {
);
});
mainTest('PF-4 Use default square grid', async ({ page }) => {
mainTest(qase(722,'PF-4 Use default square grid'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await designPanelPage.clickAddGridButton();
@ -85,7 +86,7 @@ test.describe(() => {
await expect(mainPage.createdLayer).toHaveScreenshot('square-grid-default.png');
});
mainTest('PF-6 Hide and unhide square grid via Design panel', async ({ page }) => {
mainTest(qase(724,'PF-6 Hide and unhide square grid via Design panel'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await designPanelPage.clickAddGridButton();
@ -99,7 +100,7 @@ test.describe(() => {
await expect(mainPage.createdLayer).toHaveScreenshot('square-grid-unhide.png');
});
mainTest('PF-7 Hide and unhide square grid via Main menu', async ({ page }) => {
mainTest(qase(725,'PF-7 Hide and unhide square grid via Main menu'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await designPanelPage.clickAddGridButton();
@ -117,7 +118,7 @@ test.describe(() => {
await expect(mainPage.createdLayer).toHaveScreenshot('square-grid-unhide.png');
});
mainTest('PF-11 Remove square grid', async ({ page }) => {
mainTest(qase(729,'PF-11 Remove square grid'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await designPanelPage.clickAddGridButton();
@ -127,7 +128,7 @@ test.describe(() => {
await expect(mainPage.createdLayer).toHaveScreenshot('board-without-grid.png');
});
mainTest('PF-12 Set columns grid', async ({ page }) => {
mainTest(qase(730,'PF-12 Set columns grid'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await designPanelPage.clickAddGridButton();
@ -136,7 +137,7 @@ test.describe(() => {
await expect(mainPage.createdLayer).toHaveScreenshot('columns-grid-default.png');
});
mainTest('PF-13 Columns grid - change columns number', async ({ page }) => {
mainTest(qase(731,'PF-13 Columns grid - change columns number'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await designPanelPage.clickAddGridButton();
@ -150,7 +151,7 @@ test.describe(() => {
);
});
mainTest('PF-14 Columns grid - change width', async ({ page }) => {
mainTest(qase(732,'PF-14 Columns grid - change width'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await designPanelPage.clickAddGridButton();
@ -167,7 +168,7 @@ test.describe(() => {
);
});
mainTest('PF-17 Columns grid - change opacity', async ({ page }) => {
mainTest(qase(735,'PF-17 Columns grid - change opacity'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await designPanelPage.clickAddGridButton();
@ -189,7 +190,7 @@ test.describe(() => {
);
});
mainTest('PF-18 Use default columns grid', async ({ page }) => {
mainTest(qase(736,'PF-18 Use default columns grid'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await designPanelPage.clickAddGridButton();
@ -204,7 +205,7 @@ test.describe(() => {
});
mainTest(
'PF-20 Hide and unhide columns grid via Design panel',
qase(738,'PF-20 Hide and unhide columns grid via Design panel'),
async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
@ -225,7 +226,7 @@ test.describe(() => {
},
);
mainTest('PF-25 Remove columns grid', async ({ page }) => {
mainTest(qase(743,'PF-25 Remove columns grid'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await designPanelPage.clickAddGridButton();
@ -236,7 +237,7 @@ test.describe(() => {
await expect(mainPage.createdLayer).toHaveScreenshot('board-without-grid.png');
});
mainTest('PF-26 Set rows grid', async ({ page }) => {
mainTest(qase(744,'PF-26 Set rows grid'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await designPanelPage.clickAddGridButton();
@ -245,7 +246,7 @@ test.describe(() => {
await expect(mainPage.createdLayer).toHaveScreenshot('rows-grid-default.png');
});
mainTest('PF-27 Rows grid - change rows number', async ({ page }) => {
mainTest(qase(745,'PF-27 Rows grid - change rows number'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await designPanelPage.clickAddGridButton();
@ -259,7 +260,7 @@ test.describe(() => {
);
});
mainTest('PF-28 Rows grid - change height', async ({ page }) => {
mainTest(qase(746,'PF-28 Rows grid - change height'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await designPanelPage.clickAddGridButton();
@ -276,7 +277,7 @@ test.describe(() => {
);
});
mainTest('PF-31 Rows grid - change opacity', async ({ page }) => {
mainTest(qase(749,'PF-31 Rows grid - change opacity'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await designPanelPage.clickAddGridButton();
@ -296,7 +297,7 @@ test.describe(() => {
);
});
mainTest('PF-32 Use default rows grid', async ({ page }) => {
mainTest(qase(750,'PF-32 Use default rows grid'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await designPanelPage.clickAddGridButton();
@ -310,7 +311,7 @@ test.describe(() => {
await expect(mainPage.createdLayer).toHaveScreenshot('rows-grid-default.png');
});
mainTest('PF-35 Hide and unhide rows grid via Main menu', async ({ page }) => {
mainTest(qase(753,'PF-35 Hide and unhide rows grid via Main menu'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await designPanelPage.clickAddGridButton();
@ -329,7 +330,7 @@ test.describe(() => {
await expect(mainPage.createdLayer).toHaveScreenshot('rows-grid-unhide.png');
});
mainTest('PF-39 Remove rows grid', async ({ page }) => {
mainTest(qase(757,'PF-39 Remove rows grid'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await designPanelPage.clickAddGridButton();

View File

@ -5,6 +5,7 @@ const { test } = require('@playwright/test');
const { TeamPage } = require('../../pages/dashboard/team-page');
const { DashboardPage } = require('../../pages/dashboard/dashboard-page');
const { updateTestResults } = require('./../../helpers/saveTestResults.js');
const { qase } = require('playwright-qase-reporter/dist/playwright');
const teamName = random().concat('autotest');
@ -26,7 +27,7 @@ test.afterEach(async ({ page }, testInfo) => {
await updateTestResults(testInfo.status, testInfo.retry)
});
mainTest('PF-156 Perform a change and check the status', async ({ page }) => {
mainTest(qase(874,'PF-156 Perform a change and check the status'), async ({ page }) => {
const mainPage = new MainPage(page);
await mainPage.clickCreateEllipseButton();
await mainPage.clickViewportTwice();
@ -34,7 +35,7 @@ mainTest('PF-156 Perform a change and check the status', async ({ page }) => {
await mainPage.waitForChangeIsSaved();
});
mainTest('PF-172 Open history panel with recent changes', async ({ page }) => {
mainTest(qase(890,'PF-172 Open history panel with recent changes'), async ({ page }) => {
const mainPage = new MainPage(page);
await mainPage.clickCreateBoardButton();
await mainPage.clickViewportTwice();

View File

@ -8,6 +8,7 @@ const { DashboardPage } = require('../../pages/dashboard/dashboard-page');
const { DesignPanelPage } = require('../../pages/workspace/design-panel-page');
const { AssetsPanelPage } = require('../../pages/workspace/assets-panel-page');
const { updateTestResults } = require('./../../helpers/saveTestResults.js');
const { qase } = require('playwright-qase-reporter/dist/playwright');
const teamName = random().concat('autotest');
@ -30,7 +31,7 @@ test.afterEach(async ({ page }, testInfo) => {
});
mainTest(
"PF-99 Hide/show grids via shortcut CTRL '",
qase(817,"PF-99 Hide/show grids via shortcut CTRL '"),
async ({ page, browserName }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
@ -51,7 +52,7 @@ mainTest(
},
);
mainTest('PF-98-1 Hide/show rulers via main menu', async ({ page }) => {
mainTest(qase(816,'PF-98-1 Hide/show rulers via main menu'), async ({ page }) => {
const mainPage = new MainPage(page);
await mainPage.clickMainMenuButton();
await mainPage.clickViewMainMenuItem();
@ -66,7 +67,7 @@ mainTest('PF-98-1 Hide/show rulers via main menu', async ({ page }) => {
});
mainTest(
'PF-98-2 Hide/show rulers via shortcut CTRL SHIFT R',
qase(816,'PF-98-2 Hide/show rulers via shortcut CTRL SHIFT R'),
async ({ page, browserName }) => {
const mainPage = new MainPage(page);
await mainPage.clickViewportTwice();
@ -77,7 +78,7 @@ mainTest(
},
);
mainTest('PF-101 Hide/show color palette - file library check', async ({ page }) => {
mainTest(qase(819,'PF-101 Hide/show color palette - file library check'), async ({ page }) => {
const mainPage = new MainPage(page);
const colorPalettePage = new ColorPalettePage(page);
const assetsPanelPage = new AssetsPanelPage(page);
@ -103,7 +104,7 @@ mainTest('PF-101 Hide/show color palette - file library check', async ({ page })
await mainPage.isColorsPaletteNotDisplayed();
});
mainTest.skip('PF-102 Hide/show board names', async ({ page }) => {
mainTest.skip(qase(820,'PF-102 Hide/show board names'), async ({ page }) => {
// todo bug 6365 > need to check after fix
const mainPage = new MainPage(page);
await mainPage.clickCreateBoardButton();
@ -120,7 +121,7 @@ mainTest.skip('PF-102 Hide/show board names', async ({ page }) => {
await expect(mainPage.viewport).toHaveScreenshot('board-show-name.png');
});
mainTest.skip('PF-103-1 Hide/show pixel grid via main menu', async ({ page }) => {
mainTest.skip(qase(821,'PF-103-1 Hide/show pixel grid via main menu'), async ({ page }) => {
// todo bug 6365 > need to check after fix
const mainPage = new MainPage(page);
await mainPage.clickViewportTwice();
@ -136,7 +137,7 @@ mainTest.skip('PF-103-1 Hide/show pixel grid via main menu', async ({ page }) =>
await expect(mainPage.viewport).toHaveScreenshot('canvas-show-pixel-grid.png');
});
mainTest('PF-103-2 Hide/show pixel grid via shortcut SHIFT ,', async ({ page }) => {
mainTest(qase(821,'PF-103-2 Hide/show pixel grid via shortcut SHIFT ,'), async ({ page }) => {
const mainPage = new MainPage(page);
await mainPage.clickViewportTwice();
await mainPage.increaseZoom(10);
@ -147,7 +148,7 @@ mainTest('PF-103-2 Hide/show pixel grid via shortcut SHIFT ,', async ({ page })
await expect(mainPage.viewport).toHaveScreenshot('canvas-show-pixel-grid.png');
});
mainTest("PF-104 Hide/show UI via main menu and shortcut '/'", async ({ page }) => {
mainTest(qase(822,'PF-104 Hide/show UI via main menu and shortcut "/"'), async ({ page }) => {
const mainPage = new MainPage(page);
await expect(mainPage.viewport).toHaveScreenshot('canvas-show-ui.png');
await mainPage.clickMainMenuButton();
@ -159,7 +160,7 @@ mainTest("PF-104 Hide/show UI via main menu and shortcut '/'", async ({ page })
});
mainTest(
'PF-109 Select all via main menu and shortcut CTRL A',
qase(827,'PF-109 Select all via main menu and shortcut CTRL A'),
async ({ page, browserName }) => {
const mainPage = new MainPage(page);
await mainPage.createDefaultRectangleByCoordinates(250, 350);
@ -185,21 +186,21 @@ mainTest(
},
);
mainTest('PF-111 Download penpot file .penpot', async ({ page }) => {
mainTest(qase(829,'PF-111 Download penpot file .penpot'), async ({ page }) => {
const mainPage = new MainPage(page);
await mainPage.clickMainMenuButton();
await mainPage.clickFileMainMenuItem();
await mainPage.downloadPenpotFileViaMenu();
});
mainTest('PF-112 Download standard file .svg+.json', async ({ page }) => {
mainTest(qase(830,'PF-112 Download standard file .svg+.json'), async ({ page }) => {
const mainPage = new MainPage(page);
await mainPage.clickMainMenuButton();
await mainPage.clickFileMainMenuItem();
await mainPage.downloadStandardFileViaMenu();
});
mainTest('PF-113 Add/Remove as shared library', async ({ page }) => {
mainTest(qase(831,'PF-113 Add/Remove as shared library'), async ({ page }) => {
const mainPage = new MainPage(page);
const assetsPanelPage = new AssetsPanelPage(page);
await mainPage.clickMainMenuButton();

View File

@ -9,6 +9,7 @@ const { LayersPanelPage } = require('../../pages/workspace/layers-panel-page');
const { AssetsPanelPage } = require('../../pages/workspace/assets-panel-page');
const { DesignPanelPage } = require('../../pages/workspace/design-panel-page');
const { updateTestResults } = require('./../../helpers/saveTestResults.js');
const { qase } = require('playwright-qase-reporter/dist/playwright');
const teamName = random().concat('autotest');
@ -30,7 +31,7 @@ test.afterEach(async ({ page }, testInfo) => {
await updateTestResults(testInfo.status, testInfo.retry)
});
mainTest('PF-114 Create new page', async ({ page }) => {
mainTest(qase(832,'PF-114 Create new page'), async ({ page }) => {
const mainPage = new MainPage(page);
await mainPage.clickAddPageButton();
await mainPage.waitForChangeIsSaved();
@ -40,7 +41,7 @@ mainTest('PF-114 Create new page', async ({ page }) => {
await expect(mainPage.pagesBlock).toHaveScreenshot('page-1-and-page-2.png');
});
mainTest('PF-115 Rename page', async ({ page }) => {
mainTest(qase(833,'PF-115 Rename page'), async ({ page }) => {
const mainPage = new MainPage(page);
await mainPage.clickAddPageButton();
await mainPage.waitForChangeIsSaved();
@ -52,7 +53,7 @@ mainTest('PF-115 Rename page', async ({ page }) => {
await mainPage.isSecondPageNameDisplayed('NewSecondPage');
});
mainTest('PF-116 Duplicate page', async ({ page }) => {
mainTest(qase(834,'PF-116 Duplicate page'), async ({ page }) => {
const mainPage = new MainPage(page);
await mainPage.duplicatePageViaRightClick();
await mainPage.waitForChangeIsSaved();
@ -60,7 +61,7 @@ mainTest('PF-116 Duplicate page', async ({ page }) => {
await mainPage.isSecondPageNameDisplayed('Page 2');
});
mainTest('PF-117 Switch between pages', async ({ page }) => {
mainTest(qase(835,'PF-117 Switch between pages'), async ({ page }) => {
const mainPage = new MainPage(page);
await mainPage.clickAddPageButton();
await mainPage.clickOnPageOnLayersPanel(false);
@ -75,7 +76,7 @@ mainTest('PF-117 Switch between pages', async ({ page }) => {
});
});
mainTest('PF-118 Collapse/expand pages list', async ({ page }) => {
mainTest(qase(836,'PF-118 Collapse/expand pages list'), async ({ page }) => {
const mainPage = new MainPage(page);
await mainPage.clickAddPageButton();
await mainPage.waitForChangeIsSaved();
@ -89,7 +90,7 @@ mainTest('PF-118 Collapse/expand pages list', async ({ page }) => {
await expect(mainPage.pagesBlock).toHaveScreenshot('page-1-and-page-2.png');
});
mainTest('PF-119 Delete page', async ({ page }) => {
mainTest(qase(837,'PF-119 Delete page'), async ({ page }) => {
const mainPage = new MainPage(page);
await mainPage.clickAddPageButton();
await mainPage.waitForChangeIsSaved();
@ -127,7 +128,7 @@ mainTest('PF-119 Delete page', async ({ page }) => {
// );
// });
mainTest('PENPOT-1526 Add a component from local library to Page 1 and Page 2, edit component on Page 2 and click "Reset overrides"',
mainTest(qase(1526,'PENPOT-1526 Add a component from local library to Page 1 and Page 2, edit component on Page 2 and click "Reset overrides"'),
async ({ page }) => {
const mainPage = new MainPage(page);
const basePage = new BasePage(page);
@ -154,7 +155,7 @@ mainTest('PENPOT-1526 Add a component from local library to Page 1 and Page 2, e
);
});
mainTest('PENPOT-1527 Add a component from local library to Page 1 and Page 2, edit component on Page 2 and click "Update main component"',
mainTest(qase(1527,'PENPOT-1527 Add a component from local library to Page 1 and Page 2, edit component on Page 2 and click "Update main component"'),
async ({ page }) => {
const mainPage = new MainPage(page);
const layersPanelPage = new LayersPanelPage(page);

View File

@ -7,6 +7,7 @@ const { DashboardPage } = require('../../pages/dashboard/dashboard-page');
const { PrototypePanelPage } = require('../../pages/workspace/prototype-panel-page');
const { LayersPanelPage } = require('../../pages/workspace/layers-panel-page');
const { updateTestResults } = require('./../../helpers/saveTestResults.js');
const { qase } = require('playwright-qase-reporter/dist/playwright');
const teamName = random().concat('autotest');
@ -40,7 +41,7 @@ test.describe(() => {
});
mainTest(
'PF-139 Add connector between 2 boards via mouse drag',
qase(857,'PF-139 Add connector between 2 boards via mouse drag'),
async ({ page }) => {
const mainPage = new MainPage(page);
const prototypePanelPage = new PrototypePanelPage(page);
@ -54,7 +55,7 @@ test.describe(() => {
},
);
mainTest('PF-143 Add Interaction via Prototype panel', async ({ page }) => {
mainTest(qase(861,'PF-143 Add Interaction via Prototype panel'), async ({ page }) => {
const mainPage = new MainPage(page);
const prototypePanelPage = new PrototypePanelPage(page);
await prototypePanelPage.clickAddInteractionButton();
@ -65,7 +66,7 @@ test.describe(() => {
});
});
mainTest('PF-144 Remove Interaction via Prototype panel', async ({ page }) => {
mainTest(qase(862,'PF-144 Remove Interaction via Prototype panel'), async ({ page }) => {
const mainPage = new MainPage(page);
const prototypePanelPage = new PrototypePanelPage(page);
await prototypePanelPage.clickAddInteractionButton();
@ -79,7 +80,7 @@ test.describe(() => {
});
});
mainTest('PF-152 Add 2nd Flow', async ({ page }) => {
mainTest(qase(870,'PF-152 Add 2nd Flow'), async ({ page }) => {
const mainPage = new MainPage(page);
const prototypePanelPage = new PrototypePanelPage(page);
await mainPage.createDefaultBoardByCoordinates(200, 600);
@ -93,7 +94,7 @@ test.describe(() => {
});
});
mainTest('PF-154 Rename flow', async ({ page }) => {
mainTest(qase(872,'PF-154 Rename flow'), async ({ page }) => {
const mainPage = new MainPage(page);
const prototypePanelPage = new PrototypePanelPage(page);
await prototypePanelPage.renameFlow('qa');
@ -104,7 +105,7 @@ test.describe(() => {
});
});
mainTest('PF-155 Delete flow', async ({ page }) => {
mainTest(qase(873,'PF-155 Delete flow'), async ({ page }) => {
const mainPage = new MainPage(page);
const prototypePanelPage = new PrototypePanelPage(page);
await prototypePanelPage.clickRemoveFlowButton();
@ -116,7 +117,7 @@ test.describe(() => {
});
});
mainTest('PF-147 Change destination via Prototype panel', async ({ page }) => {
mainTest(qase(865,'PF-147 Change destination via Prototype panel'), async ({ page }) => {
const mainPage = new MainPage(page);
const prototypePanelPage = new PrototypePanelPage(page);
const layersPanelPage = new LayersPanelPage(page);

View File

@ -5,6 +5,7 @@ const { random } = require('../../helpers/string-generator');
const { TeamPage } = require('../../pages/dashboard/team-page');
const { DashboardPage } = require('../../pages/dashboard/dashboard-page');
const { updateTestResults } = require('./../../helpers/saveTestResults.js');
const { qase } = require('playwright-qase-reporter/dist/playwright');
const teamName = random().concat('autotest');
@ -26,7 +27,7 @@ test.afterEach(async ({ page }, testInfo) => {
await updateTestResults(testInfo.status, testInfo.retry)
});
mainTest('PF-132 Zoom via top right menu', async ({ page }) => {
mainTest(qase(850,'PF-132 Zoom via top right menu'), async ({ page }) => {
const mainPage = new MainPage(page);
await mainPage.increaseZoom(1);
await mainPage.clickViewportOnce();
@ -40,7 +41,7 @@ mainTest('PF-132 Zoom via top right menu', async ({ page }) => {
});
});
mainTest('PF-134 Reset zoom via top right menu', async ({ page }) => {
mainTest(qase(852,'PF-134 Reset zoom via top right menu'), async ({ page }) => {
const mainPage = new MainPage(page);
await mainPage.increaseZoom(1);
await mainPage.clickViewportOnce();
@ -53,7 +54,7 @@ mainTest('PF-134 Reset zoom via top right menu', async ({ page }) => {
});
});
mainTest('PF-136 Zoom to fit all via top right menu', async ({ page }) => {
mainTest(qase(854,'PF-136 Zoom to fit all via top right menu'), async ({ page }) => {
const mainPage = new MainPage(page);
await mainPage.clickCreateBoardButton();
await mainPage.clickViewportTwice();
@ -69,7 +70,7 @@ mainTest('PF-136 Zoom to fit all via top right menu', async ({ page }) => {
});
});
mainTest('PF-138 Zoom to selected via top right menu', async ({ page }) => {
mainTest(qase(856,'PF-138 Zoom to selected via top right menu'), async ({ page }) => {
const mainPage = new MainPage(page);
await mainPage.clickCreateBoardButton();
await mainPage.clickViewportByCoordinates(900, 100);

View File

@ -4,8 +4,9 @@ const { random } = require('../helpers/string-generator');
const { LoginPage } = require('../pages/login-page');
const { expect, test } = require('@playwright/test');
const { updateTestResults } = require('./../helpers/saveTestResults.js');
const { qase } = require('playwright-qase-reporter/dist/playwright');
mainTest('PR-1 Edit profile name', async ({ page }) => {
mainTest(qase(187,'PR-1 Edit profile name'), async ({ page }) => {
const newName = random();
const profilePage = new ProfilePage(page);
await profilePage.openYourAccountPage();
@ -15,7 +16,7 @@ mainTest('PR-1 Edit profile name', async ({ page }) => {
await profilePage.isAccountNameDisplayed(newName);
});
mainTest('PR-9 Add profile picture jpeg', async ({ page }) => {
mainTest(qase(195,'PR-9 Add profile picture jpeg'), async ({ page }) => {
const profilePage = new ProfilePage(page);
await profilePage.openYourAccountPage();
await profilePage.isHeaderDisplayed('Your account');
@ -37,7 +38,7 @@ mainTest('PR-9 Add profile picture jpeg', async ({ page }) => {
);
});
mainTest('PR-12 Change password to invalid', async ({ page }) => {
mainTest(qase(198,'PR-12 Change password to invalid'), async ({ page }) => {
const newPassword = '1234567';
const profilePage = new ProfilePage(page);
await profilePage.openYourAccountPage();
@ -53,7 +54,7 @@ mainTest('PR-12 Change password to invalid', async ({ page }) => {
});
mainTest(
'PR-16 Fail to change password confirmation does not match',
qase(202,'PR-16 Fail to change password confirmation does not match'),
async ({ page }) => {
const profilePage = new ProfilePage(page);
await profilePage.openYourAccountPage();
@ -69,14 +70,14 @@ mainTest(
},
);
mainTest('PR-19 Logout from Account', async ({ page }) => {
mainTest(qase(205,'PR-19 Logout from Account'), async ({ page }) => {
const profilePage = new ProfilePage(page);
const loginPage = new LoginPage(page);
await profilePage.logout();
await loginPage.isLoginPageOpened();
});
mainTest('PR-21 Send feedback email with empty fields', async ({ page }) => {
mainTest(qase(207,'PR-21 Send feedback email with empty fields'), async ({ page }) => {
const profilePage = new ProfilePage(page);
await profilePage.openGiveFeedbackPage();
await profilePage.isHeaderDisplayed('Your account');
@ -90,7 +91,7 @@ mainTest('PR-21 Send feedback email with empty fields', async ({ page }) => {
await profilePage.isSendFeedbackButtonDisabled();
});
mainTest('PR-22 Send feedback email with valid data', async ({ page }) => {
mainTest(qase(208,'PR-22 Send feedback email with valid data'), async ({ page }) => {
const profilePage = new ProfilePage(page);
await profilePage.openGiveFeedbackPage();
await profilePage.isHeaderDisplayed('Your account');

View File

@ -2,8 +2,9 @@ const { test } = require('@playwright/test');
const { LoginPage } = require('../pages/login-page');
const { RegisterPage } = require('../pages/register-page');
const { updateTestResults } = require('./../helpers/saveTestResults.js');
const { qase } = require('playwright-qase-reporter/dist/playwright');
test('ON-5 Sign up with invalid email address', async ({ page }) => {
test(qase(32,'ON-5 Sign up with invalid email address'), async ({ page }) => {
const loginPage = new LoginPage(page);
const registerPage = new RegisterPage(page);
await loginPage.goto();
@ -16,7 +17,7 @@ test('ON-5 Sign up with invalid email address', async ({ page }) => {
await registerPage.isCreateAccountBtnDisabled();
});
test('ON-6 Sign up with no password', async ({ page }) => {
test(qase(33,'ON-6 Sign up with no password'), async ({ page }) => {
const loginPage = new LoginPage(page);
const registerPage = new RegisterPage(page);
await loginPage.goto();
@ -30,7 +31,7 @@ test('ON-6 Sign up with no password', async ({ page }) => {
await registerPage.isCreateAccountBtnDisabled();
});
test('ON-7 Sign up with incorrect password', async ({ page }) => {
test(qase(34,'ON-7 Sign up with incorrect password'), async ({ page }) => {
const loginPage = new LoginPage(page);
const registerPage = new RegisterPage(page);
await loginPage.goto();