Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changeset/qaa-1434-harmonize-e2e-test-names.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"ledger-live-desktop-e2e-tests": patch
"ledger-live-mobile-e2e-tests": patch
"@ledgerhq/live-e2e-shared": patch
---

test(e2e): harmonize LWD and LWM test names for Allure reports
28 changes: 14 additions & 14 deletions e2e/desktop/tests/specs/accounts.swap.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { DEVICE_TAGS, buildSwapTags } from "tests/utils/tagsUtils";

const app: AppInfos = AppInfos.EXCHANGE;

test.describe("Swap - Default currency when landing on swap", () => {
test.describe("Swap - default currency", () => {
const fromAccount = Account.ETH_1;
const toAccount = Account.BTC_NATIVE_SEGWIT_1;
setupEnv(true);
Expand Down Expand Up @@ -53,7 +53,7 @@ test.describe("Swap - Default currency when landing on swap", () => {
});

test(
`Swap ${fromAccount.currency.name} to ${toAccount.currency.name} - Default currency and previous set up`,
`[${fromAccount.currency.testLabel}-${toAccount.currency.testLabel}] - Swap with default currency and previous setup`,
{
tag: [...DEVICE_TAGS, "@ethereum", "@family-evm", "@bitcoin", "@family-bitcoin"],
annotation: { type: "TMS", description: "B2CQA-3079, B2CQA-3080" },
Expand Down Expand Up @@ -89,7 +89,7 @@ test.describe("Swap - Default currency when landing on swap", () => {
);
});

test.describe("Swap - Rejected on device", () => {
test.describe("Swap - rejected on device", () => {
const fromAccount = Account.ETH_1;
const toAccount = Account.BTC_NATIVE_SEGWIT_1;

Expand Down Expand Up @@ -123,7 +123,7 @@ test.describe("Swap - Rejected on device", () => {
});

test(
`Swap ${fromAccount.currency.name} to ${toAccount.currency.name}`,
`[${fromAccount.currency.testLabel}-${toAccount.currency.testLabel}] - Swap refused on device`,
{
tag: [...DEVICE_TAGS, "@ethereum", "@family-evm", "@bitcoin", "@family-bitcoin"],
annotation: { type: "TMS", description: "B2CQA-2212" },
Expand Down Expand Up @@ -197,7 +197,7 @@ for (const {
addressFrom,
addressTo,
} of swapWithDifferentSeed) {
test.describe("Swap - Using different seed", () => {
test.describe("Swap - using a different seed", () => {
setupEnv(true);

test.use({
Expand All @@ -214,7 +214,7 @@ for (const {
});

test(
`Swap using a different seed - ${swap.accountToDebit.currency.name} → ${swap.accountToCredit.currency.name}`,
`[${swap.accountToDebit.currency.testLabel}-${swap.accountToCredit.currency.testLabel}] - Swap using a different seed`,
{
tag: buildSwapTags({
debitCurrencyId: swap.accountToDebit.currency.id,
Expand Down Expand Up @@ -247,7 +247,7 @@ for (const {
});
}

test.describe("Swap a coin for which you have no account yet - from present to not present", () => {
test.describe("Swap - account not present", () => {
setupEnv(true);
const account1 = Account.BTC_NATIVE_SEGWIT_1;
const account2 = Account.ETH_1;
Expand All @@ -269,7 +269,7 @@ test.describe("Swap a coin for which you have no account yet - from present to n
});

test(
"from Account present to Account not present",
`[${account1.currency.testLabel}-${account2.currency.testLabel}] - Swap from account present to account not present`,
{
tag: [...DEVICE_TAGS, "@ethereum", "@family-evm", "@bitcoin", "@family-bitcoin"],
annotation: { type: "TMS", description: xrayTicket },
Expand Down Expand Up @@ -310,7 +310,7 @@ test.describe("Swap a coin for which you have no account yet - from present to n
);
});

test.describe("Swap a coin for which you have no account yet - from not present to present", () => {
test.describe("Swap - account not present", () => {
setupEnv(true);
const account1 = Account.ETH_1;
const account2 = Account.BTC_NATIVE_SEGWIT_1;
Expand All @@ -332,7 +332,7 @@ test.describe("Swap a coin for which you have no account yet - from not present
});

test(
"from Account not present to Account present",
`[${account1.currency.testLabel}-${account2.currency.testLabel}] - Swap from account not present to account present`,
{
tag: [...DEVICE_TAGS, "@ethereum", "@family-evm", "@bitcoin", "@family-bitcoin"],
annotation: { type: "TMS", description: xrayTicket },
Expand Down Expand Up @@ -372,7 +372,7 @@ test.describe("Swap a coin for which you have no account yet - from not present
);
});

test.describe("Swap a coin for which you have no account yet - both not present", () => {
test.describe("Swap - account not present", () => {
const account1 = Account.ETH_1;
const account2 = Account.BSC_1;
const xrayTicket = "B2CQA-3355, B2CQA-3282, B2CQA-3288";
Expand All @@ -386,7 +386,7 @@ test.describe("Swap a coin for which you have no account yet - both not present"
});

test(
"from Account not present to Account not present",
`[${account1.currency.testLabel}-${account2.currency.testLabel}] - Swap from account not present to account not present`,
{
tag: [...DEVICE_TAGS, "@ethereum", "@family-evm", "@bsc"],
annotation: { type: "TMS", description: xrayTicket },
Expand Down Expand Up @@ -422,7 +422,7 @@ test.describe("Swap a coin for which you have no account yet - both not present"
);
});

test.describe("Swap - Switch You send and You receive currency", () => {
test.describe("Swap - switch currencies", () => {
const swap = new Swap(Account.ETH_1, Account.BTC_NATIVE_SEGWIT_1, "0.03");
setupEnv(true);

Expand All @@ -445,7 +445,7 @@ test.describe("Swap - Switch You send and You receive currency", () => {
});

test(
"Switch You send and You receive currency",
`[${swap.accountToDebit.currency.testLabel}-${swap.accountToCredit.currency.testLabel}] - Switch you send and you receive currency`,
{
tag: [...DEVICE_TAGS, "@ethereum", "@family-evm", "@bitcoin", "@family-bitcoin"],
annotation: {
Expand Down
4 changes: 2 additions & 2 deletions e2e/desktop/tests/specs/activate.private.balance.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const accounts = [

for (const account of accounts) {
// TODO: Activate when next app is available
test.describe.skip("Activate Private Balance", () => {
test.describe.skip("Activate private balance", () => {
test.use({
teamOwner: Team.BST,
userdata: "skip-onboarding-with-last-seen-device",
Expand All @@ -26,7 +26,7 @@ for (const account of accounts) {
});

test(
`[${account.account.currency.name}] Activate Private Balance`,
`[${account.account.currency.testLabel}] - Activate private balance`,
{
tag: buildTags({ currencyId: account.account.currency.id }),
annotation: {
Expand Down
8 changes: 4 additions & 4 deletions e2e/desktop/tests/specs/add.account.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ const currencies: AddAccountTestCase[] = [
];

for (const currency of currencies) {
test.describe("Add Accounts", () => {
test.describe("Add account", () => {
test.use({
teamOwner: Team.WALLET_XP,
userdata: "skip-onboarding-with-last-seen-device",
speculosApp: currency.currency.speculosApp,
});

test(
`[${currency.currency.name}] Add account`,
`[${currency.currency.testLabel}] - Add account`,
{
tag: buildTags({
currencyId: currency.currency.id,
Expand Down Expand Up @@ -117,7 +117,7 @@ for (const currency of currencies) {
});
}

test.describe("Add Accounts - Aleo", () => {
test.describe("Add account", () => {
test.use({
teamOwner: Team.WALLET_XP,
userdata: "skip-onboarding-with-last-seen-device",
Expand All @@ -131,7 +131,7 @@ test.describe("Add Accounts - Aleo", () => {
});

test(
`[${Currency.ALEO.name}] Add account`,
`[${Currency.ALEO.testLabel}] - Add account`,
{
tag: buildTags({ currencyId: Currency.ALEO.id, skipLNS: true }),
annotation: {
Expand Down
14 changes: 7 additions & 7 deletions e2e/desktop/tests/specs/assets.addresses.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ const EXPECTED_ADDITIONAL_CRYPTOS = [
];
const EXPECTED_STABLECOINS = [Currency.ETH_USDT, Currency.ETH_USDC];

test.describe("Wallet 4.0 - Portfolio-Asset/Address", () => {
test.describe("Wallet assets", () => {
// This suite covers the Wallet 4.0 Assets section UI (cryptos/stablecoins sections and category
// pages), which only exists with the Asset Section ON, so opt into the Q2 feature-flag set.
test.use({ featureFlags: FF_LWD_WALLET_40_Q2 });

test.describe("No accounts - empty state", () => {
test.describe("Empty state", () => {
test.use({
teamOwner: Team.WALLET_XP,
userdata: "skip-onboarding-with-last-seen-device",
Expand All @@ -48,7 +48,7 @@ test.describe("Wallet 4.0 - Portfolio-Asset/Address", () => {
});

test(
"Empty state: verify placeholder assets, market navigation, and Add account CTA",
`[${Currency.BTC.testLabel}] - Wallet assets empty state shows placeholders and add account CTA`,
{
tag: [...DEVICE_TAGS],
annotation: {
Expand Down Expand Up @@ -112,14 +112,14 @@ test.describe("Wallet 4.0 - Portfolio-Asset/Address", () => {
);
});

test.describe("Existing BTC and ETH accounts", () => {
test.describe("Fewer than 6 assets", () => {
test.use({
teamOwner: Team.WALLET_XP,
userdata: "1AccountBTC1AccountETH",
});

test(
"Validate assets section with less than 6 cryptos/stablecoins added",
`[${EXPECTED_CRYPTOS.map(c => c.testLabel).join("-")}] - Wallet assets section with fewer than 6 cryptos and stablecoins`,
{
tag: [...DEVICE_TAGS],
annotation: {
Expand All @@ -140,14 +140,14 @@ test.describe("Wallet 4.0 - Portfolio-Asset/Address", () => {
);
});

test.describe("Multiple accounts - capped display and category pages", () => {
test.describe("Capped display", () => {
test.use({
teamOwner: Team.WALLET_XP,
userdata: "portfolioWithManyStablecoins",
});

test(
"validate assets section with more than 6 cryptos/stablecoins",
"Wallet assets section caps cryptos and stablecoins at 6",
{
tag: [...DEVICE_TAGS],
annotation: {
Expand Down
18 changes: 9 additions & 9 deletions e2e/desktop/tests/specs/assets.aggregation.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ import { DEVICE_TAGS } from "tests/utils/tagsUtils";
*
*/

test.describe("Wallet 4.0 - Asset Aggregation / Asset Market / Asset Detail", () => {
test.describe("Scenario 1: Asset aggregation on portfolio", () => {
test.describe("Asset aggregation", () => {
test.describe("Portfolio aggregation", () => {
test.use({
teamOwner: Team.WALLET_XP,
userdata: "portfolioWithManyStablecoins",
featureFlags: FF_LWD_WALLET_40_Q2_NO_ANALYTICS_CONSENT,
});

test(
"Aggregated assets show a single row per asset and list holding addresses per network",
`[${Currency.ETH_USDC.testLabel}] - Aggregated assets show one row per asset and list holding addresses`,
{
tag: [...DEVICE_TAGS],
annotation: {
Expand Down Expand Up @@ -55,15 +55,15 @@ test.describe("Wallet 4.0 - Asset Aggregation / Asset Market / Asset Detail", ()
);
});

test.describe("Scenario 2: Asset market and detail", () => {
test.describe("Asset detail", () => {
test.use({
teamOwner: Team.WALLET_XP,
userdata: "1AccountBTC1AccountETH",
featureFlags: FF_LWD_WALLET_40_Q2_NO_ANALYTICS_CONSENT,
});

test(
"Asset detail shows market info, balance, addresses, add-address and transaction history",
`[${Currency.BTC.testLabel}] - Asset detail shows market info, balances, addresses and transaction history`,
{
tag: [...DEVICE_TAGS],
annotation: {
Expand Down Expand Up @@ -102,15 +102,15 @@ test.describe("Wallet 4.0 - Asset Aggregation / Asset Market / Asset Detail", ()
);
});

test.describe("Scenario 3: Star assets", () => {
test.describe("Star assets", () => {
test.use({
teamOwner: Team.WALLET_XP,
userdata: "1AccountBTC1AccountETH",
featureFlags: FF_LWD_WALLET_40_Q2_NO_ANALYTICS_CONSENT,
});

test(
"Star an asset from its detail page and filter the market list by starred",
`[${Currency.BTC.testLabel}] - Star an asset and filter the market list by starred`,
{
tag: [...DEVICE_TAGS],
annotation: {
Expand Down Expand Up @@ -156,15 +156,15 @@ test.describe("Wallet 4.0 - Asset Aggregation / Asset Market / Asset Detail", ()
);
});

test.describe("Scenario 4: Address detail", () => {
test.describe("Address detail", () => {
test.use({
teamOwner: Team.WALLET_XP,
userdata: "1AccountBTC1AccountETH",
featureFlags: FF_LWD_WALLET_40_Q2_NO_ANALYTICS_CONSENT,
});

test(
"Opening a holding address shows the address detail page",
`[${Currency.ETH.testLabel}] - Opening a holding address shows the address detail page`,
{
tag: [...DEVICE_TAGS],
annotation: {
Expand Down
15 changes: 8 additions & 7 deletions e2e/desktop/tests/specs/assets.discoverability.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,18 @@ import { getDescription } from "tests/utils/customJsonReporter";
import { FF_LWD_WALLET_40_Q2 } from "tests/utils/featureFlagUtils";
import { liveDataCommand } from "@ledgerhq/live-e2e-shared/cliCommandsUtils";
import { Account } from "@ledgerhq/live-e2e-shared/enum/Account";
import { Currency } from "@ledgerhq/live-e2e-shared/enum/Currency";
import { DEVICE_TAGS } from "tests/utils/tagsUtils";

test.describe("Stocks - empty discovery state", () => {
test.describe("Asset discoverability", () => {
test.use({
teamOwner: Team.WALLET_XP,
userdata: "1AccountBTC1AccountETH",
featureFlags: FF_LWD_WALLET_40_Q2,
});

test(
"Explore stocks market from empty stocks category",
"Explore the stocks market from the empty stocks category",
{
tag: [...DEVICE_TAGS],
annotation: {
Expand All @@ -38,7 +39,7 @@ test.describe("Stocks - empty discovery state", () => {
);
});

test.describe("Stocks - holdings", () => {
test.describe("Asset discoverability", () => {
test.use({
teamOwner: Team.WALLET_XP,
userdata: "skip-onboarding-with-last-seen-device",
Expand All @@ -48,7 +49,7 @@ test.describe("Stocks - holdings", () => {
});

test(
"Open stocks assets page from stocks category",
`[${Account.ETH_1.currency.testLabel}] - Open the stocks assets page from the stocks category`,
{
tag: [...DEVICE_TAGS],
annotation: {
Expand All @@ -70,15 +71,15 @@ test.describe("Stocks - holdings", () => {
);
});

test.describe("Stocks - global search", () => {
test.describe("Asset discoverability", () => {
test.use({
teamOwner: Team.WALLET_XP,
userdata: "skip-onboarding-with-last-seen-device",
featureFlags: FF_LWD_WALLET_40_Q2,
});

test(
"Navigate to markets from search categories",
"Navigate to markets from the search categories",
{
tag: [...DEVICE_TAGS],
annotation: {
Expand All @@ -104,7 +105,7 @@ test.describe("Stocks - global search", () => {
);

test(
"Match ticker to top search result",
`[${Currency.BTC.testLabel}-${Currency.ETH.testLabel}] - Match the typed ticker to the top search result`,
{
tag: [...DEVICE_TAGS],
annotation: {
Expand Down
Loading
Loading