Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature(frontend): Enabling Test Run Panels #2816

Merged
merged 4 commits into from
Jun 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 6 additions & 6 deletions web/cypress/e2e/TestRunDetail/Outputs.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ describe('Outputs', () => {
// Open output flow from the Trace view (attributes)
cy.selectRunDetailMode(2);
cy.get('[data-cy=trace-node-database]', {timeout: 25000}).first().click({force: true});
cy.get('[data-cy=toggle-drawer]', {timeout: 25000}).click({force: true});
cy.get('[data-cy=toggle-drawer-SPAN_DETAILS]', {timeout: 25000}).click({force: true});
cy.get('[data-cy=attributes-search-container] input').type('db.name');
cy.get('[data-cy=attribute-row-db-name] .ant-dropdown-trigger').click();
cy.contains('Create test output').click();
Expand All @@ -33,7 +33,7 @@ describe('Outputs', () => {
// Publish and run
cy.get('[data-cy=trace-actions-publish]').click();
cy.wait('@testRuns', {timeout: 30000});
cy.get('[data-cy=output-item-container]').should('have.length', 2);
cy.get('[data-cy=output-count-badge]').should('contain.text', 2);

cy.deleteTest(true);
});
Expand All @@ -46,7 +46,7 @@ describe('Outputs', () => {
// Open output flow from the Trace view (attributes)
cy.selectRunDetailMode(2);
cy.get('[data-cy=trace-node-database]', {timeout: 25000}).first().click({force: true});
cy.get('[data-cy=toggle-drawer]', {timeout: 25000}).click({force: true});
cy.get('[data-cy=toggle-drawer-SPAN_DETAILS]', {timeout: 25000}).click({force: true});
cy.get('[data-cy=attributes-search-container] input').type('db.name');
cy.get('[data-cy=attribute-row-db-name] .ant-dropdown-trigger').click();
cy.contains('Create test output').click();
Expand Down Expand Up @@ -76,7 +76,7 @@ describe('Outputs', () => {
// Publish and run
cy.get('[data-cy=trace-actions-publish]').click();
cy.wait('@testRuns', {timeout: 30000});
cy.get('[data-cy=output-item-container]').should('have.length', 1);
cy.get('[data-cy=output-count-badge]').should('contain.text', 1);

cy.deleteTest(true);
});
Expand All @@ -89,7 +89,7 @@ describe('Outputs', () => {
// Open output flow from the Trace view (attributes)
cy.selectRunDetailMode(2);
cy.get('[data-cy=trace-node-database]', {timeout: 25000}).first().click({force: true});
cy.get('[data-cy=toggle-drawer]', {timeout: 25000}).click({force: true});
cy.get('[data-cy=toggle-drawer-SPAN_DETAILS]', {timeout: 25000}).click({force: true});
cy.get('[data-cy=attributes-search-container] input').type('db.name');
cy.get('[data-cy=attribute-row-db-name] .ant-dropdown-trigger').click();
cy.contains('Create test output').click();
Expand All @@ -101,7 +101,7 @@ describe('Outputs', () => {

// Revert
cy.get('[data-cy=trace-actions-revert-all]').click();
cy.get('[data-cy=output-item-container]').should('have.length', 0);
cy.get('[data-cy=output-count-badge]').should('contain.text', '');

cy.deleteTest(true);
});
Expand Down
4 changes: 2 additions & 2 deletions web/cypress/e2e/TestRunDetail/TestRunDetail.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ describe('Test Run Detail Views', () => {
it('Trace view -> show the attribute list for a specific span', () => {
cy.selectRunDetailMode(2);
cy.get('[data-cy=trace-node-http]').click();
cy.get('[data-cy=toggle-drawer]').click();
cy.get('[data-cy=toggle-drawer-SPAN_DETAILS]').click();

cy.get('[data-cy=attribute-list]').should('be.visible');
cy.get('[data-cy=attribute-row-http-method]').should('be.visible');
Expand All @@ -16,7 +16,7 @@ describe('Test Run Detail Views', () => {
it('Trace view -> attribute list', () => {
cy.selectRunDetailMode(2);
cy.get('[data-cy=trace-node-http]').click();
cy.get('[data-cy=toggle-drawer]').click();
cy.get('[data-cy=toggle-drawer-SPAN_DETAILS]').click();

cy.get('[data-cy=attribute-list]').should('be.visible');
});
Expand Down
105 changes: 33 additions & 72 deletions web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@
"react-flow-renderer": "10.3.7",
"react-joyride": "2.5.3",
"react-redux": "7.2.6",
"react-reflex": "4.0.9",
"react-router-dom": "6.2.1",
"react-scripts": "5.0.1",
"react-spaces": "0.3.8",
"react-syntax-highlighter": "15.5.0",
"react-use": "17.4.0",
"redux-first-history": "5.0.12",
Expand Down
1 change: 1 addition & 0 deletions web/src/components/AnalyzerResult/AnalyzerResult.styled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export const StyledCollapse = styled(Collapse)`

export const Container = styled.div`
padding: 24px;
background: ${({theme}) => theme.color.white};
`;

export const Title = styled(Typography.Title)`
Expand Down
37 changes: 0 additions & 37 deletions web/src/components/Drawer/Drawer.styled.ts

This file was deleted.