Skip to content

Commit cfd9c52

Browse files
committed
intercept, not inspect oops
1 parent f2bee8a commit cfd9c52

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

examples/blogs__vue-vuex-rest/cypress/support/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const visit = (skipWaiting) => {
2222

2323
console.log('visit will wait for initial todos', waitForInitialLoad)
2424
if (waitForInitialLoad) {
25-
cy.inspect('/todos').as('initialTodos')
25+
cy.intercept('/todos').as('initialTodos')
2626
}
2727

2828
cy.visit('/')

examples/logging-in__single-sign-on/cypress/e2e/logging-in-single-sign-on-spec.cy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ describe('Logging In - Single Sign on', function () {
170170
.then(responseToToken)
171171
.then((id_token) => {
172172
// observe the "GET /config" call from the application
173-
cy.inspect('/config').as('getConfig')
173+
cy.intercept('/config').as('getConfig')
174174

175175
// now go visit our app
176176
cy.visit('/', {
@@ -240,7 +240,7 @@ describe('Logging In - Single Sign on', function () {
240240
// in order to get access to the test context "this.token" saved above
241241

242242
// observe the "GET /config" call from the application
243-
cy.inspect('/config').as('getConfig')
243+
cy.intercept('/config').as('getConfig')
244244

245245
cy.visit('/')
246246

examples/logging-in__xhr-web-forms/cypress/e2e/logging-in-xhr-web-form-spec.cy.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ describe('Logging In - XHR Web Form', function () {
4242
// during unsuccessful login attempt
4343

4444
// alias this route so we can wait on it later
45-
cy.inspect('POST', '/login').as('postLogin')
45+
cy.intercept('POST', '/login').as('postLogin')
4646

4747
// incorrect username on password
4848
cy.get('input[name=username]').type('jane.lae')
@@ -68,7 +68,7 @@ describe('Logging In - XHR Web Form', function () {
6868

6969
// simulate the server returning 503 with
7070
// empty JSON response body
71-
cy.inspect(
71+
cy.intercept(
7272
'POST',
7373
'/login',
7474
{
@@ -133,7 +133,7 @@ describe('Logging In - XHR Web Form', function () {
133133

134134
// simulate the server returning 503 with
135135
// empty JSON response body
136-
cy.inspect(
136+
cy.intercept(
137137
'POST',
138138
'/login',
139139
{

examples/server-communication__bootstrapping-your-app/cypress/e2e/bootstrapping_your_app_spec.cy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ describe('Bootstrapping App Test Data', function () {
6969
// store our test bootstrap data as a fixture
7070
// data in /fixtures/bootstrap.json
7171
cy.fixture('bootstrap.json').then((data) => {
72-
cy.inspect('GET', '/data.json', data)
72+
cy.intercept('GET', '/data.json', data)
7373
cy.visit('/xhr.html')
7474
cy.get('pre')
7575
.invoke('text')
@@ -88,7 +88,7 @@ describe('Bootstrapping App Test Data', function () {
8888
// coming in
8989

9090
cy.fixture('bootstrap.json').then((data) => {
91-
cy.inspect(
91+
cy.intercept(
9292
'/data.json',
9393
{
9494
delay: 2000, // simulate a slow XHR request

0 commit comments

Comments
 (0)