Skip to content

Commit 0960c95

Browse files
authored
test(extension): test maintenance 8 April (#1047)
1 parent 9227b4c commit 0960c95

File tree

7 files changed

+18
-5
lines changed

7 files changed

+18
-5
lines changed

packages/e2e-tests/src/assert/dAppConnectorAssert.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,9 @@ class DAppConnectorAssert {
274274
}
275275

276276
async assertSeeConfirmTransactionPage({ assetsDetails, typeOfTransaction }: ExpectedTransactionData) {
277+
// TODO
278+
// remove when https://input-output.atlassian.net/browse/LW-9917 is fixed
279+
await browser.pause(3000);
277280
await this.assertSeeHeader();
278281
await ConfirmTransactionPage.transactionTypeTitle.waitForDisplayed();
279282
expect(await ConfirmTransactionPage.transactionTypeTitle.getText()).to.equal(

packages/e2e-tests/src/assert/multidelegation/StakePoolDetailsAssert.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,12 @@ class StakePoolDetailsAssert {
1818
expect(await StakePoolDetails.informationDescription.getText()).to.equal(expectedStakedPool.information);
1919

2020
if (noMetaDataPool) {
21+
const shortPoolId = `${expectedStakedPool.poolId.slice(0, 6)}...${expectedStakedPool.poolId.slice(-8)}`;
22+
expect(await StakePoolDetails.poolTicker.getText()).to.equal(shortPoolId);
2123
await StakePoolDetails.socialLinksTitle.waitForDisplayed({ reverse: true });
2224
await StakePoolDetails.socialWebsiteIcon.waitForDisplayed({ reverse: true });
2325
} else {
26+
expect(await StakePoolDetails.poolTicker.getText()).to.equal(expectedStakedPool.ticker);
2427
expect(await StakePoolDetails.socialLinksTitle.getText()).to.equal(await t('drawer.details.social', 'staking'));
2528
await StakePoolDetails.socialWebsiteIcon.waitForDisplayed();
2629
}

packages/e2e-tests/src/assert/transactionDetailsAssert.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ class TransactionsDetailsAssert {
9292
expectedTickers.push(pool.poolTicker);
9393
}
9494

95+
await TransactionDetailsPage.transactionDetails.waitForStable();
9596
const actualIds: string[] = await TransactionDetailsPage.getTransactionDetailsStakepoolIds();
9697
const actualNames: string[] = await TransactionDetailsPage.getTransactionDetailsStakepoolNames();
9798
const actualTickers: string[] = await TransactionDetailsPage.getTransactionDetailsStakepoolTickers();

packages/e2e-tests/src/features/SendTransactionBundlesExtended.feature

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,9 @@ Feature: Send - Extended Browser View (Advanced Tx)
214214
Scenario: Extended-view - send maximum amount of multiple assets by clicking MAX button
215215
When I click "Send" button on page header
216216
And I enter a valid "shelley" address in the bundle 1 recipient's address
217-
And I click MAX button in bundle 1 for "tADA" asset
218-
Then the maximum available amount is displayed in bundle: 1 for "tADA" asset
217+
# disabled until "utxo fully depleted" error is fixed for MAX tADA
218+
# And I click MAX button in bundle 1 for "tADA" asset
219+
# Then the maximum available amount is displayed in bundle: 1 for "tADA" asset
219220
When I click "Add token or NFT" button for bundle 1
220221
And click on an token with name: "LaceCoin"
221222
And I click MAX button in bundle 1 for "LaceCoin1" asset

packages/e2e-tests/src/features/SendTransactionSimplePopup.part2.feature

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,9 @@ Feature: LW-484: Send & Receive - Popup View (Simple Tx)
196196
Scenario: Popup-view - send maximum amount of multiple assets by clicking MAX button
197197
When I click "Send" button on Tokens page in popup mode
198198
And I enter a valid "shelley" address in the bundle 1 recipient's address
199-
And I click MAX button in bundle 1 for "tADA" asset
200-
Then the maximum available amount is displayed in bundle: 1 for "tADA" asset
199+
# disabled until "utxo fully depleted" error is fixed for MAX tADA
200+
# And I click MAX button in bundle 1 for "tADA" asset
201+
# Then the maximum available amount is displayed in bundle: 1 for "tADA" asset
201202
When I click "Add token or NFT" button for bundle 1
202203
And click on an token with name: "LaceCoin"
203204
And I click MAX button in bundle 1 for "LaceCoin1" asset

packages/e2e-tests/src/features/analytics/AnalyticsEventProperitesExtended.feature

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ Feature: Analytics - Posthog - Event properties
2626
Then I validate that the event includes "trigger_point" property
2727
And I validate that the "send | send | click" event includes property "trigger_point" with value "nfts page" in posthog
2828

29-
@LW-8351
29+
@LW-8351 @Pending
30+
@issue=LW-10242
3031
Scenario: Analytics -Extended View - Verify event properties - Send - Send token
3132
Given I set up request interception for posthog analytics request(s)
3233
And I click token with name: "Cardano"

packages/e2e-tests/src/steps/sendTransactionSimpleSteps.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,9 @@ Then(
269269
async (valueToEnter: string, assetName: string, bundleIndex: number) => {
270270
assetName = assetName === 'tADA' && extensionUtils.isMainnet() ? 'ADA' : assetName;
271271
await TransactionNewPage.coinConfigure(bundleIndex, assetName).fillTokenValue(Number.parseFloat(valueToEnter));
272+
// workaround for test automation only to fire all events after finished typing
273+
await TransactionNewPage.clickDrawerBackground();
274+
await TransactionNewPage.coinConfigure(bundleIndex, assetName).balanceFiatValueElement.click();
272275
}
273276
);
274277

0 commit comments

Comments
 (0)