Skip to content

Commit

Permalink
intercept, not inspect oops
Browse files Browse the repository at this point in the history
  • Loading branch information
mjhenkes committed Nov 4, 2022
1 parent f2bee8a commit cfd9c52
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion examples/blogs__vue-vuex-rest/cypress/support/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const visit = (skipWaiting) => {

console.log('visit will wait for initial todos', waitForInitialLoad)
if (waitForInitialLoad) {
cy.inspect('/todos').as('initialTodos')
cy.intercept('/todos').as('initialTodos')
}

cy.visit('/')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ describe('Logging In - Single Sign on', function () {
.then(responseToToken)
.then((id_token) => {
// observe the "GET /config" call from the application
cy.inspect('/config').as('getConfig')
cy.intercept('/config').as('getConfig')

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

// observe the "GET /config" call from the application
cy.inspect('/config').as('getConfig')
cy.intercept('/config').as('getConfig')

cy.visit('/')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ describe('Logging In - XHR Web Form', function () {
// during unsuccessful login attempt

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

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

// simulate the server returning 503 with
// empty JSON response body
cy.inspect(
cy.intercept(
'POST',
'/login',
{
Expand Down Expand Up @@ -133,7 +133,7 @@ describe('Logging In - XHR Web Form', function () {

// simulate the server returning 503 with
// empty JSON response body
cy.inspect(
cy.intercept(
'POST',
'/login',
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ describe('Bootstrapping App Test Data', function () {
// store our test bootstrap data as a fixture
// data in /fixtures/bootstrap.json
cy.fixture('bootstrap.json').then((data) => {
cy.inspect('GET', '/data.json', data)
cy.intercept('GET', '/data.json', data)
cy.visit('/xhr.html')
cy.get('pre')
.invoke('text')
Expand All @@ -88,7 +88,7 @@ describe('Bootstrapping App Test Data', function () {
// coming in

cy.fixture('bootstrap.json').then((data) => {
cy.inspect(
cy.intercept(
'/data.json',
{
delay: 2000, // simulate a slow XHR request
Expand Down

0 comments on commit cfd9c52

Please sign in to comment.