Skip to content

Commit

Permalink
QA - small fixes for the smoke test (#1961)
Browse files Browse the repository at this point in the history
  • Loading branch information
eunjisong authored Oct 15, 2024
1 parent 7cead8f commit 409bcf9
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const BridgeTransactionItem: FC<BridgeTransactionItemProps> = ({

return (
<AvaListItem.Base
testID="activityListItem"
testID="bridgeActivityListItem"
title={pending ? 'Bridging...' : 'Bridge'}
leftComponent={
<View
Expand Down
1 change: 1 addition & 0 deletions packages/core-mobile/e2e/locators/activityTab.loc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ export default {
transaction: 'activity_list__Contract Call',
activityDetail: 'activity_detail__amount',
activityListItem: 'activityListItem',
bridgeActivityListItem: 'bridgeActivityListItem',
activityListItemAmount: 'acitivty_item_amount',
avaxOutgoingTransactionDetail: '-0.0001 AVAX',
avaxIncomingTransactionDetail: '+0.0001 AVAX',
Expand Down
4 changes: 4 additions & 0 deletions packages/core-mobile/e2e/pages/activityTab.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ class ActivityTabPage {
return by.id(activityTab.activityListItemAmount)
}

get bridgeActivityListItem() {
return by.id(activityTab.bridgeActivityListItem)
}

get selectFilterDropdown() {
return by.id(activityTab.currentFilter)
}
Expand Down
5 changes: 2 additions & 3 deletions packages/core-mobile/e2e/pages/popUpModal.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,10 @@ class PopUpModalPage {

async verifyApproveTransactionScreen() {
try {
await actions.waitForElement(this.approveBtn, 5000)
} catch (e) {
await sendPage.tapNextButton()
} catch (e) {
await actions.waitForElement(this.approveBtn, 10000)
}
await actions.waitForElement(this.approveBtn, 5000)
}

async verifyFeeIsLegit(isPXChain = false, estimatedGasFee = 0.009) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import Actions from '../../helpers/actions'
import ActivityTabPage from '../../pages/activityTab.page'
import PortfolioPage from '../../pages/portfolio.page'
import { warmup } from '../../helpers/warmup'
import activityTabPage from '../../pages/activityTab.page'
import accountManagePage from '../../pages/accountManage.page'

describe('Filter transactions on Activity List', () => {
Expand All @@ -28,9 +27,9 @@ describe('Filter transactions on Activity List', () => {
await ActivityTabPage.tapBridgeFilterOption()
await ActivityTabPage.verifySelectedFilter('Bridge')
try {
await ActivityTabPage.verifyExistingRow('Bridge')
await Actions.waitForElement(ActivityTabPage.bridgeActivityListItem)
} catch (error) {
await Actions.waitForElement(activityTabPage.noRecentActivity)
await Actions.waitForElement(ActivityTabPage.noRecentActivity)
}
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe('Dapp - Core', () => {
await browserPage.connectTermAndContinue()
await browserPage.connectCore()
await connectToSitePage.selectAccountAndconnect()
})
}, 60000)

it('should verify core.app connected', async () => {
await securityAndPrivacyPage.goToConnectedSites()
Expand Down

0 comments on commit 409bcf9

Please sign in to comment.