@@ -9,12 +9,10 @@ import AdminPom from "./admin.pom";
99
1010interface ProjectTestData {
1111 description : string ;
12- updatedDescription : string ;
1312}
1413
1514const isProjectTestData = ( arg : any ) : arg is ProjectTestData => {
1615 if ( ! arg . description ) return false ;
17- if ( ! arg . updatedDescription ) return false ;
1816 return true ;
1917} ;
2018
@@ -57,10 +55,10 @@ describe("Org Admin Smoke", () => {
5755 // we select by text so it supports both the empty and full table
5856 cy . contains ( "Create Project" ) . click ( ) ;
5957
60- pom . projectsPom . projectsTablePom . createRenameProjectPom . el . projectName . type (
58+ pom . projectsPom . projectsTablePom . createProjectPom . el . projectName . type (
6159 testData . description ,
6260 ) ;
63- pom . projectsPom . projectsTablePom . createRenameProjectPom . el . submitProject . click ( ) ;
61+ pom . projectsPom . projectsTablePom . createProjectPom . el . submitProject . click ( ) ;
6462
6563 // wait for the modal to close and the page to reload
6664 cy . wait ( "@createProject" ) ;
@@ -107,25 +105,6 @@ describe("Org Admin Smoke", () => {
107105 }
108106 } ) ;
109107
110- it ( "should rename the project" , ( ) => {
111- cy . contains ( "Project Name" ) . should ( "be.visible" ) ;
112- pom . projectsPom . projectsTablePom . tablePom . search (
113- testData . description ,
114- false ,
115- ) ;
116- // wait for search to complete
117- pom . projectsPom . projectsTablePom . tablePom
118- . getRows ( )
119- . should ( "have.length" , 1 ) ;
120-
121- pom . projectsPom . projectsTablePom . renameProjectPopup (
122- 0 ,
123- testData . updatedDescription ,
124- ) ;
125- pom . projectsPom . projectsTablePom . createRenameProjectPom . el . submitProject . click ( ) ;
126- cy . contains ( testData . updatedDescription ) . should ( "exist" ) ;
127- } ) ;
128-
129108 it ( "should delete the project" , ( ) => {
130109 cy . contains ( "Project Name" ) . should ( "be.visible" ) ;
131110 pom . projectsPom . projectsTablePom . tablePom . search (
@@ -139,7 +118,7 @@ describe("Org Admin Smoke", () => {
139118
140119 pom . projectsPom . projectsTablePom . deleteProjectPopup (
141120 0 ,
142- testData . updatedDescription ,
121+ testData . description ,
143122 ) ;
144123 pom . projectsPom . projectsTablePom . deleteProjectPom . modalPom . el . primaryBtn . click ( ) ;
145124 cy . contains ( "Deletion in process" ) . should ( "be.visible" ) ;
0 commit comments