Skip to content

Commit

Permalink
feat: skipped 2 scenarios due to this ticket https://consensyssoftwar…
Browse files Browse the repository at this point in the history
  • Loading branch information
javiergarciavera committed Dec 18, 2024
1 parent bb2406d commit 27e9494
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 31 deletions.
48 changes: 21 additions & 27 deletions test/e2e/flask/solana/create-solana-account.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { ACCOUNT_TYPE } from '../../page-objects/common';
import { withSolanaAccountSnap } from './common-solana';

describe('Create Solana Account', function (this: Suite) {
it('Creates 2 Solana accounts', async function () {
it.skip('Creates 2 Solana accounts', async function () {
await withSolanaAccountSnap(
{ title: this.test?.fullTitle() },
async (driver) => {
Expand All @@ -23,9 +23,6 @@ describe('Create Solana Account', function (this: Suite) {
},
);
});
});

describe('Create Solana Account', function (this: Suite) {
it('Creates a Solana account from the menu', async function () {
await withSolanaAccountSnap(
{ title: this.test?.fullTitle() },
Expand All @@ -41,27 +38,24 @@ describe('Create Solana Account', function (this: Suite) {
);
});
});

describe('Create Remove Solana Account', function (this: Suite) {
it('Removes Solana account after creating it', async function () {
await withSolanaAccountSnap(
{ title: this.test?.fullTitle() },
async (driver) => {
// check that we have one Solana account
const headerNavbar = new HeaderNavbar(driver);
await headerNavbar.check_accountLabel('Solana 1');
// check user can cancel the removal of the Solana account
await headerNavbar.openAccountMenu();
const accountListPage = new AccountListPage(driver);
await accountListPage.check_accountDisplayedInAccountList('Account 1');
await accountListPage.removeAccount('Solana 1', true);
await headerNavbar.check_accountLabel('Account 1');
await headerNavbar.openAccountMenu();
await accountListPage.check_accountDisplayedInAccountList('Account 1');
await accountListPage.check_accountIsNotDisplayedInAccountList(
'Solana 1',
);
},
);
});
it.skip('Removes Solana account after creating it', async function () {
await withSolanaAccountSnap(
{ title: this.test?.fullTitle() },
async (driver) => {
// check that we have one Solana account
const headerNavbar = new HeaderNavbar(driver);
await headerNavbar.check_accountLabel('Solana 1');
// check user can cancel the removal of the Solana account
await headerNavbar.openAccountMenu();
const accountListPage = new AccountListPage(driver);
await accountListPage.check_accountDisplayedInAccountList('Account 1');
await accountListPage.removeAccount('Solana 1', true);
await headerNavbar.check_accountLabel('Account 1');
await headerNavbar.openAccountMenu();
await accountListPage.check_accountDisplayedInAccountList('Account 1');
await accountListPage.check_accountIsNotDisplayedInAccountList(
'Solana 1',
);
},
);
});
5 changes: 1 addition & 4 deletions test/e2e/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,7 @@ async function withFixtures(options, testSuite) {
});

const errorsAndExceptions = driver.summarizeErrorsAndExceptions();
if (
errorsAndExceptions &&
!errorsAndExceptions.includes(`SES_UNHANDLED_REJECTION`) // Adding this since Chrome driver throws this error randomly
) {
if (errorsAndExceptions) {
throw new Error(errorsAndExceptions);
}

Expand Down

0 comments on commit 27e9494

Please sign in to comment.