Skip to content

Commit

Permalink
refactor(workflows): update multichain test tag to SmokeMultiChainPer…
Browse files Browse the repository at this point in the history
…missions
  • Loading branch information
EtherWizard33 committed Dec 19, 2024
1 parent 5304f3e commit a147cc4
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 23 deletions.
4 changes: 2 additions & 2 deletions bitrise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ workflows:
run_tag_multichain_permissions_ios:
envs:
- TEST_SUITE_FOLDER: './e2e/specs/multichain/*'
- TEST_SUITE_TAG: '.*SmokeMultiChain.*'
- TEST_SUITE_TAG: '.*SmokeMultiChainPermissions.*'
after_run:
- ios_e2e_test
run_tag_multichain_permissions_android:
Expand All @@ -696,7 +696,7 @@ workflows:
machine_type_id: elite-xl
envs:
- TEST_SUITE_FOLDER: './e2e/specs/multichain/*'
- TEST_SUITE_TAG: '.*SmokeMultiChain.*'
- TEST_SUITE_TAG: '.*SmokeMultiChainPermissions.*'
after_run:
- android_e2e_test
android_e2e_build:
Expand Down
4 changes: 2 additions & 2 deletions e2e/specs/multichain/assets/asset-list.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// 'persists the preferred asset list preference when changing networks'

