Skip to content

Commit

Permalink
Fix tests and add cy:record script (#459)
Browse files Browse the repository at this point in the history
  • Loading branch information
Duddino authored Nov 8, 2024
1 parent 6307592 commit 3fa6f27
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 29 deletions.
2 changes: 2 additions & 0 deletions cypress/E2E_TESTING_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ cy.get('[data-testid="activity"]')
Takes the HTML of the visible activity and matches it against the old version.
If you need to update the snapshots, remove the outdated one and rerun the tests.

You can also run `npm run cy:record`, and then check the appropriate `git diff`.

## Should I write an e2e test?
E2e tests are very expensive compared to other ones. If you are writing tests for a minor bug, try to write a unit test first.
You should write e2e tests for:
Expand Down
7 changes: 5 additions & 2 deletions cypress/e2e/wallet_balance.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,18 @@ describe('Wallet balance tests', () => {
cy.clearDb();
const now = new Date(2024, 11, 5);
cy.clock(now);
cy.playback('GET', /explorer/, { toBeCalledAtLeast: 4 }).as('sync');
cy.playback('GET', /address/, {
toBeCalledAtLeast: 4,
matching: { ignores: ['hostname', 'port'] },
}).as('sync');
cy.visit('/');
cy.importWallet('DLabsktzGMnsK5K9uRTMCF6NoYNY6ET4Bb');
});
it('calculates balance correctly', () => {
for (let i = 0; i < 5; i++) {
cy.wait('@sync');
}
cy.get('[data-testid="primaryBalance"]').contains('1,297');
cy.get('[data-testid="primaryBalance"]').contains('0');

for (let i = 0; i < 10; i++) {
cy.get('[data-testid="activity"]')
Expand Down
Binary file not shown.
50 changes: 25 additions & 25 deletions cypress/snapshots/html/snapshot.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,28 @@
<div class="scrollTable" data-testid="activity"><div><table class="table table-responsive table-sm stakingTx table-mobile-scroll"><thead><tr><th scope="col" class="tx1">Time</th><th scope="col" class="tx2">Description</th><th scope="col" class="tx3">Amount</th><th scope="col" class="tx4 text-right"></th></tr></thead><tbody><tr><td class="align-middle pr-10px" style="font-size: 12px;"><span style="opacity: 0.5;">11/02/24</span></td><td class="align-middle pr-10px txcode"><a href="https://explorer.duddino.com/tx/7de5846df111f6ada9fba2b0ec7240ec7380a4911411b54deab859ecd3c8a4e5" target="_blank" rel="noopener noreferrer"><code class="wallet-code text-center active ptr" style="padding: 4px 9px;">Block Reward</code></a></td><td class="align-middle pr-10px"><b style="font-family: &quot;Montserrat Medium&quot;; font-size: 13px; font-weight: 100;"><i class="fa-solid fa-gift" style="padding-right: 5px; color: white;"></i><span style="font-weight: 300;">4<span style="opacity: 0.55; font-size: 13px">.00</span></span><span style="font-weight: 300; opacity: 0.55;">&nbsp;PIV</span></b></td><td class="text-right pr-10px align-middle"><span class="badge mb-0 badge-purple"><span class="checkIcon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
<div class="scrollTable" data-testid="activity"><div><table class="table table-responsive table-sm stakingTx table-mobile-scroll"><thead><tr><th scope="col" class="tx1">Time</th><th scope="col" class="tx2">Description</th><th scope="col" class="tx3">Amount</th><th scope="col" class="tx4 text-right"></th></tr></thead><tbody><tr><td class="align-middle pr-10px" style="font-size: 12px;"><span style="opacity: 0.5;">11/07/24</span></td><td class="align-middle pr-10px txcode"><a href="https://explorer.duddino.com/tx/d5216aed0b32dabeba9e4f27b6b90dcb697e2a6803dbeec0c98bb07c19630ef4" target="_blank" rel="noopener noreferrer"><code class="wallet-code text-center active ptr" style="padding: 4px 9px;">Block Reward</code></a></td><td class="align-middle pr-10px"><b style="font-family: &quot;Montserrat Medium&quot;; font-size: 13px; font-weight: 100;"><i class="fa-solid fa-gift" style="padding-right: 5px; color: white;"></i><span style="font-weight: 300;">4<span style="opacity: 0.55; font-size: 13px">.00</span></span><span style="font-weight: 300; opacity: 0.55;">&nbsp;PIV</span></b></td><td class="text-right pr-10px align-middle"><span class="badge mb-0 badge-purple"><span class="checkIcon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
<path d="M31.7,10l-18,18c-0.7,0.7-1.8,0.7-2.5,0c0,0,0,0,0,0l-11-11c-0.3-0.3-0.3-0.9,0-1.2c0,0,0,0,0,0l5-5c0.3-0.3,0.9-0.3,1.2,0
c0,0,0,0,0,0l6,6l13-13c0.3-0.3,0.9-0.3,1.3,0l5,5C32.1,9.1,32.1,9.6,31.7,10C31.8,10,31.8,10,31.7,10C31.7,10,31.7,10,31.7,10"></path>
</svg>
</span></span></td></tr><tr><td class="align-middle pr-10px" style="font-size: 12px;"><span style="opacity: 0.5;">11/07/24</span></td><td class="align-middle pr-10px txcode"><a href="https://explorer.duddino.com/tx/777b3b763e8505b01b3f7a72bd87bfebadec397484ae40af25ccaac8e28f573e" target="_blank" rel="noopener noreferrer"><code class="wallet-code text-center active ptr" style="padding: 4px 9px;">Sent to DJYKS3...</code></a></td><td class="align-middle pr-10px"><b style="font-family: &quot;Montserrat Medium&quot;; font-size: 13px; font-weight: 100;"><i class="fa-solid fa-minus" style="padding-right: 5px; color: rgb(249, 60, 76);"></i><span style="font-weight: 300;">780</span><span style="font-weight: 300; opacity: 0.55;">&nbsp;PIV</span></b></td><td class="text-right pr-10px align-middle"><span class="badge mb-0 badge-purple"><span class="checkIcon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
<path d="M31.7,10l-18,18c-0.7,0.7-1.8,0.7-2.5,0c0,0,0,0,0,0l-11-11c-0.3-0.3-0.3-0.9,0-1.2c0,0,0,0,0,0l5-5c0.3-0.3,0.9-0.3,1.2,0
c0,0,0,0,0,0l6,6l13-13c0.3-0.3,0.9-0.3,1.3,0l5,5C32.1,9.1,32.1,9.6,31.7,10C31.8,10,31.8,10,31.7,10C31.7,10,31.7,10,31.7,10"></path>
</svg>
</span></span></td></tr><tr><td class="align-middle pr-10px" style="font-size: 12px;"><span style="opacity: 0.5;">11/06/24</span></td><td class="align-middle pr-10px txcode"><a href="https://explorer.duddino.com/tx/51cb518fa9519927032b0fc8b73dc7f629bf3779331b91bb26ee52b6ed537435" target="_blank" rel="noopener noreferrer"><code class="wallet-code text-center active ptr" style="padding: 4px 9px;">Delegated to SdgQDp...</code></a></td><td class="align-middle pr-10px"><b style="font-family: &quot;Montserrat Medium&quot;; font-size: 13px; font-weight: 100;"><i class="fa-solid fa-snowflake" style="padding-right: 5px; color: white;"></i><span style="font-weight: 300;">500</span><span style="font-weight: 300; opacity: 0.55;">&nbsp;PIV</span></b></td><td class="text-right pr-10px align-middle"><span class="badge mb-0 badge-purple"><span class="checkIcon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
<path d="M31.7,10l-18,18c-0.7,0.7-1.8,0.7-2.5,0c0,0,0,0,0,0l-11-11c-0.3-0.3-0.3-0.9,0-1.2c0,0,0,0,0,0l5-5c0.3-0.3,0.9-0.3,1.2,0
c0,0,0,0,0,0l6,6l13-13c0.3-0.3,0.9-0.3,1.3,0l5,5C32.1,9.1,32.1,9.6,31.7,10C31.8,10,31.8,10,31.7,10C31.7,10,31.7,10,31.7,10"></path>
</svg>
</span></span></td></tr><tr><td class="align-middle pr-10px" style="font-size: 12px;"><span style="opacity: 0.5;">11/04/24</span></td><td class="align-middle pr-10px txcode"><a href="https://explorer.duddino.com/tx/8befe7fa939200b6181a4a6c1775c252df3bd205fff90a54d5f7da2e57164ca6" target="_blank" rel="noopener noreferrer"><code class="wallet-code text-center active ptr" style="padding: 4px 9px;">Sent to D9m8Q9...</code></a></td><td class="align-middle pr-10px"><b style="font-family: &quot;Montserrat Medium&quot;; font-size: 13px; font-weight: 100;"><i class="fa-solid fa-minus" style="padding-right: 5px; color: rgb(249, 60, 76);"></i><span style="font-weight: 300;">10<span style="opacity: 0.55; font-size: 13px">.00</span></span><span style="font-weight: 300; opacity: 0.55;">&nbsp;PIV</span></b></td><td class="text-right pr-10px align-middle"><span class="badge mb-0 badge-purple"><span class="checkIcon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
<path d="M31.7,10l-18,18c-0.7,0.7-1.8,0.7-2.5,0c0,0,0,0,0,0l-11-11c-0.3-0.3-0.3-0.9,0-1.2c0,0,0,0,0,0l5-5c0.3-0.3,0.9-0.3,1.2,0
c0,0,0,0,0,0l6,6l13-13c0.3-0.3,0.9-0.3,1.3,0l5,5C32.1,9.1,32.1,9.6,31.7,10C31.8,10,31.8,10,31.7,10C31.7,10,31.7,10,31.7,10"></path>
</svg>
</span></span></td></tr><tr><td class="align-middle pr-10px" style="font-size: 12px;"><span style="opacity: 0.5;">11/04/24</span></td><td class="align-middle pr-10px txcode"><a href="https://explorer.duddino.com/tx/3a260f66dfff8980e5473b1a1fd02f1c0150cfedcfb2e4fab91b953e2f8bb4cf" target="_blank" rel="noopener noreferrer"><code class="wallet-code text-center active ptr" style="padding: 4px 9px;">Sent to D9m8Q9...</code></a></td><td class="align-middle pr-10px"><b style="font-family: &quot;Montserrat Medium&quot;; font-size: 13px; font-weight: 100;"><i class="fa-solid fa-minus" style="padding-right: 5px; color: rgb(249, 60, 76);"></i><span style="font-weight: 300;">5<span style="opacity: 0.55; font-size: 13px">.00</span></span><span style="font-weight: 300; opacity: 0.55;">&nbsp;PIV</span></b></td><td class="text-right pr-10px align-middle"><span class="badge mb-0 badge-purple"><span class="checkIcon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
<path d="M31.7,10l-18,18c-0.7,0.7-1.8,0.7-2.5,0c0,0,0,0,0,0l-11-11c-0.3-0.3-0.3-0.9,0-1.2c0,0,0,0,0,0l5-5c0.3-0.3,0.9-0.3,1.2,0
c0,0,0,0,0,0l6,6l13-13c0.3-0.3,0.9-0.3,1.3,0l5,5C32.1,9.1,32.1,9.6,31.7,10C31.8,10,31.8,10,31.7,10C31.7,10,31.7,10,31.7,10"></path>
</svg>
</span></span></td></tr><tr><td class="align-middle pr-10px" style="font-size: 12px;"><span style="opacity: 0.5;">11/04/24</span></td><td class="align-middle pr-10px txcode"><a href="https://explorer.duddino.com/tx/c595bcd12fd38446c21af70712474042e5c9441d51295aa2ed61c6c629df3296" target="_blank" rel="noopener noreferrer"><code class="wallet-code text-center active ptr" style="padding: 4px 9px;">Sent to D9m8Q9...</code></a></td><td class="align-middle pr-10px"><b style="font-family: &quot;Montserrat Medium&quot;; font-size: 13px; font-weight: 100;"><i class="fa-solid fa-minus" style="padding-right: 5px; color: rgb(249, 60, 76);"></i><span style="font-weight: 300;">2<span style="opacity: 0.55; font-size: 13px">.00</span></span><span style="font-weight: 300; opacity: 0.55;">&nbsp;PIV</span></b></td><td class="text-right pr-10px align-middle"><span class="badge mb-0 badge-purple"><span class="checkIcon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
<path d="M31.7,10l-18,18c-0.7,0.7-1.8,0.7-2.5,0c0,0,0,0,0,0l-11-11c-0.3-0.3-0.3-0.9,0-1.2c0,0,0,0,0,0l5-5c0.3-0.3,0.9-0.3,1.2,0
c0,0,0,0,0,0l6,6l13-13c0.3-0.3,0.9-0.3,1.3,0l5,5C32.1,9.1,32.1,9.6,31.7,10C31.8,10,31.8,10,31.7,10C31.7,10,31.7,10,31.7,10"></path>
</svg>
</span></span></td></tr><tr><td class="align-middle pr-10px" style="font-size: 12px;"><span style="opacity: 0.5;">11/02/24</span></td><td class="align-middle pr-10px txcode"><a href="https://explorer.duddino.com/tx/7de5846df111f6ada9fba2b0ec7240ec7380a4911411b54deab859ecd3c8a4e5" target="_blank" rel="noopener noreferrer"><code class="wallet-code text-center active ptr" style="padding: 4px 9px;">Block Reward</code></a></td><td class="align-middle pr-10px"><b style="font-family: &quot;Montserrat Medium&quot;; font-size: 13px; font-weight: 100;"><i class="fa-solid fa-gift" style="padding-right: 5px; color: white;"></i><span style="font-weight: 300;">4<span style="opacity: 0.55; font-size: 13px">.00</span></span><span style="font-weight: 300; opacity: 0.55;">&nbsp;PIV</span></b></td><td class="text-right pr-10px align-middle"><span class="badge mb-0 badge-purple"><span class="checkIcon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
<path d="M31.7,10l-18,18c-0.7,0.7-1.8,0.7-2.5,0c0,0,0,0,0,0l-11-11c-0.3-0.3-0.3-0.9,0-1.2c0,0,0,0,0,0l5-5c0.3-0.3,0.9-0.3,1.2,0
c0,0,0,0,0,0l6,6l13-13c0.3-0.3,0.9-0.3,1.3,0l5,5C32.1,9.1,32.1,9.6,31.7,10C31.8,10,31.8,10,31.7,10C31.7,10,31.7,10,31.7,10"></path>
</svg>
Expand Down Expand Up @@ -414,28 +438,4 @@
<path d="M31.7,10l-18,18c-0.7,0.7-1.8,0.7-2.5,0c0,0,0,0,0,0l-11-11c-0.3-0.3-0.3-0.9,0-1.2c0,0,0,0,0,0l5-5c0.3-0.3,0.9-0.3,1.2,0
c0,0,0,0,0,0l6,6l13-13c0.3-0.3,0.9-0.3,1.3,0l5,5C32.1,9.1,32.1,9.6,31.7,10C31.8,10,31.8,10,31.7,10C31.7,10,31.7,10,31.7,10"></path>
</svg>
</span></span></td></tr><tr><td class="align-middle pr-10px" style="font-size: 12px;"><span style="opacity: 0.5;">06/22/24</span></td><td class="align-middle pr-10px txcode"><a href="https://explorer.duddino.com/tx/fbbe75b16863a66192fad65619028e33fd569ce4dcc0dde6a8deba4034b4c93d" target="_blank" rel="noopener noreferrer"><code class="wallet-code text-center active ptr" style="padding: 4px 9px;">Received with DLabsk...</code></a></td><td class="align-middle pr-10px"><b style="font-family: &quot;Montserrat Medium&quot;; font-size: 13px; font-weight: 100;"><i class="fa-solid fa-plus" style="padding-right: 5px; color: rgb(92, 255, 92);"></i><span style="font-weight: 300;">5<span style="opacity: 0.55; font-size: 13px">.10</span></span><span style="font-weight: 300; opacity: 0.55;">&nbsp;PIV</span></b></td><td class="text-right pr-10px align-middle"><span class="badge mb-0 badge-purple"><span class="checkIcon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
<path d="M31.7,10l-18,18c-0.7,0.7-1.8,0.7-2.5,0c0,0,0,0,0,0l-11-11c-0.3-0.3-0.3-0.9,0-1.2c0,0,0,0,0,0l5-5c0.3-0.3,0.9-0.3,1.2,0
c0,0,0,0,0,0l6,6l13-13c0.3-0.3,0.9-0.3,1.3,0l5,5C32.1,9.1,32.1,9.6,31.7,10C31.8,10,31.8,10,31.7,10C31.7,10,31.7,10,31.7,10"></path>
</svg>
</span></span></td></tr><tr><td class="align-middle pr-10px" style="font-size: 12px;"><span style="opacity: 0.5;">06/22/24</span></td><td class="align-middle pr-10px txcode"><a href="https://explorer.duddino.com/tx/cecf301c8a3b22a7aeb0330488a077fbba9b219d119d0528ff62e6cb2b0c1a02" target="_blank" rel="noopener noreferrer"><code class="wallet-code text-center active ptr" style="padding: 4px 9px;">Received with DLabsk...</code></a></td><td class="align-middle pr-10px"><b style="font-family: &quot;Montserrat Medium&quot;; font-size: 13px; font-weight: 100;"><i class="fa-solid fa-plus" style="padding-right: 5px; color: rgb(92, 255, 92);"></i><span style="font-weight: 300;">0<span style="opacity: 0.55; font-size: 13px">.63</span></span><span style="font-weight: 300; opacity: 0.55;">&nbsp;PIV</span></b></td><td class="text-right pr-10px align-middle"><span class="badge mb-0 badge-purple"><span class="checkIcon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
<path d="M31.7,10l-18,18c-0.7,0.7-1.8,0.7-2.5,0c0,0,0,0,0,0l-11-11c-0.3-0.3-0.3-0.9,0-1.2c0,0,0,0,0,0l5-5c0.3-0.3,0.9-0.3,1.2,0
c0,0,0,0,0,0l6,6l13-13c0.3-0.3,0.9-0.3,1.3,0l5,5C32.1,9.1,32.1,9.6,31.7,10C31.8,10,31.8,10,31.7,10C31.7,10,31.7,10,31.7,10"></path>
</svg>
</span></span></td></tr><tr><td class="align-middle pr-10px" style="font-size: 12px;"><span style="opacity: 0.5;">06/22/24</span></td><td class="align-middle pr-10px txcode"><a href="https://explorer.duddino.com/tx/b6c0ded1f61b6e3262fffe51ba27a4e8f229f27678c51eff0a5a06e76ba1e796" target="_blank" rel="noopener noreferrer"><code class="wallet-code text-center active ptr" style="padding: 4px 9px;">Received with DLabsk...</code></a></td><td class="align-middle pr-10px"><b style="font-family: &quot;Montserrat Medium&quot;; font-size: 13px; font-weight: 100;"><i class="fa-solid fa-plus" style="padding-right: 5px; color: rgb(92, 255, 92);"></i><span style="font-weight: 300;">0<span style="opacity: 0.55; font-size: 13px">.50</span></span><span style="font-weight: 300; opacity: 0.55;">&nbsp;PIV</span></b></td><td class="text-right pr-10px align-middle"><span class="badge mb-0 badge-purple"><span class="checkIcon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
<path d="M31.7,10l-18,18c-0.7,0.7-1.8,0.7-2.5,0c0,0,0,0,0,0l-11-11c-0.3-0.3-0.3-0.9,0-1.2c0,0,0,0,0,0l5-5c0.3-0.3,0.9-0.3,1.2,0
c0,0,0,0,0,0l6,6l13-13c0.3-0.3,0.9-0.3,1.3,0l5,5C32.1,9.1,32.1,9.6,31.7,10C31.8,10,31.8,10,31.7,10C31.7,10,31.7,10,31.7,10"></path>
</svg>
</span></span></td></tr><tr><td class="align-middle pr-10px" style="font-size: 12px;"><span style="opacity: 0.5;">06/22/24</span></td><td class="align-middle pr-10px txcode"><a href="https://explorer.duddino.com/tx/5618b8197e76a52cd0bf54985e6bfd9534fa5ec035446373e1bf3e7598ceb777" target="_blank" rel="noopener noreferrer"><code class="wallet-code text-center active ptr" style="padding: 4px 9px;">Received with DLabsk...</code></a></td><td class="align-middle pr-10px"><b style="font-family: &quot;Montserrat Medium&quot;; font-size: 13px; font-weight: 100;"><i class="fa-solid fa-plus" style="padding-right: 5px; color: rgb(92, 255, 92);"></i><span style="font-weight: 300;">0<span style="opacity: 0.55; font-size: 13px">.50</span></span><span style="font-weight: 300; opacity: 0.55;">&nbsp;PIV</span></b></td><td class="text-right pr-10px align-middle"><span class="badge mb-0 badge-purple"><span class="checkIcon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
<path d="M31.7,10l-18,18c-0.7,0.7-1.8,0.7-2.5,0c0,0,0,0,0,0l-11-11c-0.3-0.3-0.3-0.9,0-1.2c0,0,0,0,0,0l5-5c0.3-0.3,0.9-0.3,1.2,0
c0,0,0,0,0,0l6,6l13-13c0.3-0.3,0.9-0.3,1.3,0l5,5C32.1,9.1,32.1,9.6,31.7,10C31.8,10,31.8,10,31.7,10C31.7,10,31.7,10,31.7,10"></path>
</svg>
</span></span></td></tr><tr><td class="align-middle pr-10px" style="font-size: 12px;"><span style="opacity: 0.5;">06/22/24</span></td><td class="align-middle pr-10px txcode"><a href="https://explorer.duddino.com/tx/736b3bfd809b9933f6eaf795a2595ce40fbf36589cdedf0c2ae168b12f5b3209" target="_blank" rel="noopener noreferrer"><code class="wallet-code text-center active ptr" style="padding: 4px 9px;">Received with DLabsk...</code></a></td><td class="align-middle pr-10px"><b style="font-family: &quot;Montserrat Medium&quot;; font-size: 13px; font-weight: 100;"><i class="fa-solid fa-plus" style="padding-right: 5px; color: rgb(92, 255, 92);"></i><span style="font-weight: 300;">1<span style="opacity: 0.55; font-size: 13px">.26</span></span><span style="font-weight: 300; opacity: 0.55;">&nbsp;PIV</span></b></td><td class="text-right pr-10px align-middle"><span class="badge mb-0 badge-purple"><span class="checkIcon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
<path d="M31.7,10l-18,18c-0.7,0.7-1.8,0.7-2.5,0c0,0,0,0,0,0l-11-11c-0.3-0.3-0.3-0.9,0-1.2c0,0,0,0,0,0l5-5c0.3-0.3,0.9-0.3,1.2,0
c0,0,0,0,0,0l6,6l13-13c0.3-0.3,0.9-0.3,1.3,0l5,5C32.1,9.1,32.1,9.6,31.7,10C31.8,10,31.8,10,31.7,10C31.7,10,31.7,10,31.7,10"></path>
</svg>
</span></span></td></tr><tr><td class="align-middle pr-10px" style="font-size: 12px;"><span style="opacity: 0.5;">06/22/24</span></td><td class="align-middle pr-10px txcode"><a href="https://explorer.duddino.com/tx/1bf8141415dda35ffdab7005b306b75160a8f7231805ff5e882aa40eb982aa45" target="_blank" rel="noopener noreferrer"><code class="wallet-code text-center active ptr" style="padding: 4px 9px;">Received with DLabsk...</code></a></td><td class="align-middle pr-10px"><b style="font-family: &quot;Montserrat Medium&quot;; font-size: 13px; font-weight: 100;"><i class="fa-solid fa-plus" style="padding-right: 5px; color: rgb(92, 255, 92);"></i><span style="font-weight: 300;">0<span style="opacity: 0.55; font-size: 13px">.31</span></span><span style="font-weight: 300; opacity: 0.55;">&nbsp;PIV</span></b></td><td class="text-right pr-10px align-middle"><span class="badge mb-0 badge-purple"><span class="checkIcon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
<path d="M31.7,10l-18,18c-0.7,0.7-1.8,0.7-2.5,0c0,0,0,0,0,0l-11-11c-0.3-0.3-0.3-0.9,0-1.2c0,0,0,0,0,0l5-5c0.3-0.3,0.9-0.3,1.2,0
c0,0,0,0,0,0l6,6l13-13c0.3-0.3,0.9-0.3,1.3,0l5,5C32.1,9.1,32.1,9.6,31.7,10C31.8,10,31.8,10,31.7,10C31.7,10,31.7,10,31.7,10"></path>
</svg>
</span></span></td></tr></tbody></table></div><center><button class="pivx-button-medium" data-testid="activityLoadMore"><span class="buttoni-icon"><i class="fas fa-sync fa-tiny-margin"></i></span><span class="buttoni-text">Load more</span></button></center></div>
2 changes: 1 addition & 1 deletion cypress/support/snapshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Cypress.Commands.add(
const snapshotPath = `cypress/snapshots/html/${snapshotName}.html`;

cy.task('fileExists', snapshotPath).then((exists) => {
if (exists) {
if (exists && !process.env.CYPRESS_PLAYBACK_MODE === 'record') {
cy.readFile(snapshotPath).then((expectedHtml) => {
expect(htmlContent === expectedHtml).to.equal(true);
});
Expand Down
Loading

0 comments on commit 3fa6f27

Please sign in to comment.