We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ebc42c4 commit 188fdbaCopy full SHA for 188fdba
cypress/integration/default/preview.spec.ts
@@ -2,7 +2,7 @@ describe('Preview Mode', () => {
2
it('enters and exits preview mode', () => {
3
// preview mode is off by default
4
cy.visit('/previewTest')
5
- cy.findByText('Is preview? No')
+ cy.findByText('Is preview? No', {selector: 'h1'})
6
7
// enter preview mode
8
cy.request('/api/enterPreview').then((response) => {
0 commit comments