import { SmokeMultiChain } from '../../../tags';
import { SmokeMultiChainPermissions } from '../../../tags';
import WalletView from '../../../pages/wallet/WalletView';
import FixtureBuilder from '../../../fixtures/fixture-builder';
import {
Expand All @@ -26,7 +26,7 @@ const ETHEREUM_NAME = 'Ethereum';
const AVAX_NAME = 'AVAX';
const BNB_NAME = 'BNB';

describe(SmokeMultiChain('Import Tokens'), () => {
describe(SmokeMultiChainPermissions('Import Tokens'), () => {
beforeAll(async () => {
await TestHelpers.reverseServerPort();
const fixture = new FixtureBuilder().withPopularNetworks().build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ import { loginToApp } from '../../../../viewHelper';
import FixtureBuilder from '../../../../fixtures/fixture-builder';
import { withFixtures } from '../../../../fixtures/fixture-helper';
import Assertions from '../../../../utils/Assertions';
import { SmokeMultiChain } from '../../../../tags';
import { SmokeMultiChainPermissions } from '../../../../tags';

const AccountTwoText = 'Account 2';

describe(SmokeMultiChain('Account Permission Management'), () => {
describe(SmokeMultiChainPermissions('Account Permission Management'), () => {
beforeAll(async () => {
jest.setTimeout(150000);
await TestHelpers.reverseServerPort();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';
import TestHelpers from '../../../../helpers';
import { SmokeMultiChain } from '../../../../tags';
import { SmokeMultiChainPermissions } from '../../../../tags';
import Browser from '../../../../pages/Browser/BrowserView';
import TabBarComponent from '../../../../pages/wallet/TabBarComponent';
import NetworkListModal from '../../../../pages/Network/NetworkListModal';
Expand All @@ -10,7 +10,7 @@ import { withFixtures } from '../../../../fixtures/fixture-helper';
import { loginToApp } from '../../../../viewHelper';
import Assertions from '../../../../utils/Assertions';

describe(SmokeMultiChain('Account Permission Management'), () => {
describe(SmokeMultiChainPermissions('Account Permission Management'), () => {
beforeAll(async () => {
jest.setTimeout(150000);
await TestHelpers.reverseServerPort();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SmokeMultiChain } from '../../../../tags';
import { SmokeMultiChainPermissions } from '../../../../tags';
import { loginToApp } from '../../../../viewHelper';
import WalletView from '../../../../pages/wallet/WalletView';
import NetworkListModal from '../../../../pages/Network/NetworkListModal';
Expand All @@ -22,7 +22,7 @@ const fixtureServer = new FixtureServer();
const SEPOLIA = CustomNetworks.Sepolia.providerConfig.nickname;

describe(
SmokeMultiChain('Chain Permission System, non-permitted chain, '),
SmokeMultiChainPermissions('Chain Permission System, non-permitted chain, '),
() => {
beforeAll(async () => {
await TestHelpers.reverseServerPort();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';
import TestHelpers from '../../../../helpers';
import { SmokeMultiChain } from '../../../../tags';
import { SmokeMultiChainPermissions } from '../../../../tags';
import Browser from '../../../../pages/Browser/BrowserView';
import TabBarComponent from '../../../../pages/wallet/TabBarComponent';
import ConnectedAccountsModal from '../../../../pages/Browser/ConnectedAccountsModal';
Expand All @@ -11,7 +11,7 @@ import Assertions from '../../../../utils/Assertions';
import NetworkConnectMultiSelector from '../../../../pages/Browser/NetworkConnectMultiSelector';
import NetworkNonPemittedBottomSheet from '../../../../pages/Network/NetworkNonPemittedBottomSheet';

describe(SmokeMultiChain('Chain Permission Management'), () => {
describe(SmokeMultiChainPermissions('Chain Permission Management'), () => {
beforeAll(async () => {
jest.setTimeout(150000);
await TestHelpers.reverseServerPort();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';
import TestHelpers from '../../../../helpers';
import { SmokeMultiChain } from '../../../../tags';
import { SmokeMultiChainPermissions } from '../../../../tags';
import Browser from '../../../../pages/Browser/BrowserView';
import TabBarComponent from '../../../../pages/wallet/TabBarComponent';
import TestDApp from '../../../../pages/Browser/TestDApp';
Expand All @@ -13,7 +13,7 @@ import ConnectBottomSheet from '../../../../pages/Browser/ConnectBottomSheet';
import NetworkNonPemittedBottomSheet from '../../../../pages/Network/NetworkNonPemittedBottomSheet';
import NetworkConnectMultiSelector from '../../../../pages/Browser/NetworkConnectMultiSelector';

describe(SmokeMultiChain('Chain Permission Management'), () => {
describe(SmokeMultiChainPermissions('Chain Permission Management'), () => {
beforeAll(async () => {
jest.setTimeout(150000);
await TestHelpers.reverseServerPort();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';
import TestHelpers from '../../../../helpers';
import { SmokeMultiChain } from '../../../../tags';
import { SmokeMultiChainPermissions } from '../../../../tags';
import Browser from '../../../../pages/Browser/BrowserView';
import TabBarComponent from '../../../../pages/wallet/TabBarComponent';

Expand All @@ -18,7 +18,7 @@ import NetworkEducationModal from '../../../../pages/Network/NetworkEducationMod
import ConnectBottomSheet from '../../../../pages/Browser/ConnectBottomSheet';
import PermissionSummaryBottomSheet from '../../../../pages/Browser/PermissionSummaryBottomSheet';

describe(SmokeMultiChain('Chain Permission Management'), () => {
describe(SmokeMultiChainPermissions('Chain Permission Management'), () => {
beforeAll(async () => {
jest.setTimeout(150000);
await TestHelpers.reverseServerPort();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';
import TestHelpers from '../../../../helpers';
import { SmokeMultiChain } from '../../../../tags';
import { SmokeMultiChainPermissions } from '../../../../tags';
import Browser from '../../../../pages/Browser/BrowserView';
import TabBarComponent from '../../../../pages/wallet/TabBarComponent';
import NetworkListModal from '../../../../pages/Network/NetworkListModal';
Expand All @@ -10,7 +10,7 @@ import { withFixtures } from '../../../../fixtures/fixture-helper';
import { loginToApp } from '../../../../viewHelper';
import Assertions from '../../../../utils/Assertions';

describe(SmokeMultiChain('Chain Permission Management'), () => {
describe(SmokeMultiChainPermissions('Chain Permission Management'), () => {
beforeAll(async () => {
jest.setTimeout(150000);
await TestHelpers.reverseServerPort();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';
import TestHelpers from '../../../../helpers';
import { SmokeMultiChain } from '../../../../tags';
import { SmokeMultiChainPermissions } from '../../../../tags';
import Browser from '../../../../pages/Browser/BrowserView';
import TabBarComponent from '../../../../pages/wallet/TabBarComponent';
import ConnectedAccountsModal from '../../../../pages/Browser/ConnectedAccountsModal';
Expand All @@ -15,7 +15,7 @@ import WalletView from '../../../../pages/wallet/WalletView';
import NetworkEducationModal from '../../../../pages/Network/NetworkEducationModal';
import PermissionSummaryBottomSheet from '../../../../pages/Browser/PermissionSummaryBottomSheet';

describe(SmokeMultiChain('Chain Permission Management'), () => {
describe(SmokeMultiChainPermissions('Chain Permission Management'), () => {
beforeAll(async () => {
jest.setTimeout(150000);
await TestHelpers.reverseServerPort();
Expand Down
7 changes: 4 additions & 3 deletions e2e/tags.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const tags = {
SmokeRest: 'SmokeRest:',
smokeAssets: 'smokeAssets:',
smokeIdentity: 'smokeIdentity:',
smokeMultiChain: 'SmokeMultiChain:',
smokeMultiChainPermissions: 'SmokeMultiChainPermissions:',
};

const Regression = (testName) => `${tags.regression} ${testName}`;
Expand All @@ -19,7 +19,8 @@ const SmokeSwaps = (testName) => `${tags.SmokeSwaps} ${testName}`;
const SmokeAssets = (testName) => `${tags.smokeAssets} ${testName}`;
const SmokeIdentity = (testName) => `${tags.smokeIdentity} ${testName}`;

const SmokeMultiChain = (testName) => `${tags.smokeMultiChain} ${testName}`;
const SmokeMultiChainPermissions = (testName) =>
`${tags.smokeMultiChainPermissions} ${testName}`;
export {
Regression,
SmokeAccounts,
Expand All @@ -28,5 +29,5 @@ export {
SmokeSwaps,
SmokeAssets,
SmokeIdentity,
SmokeMultiChain,
SmokeMultiChainPermissions,
};

0 comments on commit a147cc4

Please sign in to comment.