From dc4bcd41dd54193b321e4e05812a52bcee1e005c Mon Sep 17 00:00:00 2001 From: FahadDarw Date: Tue, 27 Aug 2024 10:41:56 +0100 Subject: [PATCH] deleted tests added --- .../cypress/e2e/Core-journeys/project_group_test.cy.js | 4 +++- .../cypress/pages/projectTaskList.js | 6 ++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Core-journeys/project_group_test.cy.js b/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Core-journeys/project_group_test.cy.js index 6290c5b61..6e0d0e548 100644 --- a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Core-journeys/project_group_test.cy.js +++ b/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Core-journeys/project_group_test.cy.js @@ -74,7 +74,9 @@ describe('Group Creation Tests', () => { Logger.log("remove the school from the group"); projectTaskList.removeSchoolFromGroup(); - + + Logger.log("delete the group"); + projectTaskList.deleteGroup(); }); }); diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/pages/projectTaskList.js b/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/pages/projectTaskList.js index 25b10d88a..f757aa7e2 100644 --- a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/pages/projectTaskList.js +++ b/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/pages/projectTaskList.js @@ -189,4 +189,10 @@ export default class ProjectTaskList extends BasePage { cy.get('#remove-conversion-confirmation').click(); return this; } + + static deleteGroup() { + cy.get('[data-cy="tes"]').click(); + cy.get('#delete-group-confirmation').click(); + return this; + } }