json-server icon indicating copy to clipboard operation
json-server copied to clipboard

Enabled to see response status code.

Open akiko-pusu opened this issue 6 years ago • 1 comments

Related #981

Since the element which has id=custom-routes is modified by JS, so cli, server tests can’t confirm if this fixed or not. I add the sample test script to confirm the changeset by using Cypress.

import { createVerify } from "crypto";

describe('JSON Server test', () => {
    it('Shows Top', () => {
      cy.visit('http://localhost:3000/')

      cy.title().should('include', 'JSON Server')
      cy.get('div#custom-routes').should('not.have.text', 'undefined')
    })
  })

akiko-pusu avatar Jul 01 '19 15:07 akiko-pusu

I hope this pull request would be any help.....

akiko-pusu avatar Dec 03 '19 14:12 akiko-pusu