mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-08-07 19:45:15 +00:00
14 lines
588 B
JavaScript
14 lines
588 B
JavaScript
import {findLineAndCheck, getExpectedDetailsDict} from "../testHelpers/StatusBarHelper";
|
|
|
|
it('check', function () {
|
|
const podName = Cypress.env('name'), namespace = Cypress.env('namespace');
|
|
const port = Cypress.env('port');
|
|
cy.intercept('GET', `http://localhost:${port}/status/tap`).as('statusTap');
|
|
|
|
cy.visit(`http://localhost:${port}`);
|
|
cy.wait('@statusTap').its('response.statusCode').should('match', /^2\d{2}/);
|
|
|
|
cy.get(`[data-cy="expandedStatusBar"]`).trigger('mouseover',{force: true});
|
|
findLineAndCheck(getExpectedDetailsDict(podName, namespace));
|
|
});
|