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; + } }