Skip to content

Commit

Permalink
test: fix test 382 on mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
pcheremu committed Dec 7, 2023
1 parent c2bacdf commit 01e994b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,11 @@ Feature: Main Page
@id380 @mainnet
Scenario: Verify label "in" for Account info on Account page
Given I go to page "/address/0x0000000000000000000000000000000000000000"
# When I click by text "Show more transactions ->"
Then Element with "text" "in" should be "visible"

@id382 @mainnet
Scenario: Verify label "self" for Account info on Account page
Given I go to page "/address/0x94124252B5D343AB6E950A15982599ee1AADE660"
When I click by element with class "sr-only" and text "Next"
Given I go to page "/address/0xed7175341f123f7718aBaCF1702d6980CFc08784"
Then Element with "text" "self" should be "visible"

@id580 @id578 @id619 @testnet
Expand Down Expand Up @@ -195,9 +193,9 @@ Feature: Main Page
Then Element with "text" "Executed" should be "visible"
# Then Status component color with "Executed" status should be "green"

@id589 @testnet
@id589 @testnet @testnetSmokeSuite
Scenario: Check Failed status component for Transaction page
Given I go to page "/tx/0xb556d6cd77cf37002c668156b0ea7a1c18050decc1c99a67d6aa3b214647d2ae"
Given I go to page "/tx/0xd5f436a8f6785ae6d4d21375c5f497e4d0350407582a584a867cd7e01efbbc15"
Then Verify the badge with "Failed" status is visible
Then Element with "text" "Failed" should be "visible"
# Then Status component color with "failed" status should be "red"
Expand Down
6 changes: 0 additions & 6 deletions packages/app/tests/e2e/src/pages/base.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,6 @@ export class BasePage {
return await element;
}

async getElementByClassAndText(className: string, text: string) {
await this.world.page?.waitForTimeout(config.defaultTimeout.timeout);
element = await this.world.page?.locator(`//*[@class='${className}' and contains(text(), '${text}')]`);
return await element;
}

async getNetworkLayer(testid: string, selectorType: string) {
helper = new Helper(this.world);
const dataLinkId = `//*[@class='transactions-data-link-network']`;
Expand Down
10 changes: 0 additions & 10 deletions packages/app/tests/e2e/src/steps/blockexplorer.steps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,16 +135,6 @@ When("I click by element with partial href {string}", async function (this: ICus
await element.click();
});

When(
"I click by element with class {string} and text {string}",
async function (this: ICustomWorld, className: string, text: string) {
basePage = new BasePage(this);
element = await basePage.getElementByClassAndText(className, text);

await element.click();
}
);

When(
"I click by element with partial href {string} and text {string}",
async function (this: ICustomWorld, partialHref: string, text: string) {
Expand Down

0 comments on commit 01e994b

Please sign in to comment.