github.com/pyroscope-io/pyroscope@v0.37.3-0.20230725203016-5f6947968bd0/cypress/integration/webapp/serviceDiscovery.ts (about) 1 describe('service discovery page', () => { 2 it('works', () => { 3 const basePath = Cypress.env('basePath') || ''; 4 cy.intercept(`${basePath}/targets`, { 5 fixture: 'targets.json', 6 }).as('targets'); 7 8 cy.visit('/service-discovery'); 9 cy.wait('@targets'); 10 11 // one for the header and another for the content 12 cy.findAllByRole('row').should('have.length', 2); 13 14 cy.findByText('http://nodejs:3000/debug/pprof/profile?seconds=10'); 15 }); 16 });