File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ describe(`${PLUGIN_NAME}`, () => {
4848 nav . sidenav . clickNavLink ( [ "Workloads" , "CronTabs" ] ) ;
4949 common . resourceTitleShouldHaveText ( "CronTabs" ) ;
5050 listPage . clickCreateYAMLbutton ( ) ;
51- cy . byLegacyTestID ( "resource-title" ) . should ( "contain" , "Create CronTab" ) ;
51+ cy . get ( '[data-test="page-heading"] h1' ) . should ( "contain" , "Create CronTab" ) ;
5252 cy . byTestID ( "save-changes" ) . click ( ) ;
5353 common . inlineDangerAlert ( ) . should ( "not.exist" ) ;
5454 common . resourceTitleShouldHaveText ( cronTabName ) ;
Original file line number Diff line number Diff line change @@ -70,5 +70,5 @@ export const teardown = () => {
7070export const common = {
7171 inlineDangerAlert : ( ) => cy . get ( ".pf-c-alert.pf-m-inline.pf-m-danger" ) ,
7272 resourceTitleShouldHaveText : ( title : string ) =>
73- cy . byLegacyTestID ( "resource-title" ) . should ( "have.text" , title ) ,
73+ cy . get ( '[data-test="page-heading"] h1' ) . contains ( title ) . should ( "exist" ) ,
7474} ;
You can’t perform that action at this time.
0 commit comments