Skip to content
This repository was archived by the owner on Mar 5, 2022. It is now read-only.

Commit a96bd14

Browse files
committed
update network spec to use our server, close #185
1 parent 28a929d commit a96bd14

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cypress/component/basic/network/users-spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ context('Users', () => {
1010
it('fetches 3 users from remote API', () => {
1111
mount(<Users />)
1212
// fetching users can take a while
13-
cy.get('li', { timeout: 60000 }).should('have.length', 3)
13+
cy.get('li', { timeout: 20000 }).should('have.length', 3)
1414
})
1515
})
1616

cypress/component/basic/network/users.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export class Users extends React.Component {
1111

1212
componentDidMount() {
1313
axios
14-
.get('http://jsonplaceholder.typicode.com/users?_limit=3')
14+
.get('https://jsonplaceholder.cypress.io/users?_limit=3')
1515
.then(response => {
1616
// JSON responses are automatically parsed.
1717
this.setState({

0 commit comments

Comments
 (0)