Skip to content

Commit 02053fd

Browse files
authored
fix: provide hostname and port to server (#1149)
* fix: provide hostname and port * chore: fix cypress * chore: changes from review * chore: change from review * chore: lockfile back to v1 * chore: fix imports
1 parent 9b76223 commit 02053fd

File tree

6 files changed

+3706
-22289
lines changed

6 files changed

+3706
-22289
lines changed

cypress/integration/default/preview.spec.ts

+10-12
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,15 @@ describe('Preview Mode', () => {
55
cy.findByText('Is preview? No')
66

77
// enter preview mode
8-
cy.request('/api/enterPreview').then(
9-
(response) => {
10-
expect(response.body).to.have.property('name', 'preview mode')
11-
}
12-
)
13-
cy.visit('/previewTest')
14-
cy.findByText('Is preview? Yes!')
8+
cy.request('/api/enterPreview').then((response) => {
9+
expect(response.body).to.have.property('name', 'preview mode')
10+
})
11+
cy.visit('/previewTest')
12+
cy.findByText('Is preview? Yes!', { selector: 'h1' })
1513

16-
// exit preview mode
17-
cy.request('/api/exitPreview')
18-
cy.visit('/previewTest')
19-
cy.findByText('Is preview? No')
14+
// exit preview mode
15+
cy.request('/api/exitPreview')
16+
cy.visit('/previewTest')
17+
cy.findByText('Is preview? No', { selector: 'h1' })
2018
})
21-
})
19+
})

0 commit comments

Comments
 (0)