Skip to content

Commit

Permalink
fix: environment varialbe for koios
Browse files Browse the repository at this point in the history
  • Loading branch information
M4rc0Russ0 committed Jul 31, 2023
1 parent bf03a30 commit 6d31e15
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 17 deletions.
6 changes: 3 additions & 3 deletions cypress/smoke/CypressDynamicScript.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@

def main(argv):
opts, args = getopt.getopt(argv, "h", ["blockl=", "epochl=", "blocks=", "blocke=", "epochs=", "epoche="])
blockLimit = 5
epochLimit = 50
blockLimit = 50
epochLimit = 10
blockStart = 1
blockEnd = 6015246
epochStart = 1
epochEnd = 500
epochEnd = 425
for opt, arg in opts:
print(opt)
match opt:
Expand Down
2 changes: 1 addition & 1 deletion cypress/smoke/service/DataManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def getBlockDetail(self, json):
totalOutputInAda = "{:,}".format(totalOutputInAda)

if estecha['tx_count']:
testScript = "\ncy.get('.css-8at8rn').should(\"contain\", \"{}\");".format(
testScript = "\ncy.get('.MuiGrid-container > :nth-child(3)').should(\"contain\", \"{}\");".format(
estecha['tx_count']
)

Expand Down
8 changes: 4 additions & 4 deletions cypress/smoke/templates/blockDyn.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
it("should show details of block $blockNo", () => {
cy.visit("/block/$blockNo");
cy.get('[data-testid="block-details-total-output-in-ada"]').should("contain", "${totalOutputInAda}");
cy.get(':nth-child(1) > .css-golliw').should("contain", "${block_time}");
cy.get(':nth-child(3) > .css-golliw').should("contain", "${tx_count}");
cy.get(':nth-child(7) > .css-golliw').should("contain", "${epoch_slot}/432000");
cy.get('.css-ugzz4l').should("contain", "${hash}");
cy.get('.MuiGrid-container > :nth-child(1)').should("contain", "${block_time}");
cy.get('.MuiGrid-container > :nth-child(3)').should("contain", "${tx_count}");
cy.get('.MuiGrid-container > :nth-child(7)').should("contain", "${epoch_slot}/432000");
cy.get('.css-1kxgysv').should("contain", "${hash}");
$tests

});
8 changes: 4 additions & 4 deletions cypress/smoke/templates/epochDyn.cy.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
it("should show details of Epoch ${epochNo}", () => {
cy.visit("epoch/${epochNo}");
cy.get(':nth-child(1) > .css-golliw').should("contain", "${start_time}");
cy.get(':nth-child(2) > .css-golliw').should("contain", "${end_time}");
cy.get('.MuiGrid-container > :nth-child(1)').should("contain", "${start_time}");
cy.get('.MuiGrid-container > :nth-child(2)').should("contain", "${end_time}");
cy.get('.MuiGrid-container > :nth-child(8)').should("contain", "${total_rewards}");
cy.get('[style="position: relative; width: 100%; height: 100%;"] > div').should("contain", "${epoch_no}");
cy.get(':nth-child(4) > .css-golliw').invoke('text').then(parseFloat).should("be.gte", ${blk_count} - 1);
cy.get(':nth-child(4) > .css-golliw').invoke('text').then(parseFloat).should("be.lte", ${blk_count} + 1);
cy.get(':nth-child(4) > .css-seof3k').invoke('text').then(parseInt).should('be.a', 'number').and("be.gte", ${blk_count} - 1);
cy.get(':nth-child(4) > .css-seof3k').invoke('text').then(parseInt).should('be.a', 'number').and("be.lte", ${blk_count} + 1);
$tests
});
6 changes: 3 additions & 3 deletions cypress/smoke/templates/transactionDyn.cy.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@

it("should show details of transaction $transactionNo", () => {
cy.visit("/transaction/$transactionNo");
cy.get(':nth-child(3) > .css-golliw').should("contain", "${tx_timestamp}");
cy.get(':nth-child(5) > .css-golliw > .css-0').should("contain", "${total_output}");
cy.get('.MuiGrid-container').should("contain", "${block_height}");
cy.get('.MuiGrid-container > :nth-child(3)').should("contain", "${tx_timestamp}");
cy.get('.MuiGrid-container > :nth-child(5)').should("contain", "${total_output}");
cy.get('.MuiGrid-container > :nth-child(7)').should("contain", "${block_height}");


});
4 changes: 2 additions & 2 deletions package-lock.json

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

0 comments on commit 6d31e15

Please sign in to comment.