Skip to content

Commit

Permalink
Fixed state resources round issue (#374)
Browse files Browse the repository at this point in the history
  • Loading branch information
directcuteo authored Jun 22, 2022
1 parent a3e1e8f commit 74ac761
Show file tree
Hide file tree
Showing 15 changed files with 28,775 additions and 491 deletions.
408 changes: 206 additions & 202 deletions cypress/integration/logs/logs.spec.js

Large diffs are not rendered by default.

401 changes: 191 additions & 210 deletions cypress/integration/mempool/mempool-endorsement.spec.js

Large diffs are not rendered by default.

7 changes: 3 additions & 4 deletions cypress/integration/mempool/mempool-pending.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,16 @@ context('MEMPOOL PENDING', () => {
});
}));

it('[MEMPOOL PENDING] should fill the right details part with the message of the clicked row - the second last record in our case', () => beforePendingTest(() => {
it('[MEMPOOL PENDING] should fill the right details part with the message of the clicked row', () => beforePendingTest(() => {
cy.window()
.its('store')
.then(store => {
store.select('mempool').subscribe((mempool) => {
if (mempool.operationState.mempoolOperations.length) {
if (mempool.operationState.mempoolOperations.length > 1) {
cy.get('cdk-virtual-scroll-viewport')
.scrollTo('bottom')
.wait(1000)
.find('.row')
.eq(-2)
.eq(1)
.trigger('click')
.wait(1000)
.then(row => expect(row.hasClass('active')).to.be.true)
Expand Down
45 changes: 0 additions & 45 deletions cypress/integration/resources/system-resources.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,49 +163,4 @@ context('SYSTEM RESOURCES', () => {
});
});
}));

it('[SYSTEM RESOURCES] should display redirection overlay on chart when clicking on it and navigate to network on click', () => beforeSystemResourcesTest(() => {
let routed;
cy.window()
.its('store')
.then(store => {
store.subscribe(state => {
if (!routed && state.resources.systemResources) {
routed = true;
cy.get('svg g g g rect.tooltip-area')
.its(2)
.click(300, 20, { force: true })
.wait(1000)
.get('app-graph-redirection-overlay .redirection-overlay').should('be.visible')
.get('app-graph-redirection-overlay .redirection-overlay .pointer')
.first().click()
.wait(1000)
.url().should('include', '/network?timestamp=');
}
});
});
}));

it('[SYSTEM RESOURCES] should display redirection overlay on chart when clicking on it and navigate to logs on click', () => beforeSystemResourcesTest(() => {
let routed;
cy.window()
.its('store')
.then(store => {
store.subscribe(state => {
if (!routed && state.resources.systemResources) {
routed = true;
cy.get('svg g g g rect.tooltip-area')
.its(2)
.click(300, 20, { force: true })
.wait(1000)
.get('app-graph-redirection-overlay .redirection-overlay').should('be.visible')
.get('app-graph-redirection-overlay .redirection-overlay .pointer')
.last().click()
.wait(1000)
.url().should('include', '/logs?timestamp=');
}
});
});
}));

});
Loading

0 comments on commit 74ac761

Please sign in to comment.