@@ -682,30 +682,36 @@ const electronicsCount = Cypress.env('staging') === true ? 5 : 25
682682// Confirm the UI works in staging environment
683683cy .task (' seedStagingDB' )
684684cy .visit (` ${ Cypress .env (' stagingUrl' )} /products` )
685- cy .prompt ([
686- ' filter by category "Electronics"' ,
687- ' sort by price high to low' ,
688- ` verify the product count is {{electronicsCount}}` ,
689- ' verify the sort indicator is "Price: High to Low"' ,
690- ], {
691- placeholders: {
692- electronicsCount,
693- },
694- })
685+ cy .prompt (
686+ [
687+ ' filter by category "Electronics"' ,
688+ ' sort by price high to low' ,
689+ ` verify the product count is {{electronicsCount}}` ,
690+ ' verify the sort indicator is "Price: High to Low"' ,
691+ ],
692+ {
693+ placeholders: {
694+ electronicsCount,
695+ },
696+ }
697+ )
695698
696699// Confirm the UI works in production environment
697700cy .task (' seedProductionDB' )
698701cy .visit (` ${ Cypress .env (' productionUrl' )} /products` )
699- cy .prompt ([
700- ' filter by category "Electronics"' ,
701- ' sort by price high to low' ,
702- ` verify the product count is {{electronicsCount}}` ,
703- ' verify the sort indicator is "Price: High to Low"' ,
704- ], {
705- placeholders: {
706- electronicsCount,
707- },
708- })
702+ cy .prompt (
703+ [
704+ ' filter by category "Electronics"' ,
705+ ' sort by price high to low' ,
706+ ` verify the product count is {{electronicsCount}}` ,
707+ ' verify the sort indicator is "Price: High to Low"' ,
708+ ],
709+ {
710+ placeholders: {
711+ electronicsCount,
712+ },
713+ }
714+ )
709715```
710716
711717Or to further clean up the ` cy.prompt ` call:
0 commit comments