Skip to content

Commit 66cdc66

Browse files
lint
1 parent 7e86fe7 commit 66cdc66

File tree

1 file changed

+26
-20
lines changed

1 file changed

+26
-20
lines changed

docs/api/commands/prompt.mdx

Lines changed: 26 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -682,30 +682,36 @@ const electronicsCount = Cypress.env('staging') === true ? 5 : 25
682682
// Confirm the UI works in staging environment
683683
cy.task('seedStagingDB')
684684
cy.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
697700
cy.task('seedProductionDB')
698701
cy.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

711717
Or to further clean up the `cy.prompt` call:

0 commit comments

Comments
 (0)