@@ -79,7 +79,7 @@ describe('From a fixed advanced app', () => {
7979 . click ( )
8080 cy . checkThatStepperValidityIs ( false , 'authors' )
8181 cy . checkThatAppValidityIs ( false )
82- cy . get ( '.q- banner')
82+ cy . dataCy ( ' banner-error-messages ')
8383 . should ( 'contain.text' , 'Use the button to add an author' )
8484 cy . dataCy ( 'btn-add-author' )
8585 . click ( )
@@ -106,7 +106,7 @@ describe('From a fixed advanced app', () => {
106106 . should ( 'have.class' , 'red-border' )
107107 cy . checkThatStepperValidityIs ( false , 'authors' )
108108 cy . checkThatAppValidityIs ( false )
109- cy . get ( '.q- banner')
109+ cy . dataCy ( ' banner-error-messages ')
110110 . should ( 'contain.text' , 'There are duplicate authors' )
111111
112112 cy . dataCy ( 'btn-remove0' )
@@ -211,7 +211,7 @@ describe('From a fixed advanced app', () => {
211211 . click ( )
212212 cy . dataCy ( 'card-identifier0' )
213213 . should ( 'have.class' , 'red-border' )
214- cy . get ( '.q- banner')
214+ cy . dataCy ( ' banner-error-messages ')
215215 . should ( 'contain.text' , 'There are duplicate identifier' )
216216 cy . checkThatStepperValidityIs ( false , 'identifiers' )
217217 cy . checkThatAppValidityIs ( false )
@@ -272,7 +272,7 @@ describe('From a fixed advanced app', () => {
272272 . click ( )
273273 cy . checkThatInputValidityIs ( false , 'keyword0' )
274274 cy . checkThatInputValidityIs ( false , 'keyword1' )
275- cy . get ( '.q- banner')
275+ cy . dataCy ( ' banner-error-messages ')
276276 . should ( 'contain.text' , 'There are duplicate keywords' )
277277 cy . checkThatStepperValidityIs ( false , 'keywords' )
278278 cy . checkThatAppValidityIs ( false )
0 commit comments