Skip to content

Commit

Permalink
feature(14507): add e2e test for error banner
Browse files Browse the repository at this point in the history
  • Loading branch information
DDDDDanica committed Dec 20, 2024
1 parent 1db7878 commit 43c3310
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion test/e2e/tests/dapp-interactions/failing-contract.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const FixtureBuilder = require('../../fixture-builder');

describe('Failing contract interaction ', function () {
const smartContract = SMART_CONTRACTS.FAILING;
it('should display a warning when the contract interaction is expected to fail', async function () {
it.only('should display a warning when the contract interaction is expected to fail', async function () {
await withFixtures(
{
dapp: true,
Expand Down Expand Up @@ -72,6 +72,15 @@ describe('Failing contract interaction ', function () {
css: '.activity-list-item .transaction-status-label',
text: 'Failed',
});
// inspect transaction details
await driver.clickElement({
css: '.activity-list-item .transaction-status-label',
text: 'Failed',
});
await driver.waitForSelector('.transaction-list-item-details');
await driver.waitForSelector(
'[data-testid="transaction-list-item-details-banner-error-message"]',
);
},
);
});
Expand Down

0 comments on commit 43c3310

Please sign in to comment.