diff --git a/tests/dashboard/dashboard-files.spec.ts b/tests/dashboard/dashboard-files.spec.ts index 7199801a6..ddc25589d 100644 --- a/tests/dashboard/dashboard-files.spec.ts +++ b/tests/dashboard/dashboard-files.spec.ts @@ -169,20 +169,6 @@ mainTest.describe('Files management', () => { }, ); - mainTest( - qase(1121, 'Download Penpot file (.penpot) (in project) via right click'), - async () => { - await dashboardPage.downloadFileViaRightClick(); - }, - ); - - mainTest( - qase(1121, 'Download Penpot file (.penpot) (in project) via Options icon'), - async () => { - await dashboardPage.downloadFileViaOptionsIcon(); - }, - ); - mainTest(qase(1123, 'Delete file in Project via right click'), async () => { await dashboardPage.deleteFileViaRightclick(); await dashboardPage.isDeletedFileSuccessMessageVisible(); diff --git a/tests/dashboard/dashboard-fonts.spec.ts b/tests/dashboard/dashboard-fonts.spec.ts index e9e206776..8fa5096cd 100644 --- a/tests/dashboard/dashboard-fonts.spec.ts +++ b/tests/dashboard/dashboard-fonts.spec.ts @@ -99,19 +99,3 @@ mainTest(qase([1158], 'Delete font'), async () => { ); }); }); - -mainTest(qase([1159], 'Delete font - Cancel button check'), async () => { - await mainTest.step('Open Fonts section and upload a font', async () => { - await dashboardPage.openSidebarItem('Fonts'); - await dashboardPage.uploadFont('fonts/Pacifico.ttf'); - await dashboardPage.isFontExists('Pacifico', 'Regular'); - }); - - await mainTest.step( - 'Cancel font deletion and verify the font remains', - async () => { - await dashboardPage.cancelDeleteFont(); - await dashboardPage.isFontExists('Pacifico', 'Regular'); - }, - ); -}); diff --git a/tests/dashboard/dashboard-libraries.spec.ts b/tests/dashboard/dashboard-libraries.spec.ts index c597f1ccb..5bf2906b1 100644 --- a/tests/dashboard/dashboard-libraries.spec.ts +++ b/tests/dashboard/dashboard-libraries.spec.ts @@ -53,46 +53,6 @@ mainTest.describe(() => { ); }); - mainTest(qase(1541, 'Create 2 rectangles and look library view'), async () => { - await mainPage.createDefaultRectangleByCoordinates(200, 200); - await mainPage.createComponentViaRightClick(); - await mainPage.waitForChangeIsSaved(); - await mainPage.createDefaultRectangleByCoordinates(200, 300, true); - await mainPage.createComponentViaRightClick(); - await mainPage.waitForChangeIsSaved(); - await mainPage.clickPencilBoxButton(); - await dashboardPage.addFileAsSharedLibraryViaOptionsIcon(); - await dashboardPage.isSharedLibraryIconDisplayed(); - await dashboardPage.openSidebarItem('Libraries'); - await dashboardPage.isFilePresent('New File 1'); - await expect(dashboardPage.dashboardLibraryItem).toHaveScreenshot( - '2-rectangles-library.png', - ); - }); - - mainTest(qase(1542, 'Create 4 ellipses and look at library view'), async () => { - await mainPage.createDefaultEllipseByCoordinates(200, 200); - await mainPage.createComponentViaRightClick(); - await mainPage.waitForChangeIsSaved(); - await mainPage.createDefaultEllipseByCoordinates(200, 300, true); - await mainPage.createComponentViaRightClick(); - await mainPage.waitForChangeIsSaved(); - await mainPage.createDefaultEllipseByCoordinates(400, 200, true); - await mainPage.createComponentViaRightClick(); - await mainPage.waitForChangeIsSaved(); - await mainPage.createDefaultEllipseByCoordinates(400, 300, true); - await mainPage.createComponentViaRightClick(); - await mainPage.waitForChangeIsSaved(); - await mainPage.clickPencilBoxButton(); - await dashboardPage.addFileAsSharedLibraryViaOptionsIcon(); - await dashboardPage.isSharedLibraryIconDisplayed(); - await dashboardPage.openSidebarItem('Libraries'); - await dashboardPage.isFilePresent('New File 1'); - await expect(dashboardPage.dashboardLibraryItem).toHaveScreenshot( - '4-ellipses-library.png', - ); - }); - mainTest( qase( 1351, @@ -142,31 +102,6 @@ mainTest.describe(() => { }, ); - mainTest( - qase(1476, 'Check view for library with one type of assets'), - async () => { - await mainPage.createDefaultRectangleByCoordinates(200, 300); - await mainPage.createComponentViaRightClick(); - await mainPage.waitForChangeIsSaved(); - await assetsPanelPage.clickAssetsTab(); - await assetsPanelPage.clickAddFileLibraryColorButton(); - await colorPalettePopUp.setHex('#7D8CB7'); - await colorPalettePopUp.clickSaveColorStyleButton(); - await mainPage.clickViewportTwice(); - await mainPage.waitForChangeIsSaved(); - await assetsPanelPage.clickAddFileLibraryTypographyButton(); - await mainPage.waitForChangeIsSaved(); - await mainPage.clickPencilBoxButton(); - await dashboardPage.addFileAsSharedLibraryViaOptionsIcon(); - await dashboardPage.isSharedLibraryIconDisplayed(); - await dashboardPage.openSidebarItem('Libraries'); - await dashboardPage.isFilePresent('New File 1'); - await expect(dashboardPage.dashboardLibraryItem).toHaveScreenshot( - 'library-all-assets-type-added.png', - ); - }, - ); - mainTest.describe(() => { mainTest.beforeEach(async () => { await mainPage.clickPencilBoxButton(); diff --git a/tests/dashboard/teams/teams-management.spec.ts b/tests/dashboard/teams/teams-management.spec.ts index eac33bce4..1749c1542 100644 --- a/tests/dashboard/teams/teams-management.spec.ts +++ b/tests/dashboard/teams/teams-management.spec.ts @@ -11,17 +11,6 @@ mainTest.beforeEach(async ({ page }) => { teamPage = new TeamPage(page); }); -mainTest(qase([1162], 'Create a team'), async () => { - await mainTest.step('Create and select team', async () => { - await teamPage.createTeam(team); - await teamPage.isTeamSelected(team); - }); - - await mainTest.step('Delete created team', async () => { - await teamPage.deleteTeam(team); - }); -}); - mainTest(qase([1163], 'Team.Switch between teams'), async () => { const team1 = createTeamName(); const team2 = createTeamName(); diff --git a/tests/dashboard/teams/teams-permissions.spec.ts b/tests/dashboard/teams/teams-permissions.spec.ts index bfef9ca86..987bdcd13 100644 --- a/tests/dashboard/teams/teams-permissions.spec.ts +++ b/tests/dashboard/teams/teams-permissions.spec.ts @@ -39,108 +39,6 @@ mainTest.beforeEach(async ({ page }) => { }); mainTest.describe('Roles permissions (Owner, Admin, Editor)', () => { - mainTest( - qase( - [1173], - 'Team. Invitations - invite via admin (multiple invitations, admin)', - ), - async ({ page }) => { - await mainTest.slow(); - const mainAdmin = random().concat('autotest'); - const firstAdmin = random().concat('autotest'); - const secondAdmin = random().concat('autotest'); - const mainEmail = `${process.env.GMAIL_NAME}+${mainAdmin}${process.env.GMAIL_DOMAIN}`; - const firstEmail = `${process.env.GMAIL_NAME}+${firstAdmin}${process.env.GMAIL_DOMAIN}`; - const secondEmail = `${process.env.GMAIL_NAME}+${secondAdmin}${process.env.GMAIL_DOMAIN}`; - - await teamPage.createTeam(team); - await teamPage.isTeamSelected(team); - await teamPage.openInvitationsPageViaOptionsMenu(); - await teamPage.clickInviteMembersToTeamButton(); - await teamPage.selectInvitationRoleInPopUp('Admin'); - await teamPage.enterEmailToInviteMembersPopUp(mainEmail); - await teamPage.clickSendInvitationButton(); - const mainInvite = await waitMessage(page, mainEmail, 40); - await profilePage.logout(); - await loginPage.isLoginPageOpened(); - - await page.goto(mainInvite.inviteUrl); - await registerPage.registerAccount( - mainAdmin, - mainEmail, - process.env.LOGIN_PWD, - ); - await waitSecondMessage(page, mainEmail, 40); - const mainVerificationMessage = await getVerificationMessage(mainEmail); - await page.goto(mainVerificationMessage.inviteUrl); - await dashboardPage.fillOnboardingQuestions(); - await teamPage.isTeamSelected(team); - - await teamPage.openInvitationsPageViaOptionsMenu(); - await teamPage.clickInviteMembersToTeamButton(); - await teamPage.isInviteMembersPopUpHeaderDisplayed( - 'Invite members to the team', - ); - await teamPage.enterEmailToInviteMembersPopUp(`${firstEmail}, ${secondEmail}`); - await teamPage.selectInvitationRoleInPopUp('Admin'); - await teamPage.clickSendInvitationButton(); - await teamPage.isSuccessMessageDisplayed('Invitation sent successfully'); - await teamPage.isMultipleInvitationRecordDisplayed( - firstEmail, - 'Admin', - 'Pending', - ); - await teamPage.isMultipleInvitationRecordDisplayed( - secondEmail, - 'Admin', - 'Pending', - ); - const firstInvite = await waitMessage(page, firstEmail, 40); - const secondInvite = await waitMessage(page, secondEmail, 40); - await checkInviteText(firstInvite.inviteText, team, mainAdmin); - await checkInviteText(secondInvite.inviteText, team, mainAdmin); - await profilePage.logout(); - await loginPage.isLoginPageOpened(); - - await page.goto(firstInvite.inviteUrl); - await registerPage.registerAccount( - firstAdmin, - firstEmail, - process.env.LOGIN_PWD, - ); - await waitSecondMessage(page, firstEmail, 40); - const firstVerificationMessage = await getVerificationMessage(firstEmail); - await page.goto(firstVerificationMessage.inviteUrl); - await dashboardPage.fillOnboardingQuestions(); - await teamPage.isTeamSelected(team); - await profilePage.logout(); - await loginPage.isLoginPageOpened(); - await page.goto(secondInvite.inviteUrl); - await registerPage.registerAccount( - secondAdmin, - secondEmail, - process.env.LOGIN_PWD, - ); - await waitSecondMessage(page, secondEmail, 40); - const secondVerificationMessage = await getVerificationMessage(secondEmail); - await page.goto(secondVerificationMessage.inviteUrl); - await dashboardPage.fillOnboardingQuestions(); - await teamPage.isTeamSelected(team); - - await teamPage.openMembersPageViaOptionsMenu(); - await teamPage.isMultipleMemberRecordDisplayed( - firstAdmin, - firstEmail, - 'Admin', - ); - await teamPage.isMultipleMemberRecordDisplayed( - secondAdmin, - secondEmail, - 'Admin', - ); - }, - ); - mainTest( qase([1177], 'Team. Invitations - resend invitation via admin'), async ({ page }) => { diff --git a/tests/dashboard/teams/teams-viewer-role.spec.ts b/tests/dashboard/teams/teams-viewer-role.spec.ts index c5555311c..e24007565 100644 --- a/tests/dashboard/teams/teams-viewer-role.spec.ts +++ b/tests/dashboard/teams/teams-viewer-role.spec.ts @@ -170,45 +170,6 @@ mainTest.describe('Viewer Role - Permissions', () => { }); }, ); - - mainTest(qase([1873], 'Viewer cannot import to Drafts'), async () => { - const { dashboardPage } = setup; - - await mainTest.step('Open Drafts section', async () => { - await dashboardPage.openSidebarItem('Drafts'); - }); - - await mainTest.step('Verify viewer cannot import into Drafts', async () => { - await dashboardPage.isCreateFileOnDraftsTabButtonVisible(false); - await dashboardPage.isOptionButtonFromDraftPageVisible(false); - }); - }); - - mainTest(qase([1877], 'Viewer cannot add font'), async () => { - const { dashboardPage } = setup; - - await mainTest.step('Open Fonts section', async () => { - await dashboardPage.openSidebarItem('Fonts'); - }); - - await mainTest.step('Verify viewer cannot add custom fonts', async () => { - await dashboardPage.isAddCustomFontButtonVisible(false); - }); - }); - - mainTest(qase([1880], 'Viewer cannot create projects or drafts'), async () => { - const { dashboardPage } = setup; - - await mainTest.step('Verify viewer cannot create projects', async () => { - await dashboardPage.openSidebarItem('Projects'); - await dashboardPage.isAddProjectButtonVisible(false); - }); - - await mainTest.step('Verify viewer cannot create drafts', async () => { - await dashboardPage.openSidebarItem('Drafts'); - await dashboardPage.isCreateFileOnDraftsTabButtonVisible(false); - }); - }); }); mainTest.describe('Viewer Role - Role Changes', () => { @@ -262,83 +223,4 @@ mainTest.describe('Viewer Role - Role Changes', () => { }); }, ); - - mainTest( - qase([1869], 'Change a role of admin to viewer after accepting an invitation'), - async ({ page }) => { - const adminName = `${random()}-viewer-role-autotest`; - const adminEmail = `${process.env.GMAIL_NAME}+${adminName}${process.env.GMAIL_DOMAIN}`; - - const loginPage = new LoginPage(page); - const registerPage = new RegisterPage(page); - const dashboardPage = new DashboardPage(page); - const teamPage = new TeamPage(page); - const profilePage = new ProfilePage(page); - const mainPage = new MainPage(page); - - await mainTest.step('Create team, file and invite admin user', async () => { - await teamPage.createTeam(teamName); - await teamPage.isTeamSelected(teamName); - await dashboardPage.createFileViaPlaceholder(); - await mainPage.waitForViewportVisible(); - await mainPage.createDefaultRectangleByCoordinates(200, 300); - await mainPage.createComponentViaRightClick(); - await mainPage.waitForChangeIsSaved(); - await mainPage.backToDashboardFromFileEditor(); - - await teamPage.openInvitationsPageViaOptionsMenu(); - await teamPage.clickInviteMembersToTeamButton(); - await teamPage.enterEmailToInviteMembersPopUp(adminEmail); - await teamPage.selectInvitationRoleInPopUp('Admin'); - await teamPage.clickSendInvitationButton(); - }); - - await mainTest.step('Register invited admin account', async () => { - await page.context().clearCookies(); - - const invite = requireMessage( - await waitMessage(page, adminEmail, 60), - 'Invitation email was not received for admin user', - ); - await page.goto(invite.inviteUrl); - await registerPage.registerAccount( - adminName, - adminEmail, - process.env.LOGIN_PWD, - ); - await waitSecondMessage(page, adminEmail, 40); - const verificationMessage = requireMessage( - await getVerificationMessage(adminEmail), - 'Verification email was not received for admin user', - ); - await page.goto(verificationMessage.inviteUrl); - await dashboardPage.fillOnboardingQuestions(); - await teamPage.isTeamSelected(teamName); - }); - - await mainTest.step('Change admin role to viewer', async () => { - await profilePage.logout(); - await loginPage.enterEmailAndClickOnContinue(process.env.LOGIN_EMAIL); - await loginPage.enterPwd(process.env.LOGIN_PWD); - await loginPage.clickLoginButton(); - await dashboardPage.isDashboardOpenedAfterLogin(); - await teamPage.switchTeam(teamName); - await teamPage.openMembersPageViaOptionsMenu(); - await teamPage.selectMemberRoleInPopUp(adminName, 'Viewer'); - }); - - await mainTest.step('Verify viewer rights for downgraded admin', async () => { - await profilePage.logout(); - await loginPage.enterEmailAndClickOnContinue(adminEmail); - await loginPage.enterPwd(process.env.LOGIN_PWD); - await loginPage.clickLoginButton(); - await dashboardPage.isDashboardOpenedAfterLogin(); - await teamPage.switchTeam(teamName); - await dashboardPage.openFileWithName('New File 1'); - await mainPage.waitForViewportVisible(); - await mainPage.isDesignTabVisible(false); - await mainPage.backToDashboardFromFileEditor(); - }); - }, - ); });