Skip to content

Commit

Permalink
test: added @smoke tag to tests, removed screenshots for regeneration…
Browse files Browse the repository at this point in the history
… and renamed files

test(lld): update screenshots (macos-latest)  lld, test, screenshot

test(lld): update screenshots (ubuntu-latest)  lld, test, screenshot

test(lld): update screenshots (windows-latest)  lld, test, screenshot

test: added @smoke tag to manual syncOnboarding

test(lld): update screenshots (macos-latest)  lld, test, screenshot

test(lld): update screenshots (ubuntu-latest)  lld, test, screenshot

test(lld): update screenshots (windows-latest)  lld, test, screenshot

chore: trigger ci
  • Loading branch information
ggilchrist-ledger authored and hakim-adamik committed Jul 21, 2023
1 parent 4b7c58f commit d301742
Show file tree
Hide file tree
Showing 1,868 changed files with 253 additions and 280 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ jobs:
- name: Run playwright tests
id: tests
run: |
pnpm desktop test:playwright:all
pnpm desktop test:playwright
shell: bash
- name: upload diffs to imgur
if: always() && !cancelled()
Expand Down Expand Up @@ -218,7 +218,7 @@ jobs:
id: tests
run: |
if [[ $RUN_FULL_SUITE == true ]]; then
xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- pnpm desktop test:playwright:all
xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- pnpm desktop test:playwright
else
xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- pnpm desktop test:playwright:smoke
fi
Expand Down Expand Up @@ -290,7 +290,7 @@ jobs:
- name: Run playwright tests
id: tests
run: |
pnpm desktop test:playwright:all
pnpm desktop test:playwright
- name: upload diffs to imgur
if: always() && !cancelled()
uses: ./tools/actions/upload-images
Expand Down
5 changes: 2 additions & 3 deletions apps/ledger-live-desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,8 @@
"test:jest": "jest src --silent --ci --coverage --json --testLocationInResults --outputFile=report.json",
"test:playwright:setup": "playwright install chromium",
"test:playwright": "playwright test --config=tests/playwright.config.ts",
"test:playwright:smoke": "pnpm test:playwright --project smoke",
"test:playwright:all": "pnpm test:playwright --project all",
"test:playwright:update-snapshots": "pnpm test:playwright:all --update-snapshots",
"test:playwright:smoke": "pnpm test:playwright --grep @smoke",
"test:playwright:update-snapshots": "pnpm test:playwright --update-snapshots",
"test:playwright:recorder": "playwright test tests/specs/recorder.spec.ts",
"test:playwright:clean": "git clean -fdX tests/artifacts",
"typecheck": "node scripts/typecheck.js"
Expand Down
12 changes: 0 additions & 12 deletions apps/ledger-live-desktop/tests/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,6 @@ const config: PlaywrightTestConfig = {
["allure-playwright"],
]
: "list",

projects: [
{
name: "smoke",
testMatch: /.*smoke.spec.ts/,
},
{
name: "all",
testIgnore: [/.*smoke.spec.ts/, "specs/recorder.spec.ts"],
dependencies: ["smoke"],
},
],
};

export default config;
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ test.use({ userdata: "skip-onboarding" });

const currencies = ["BTC", "LTC", "ETH", "ATOM", "XTZ", "XRP", "Tron"];

test.describe.parallel("Accounts", () => {
test.describe.parallel("Accounts @smoke", () => {
for (const currency of currencies) {
let firstAccountName = "NO ACCOUNT NAME YET";

Expand Down
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { PortfolioPage } from "../../models/PortfolioPage";
test.use({ userdata: "skip-onboarding" });

// FIXME: Sometimes first selected account is not the same, it should be the biggest balance.
test.fixme("subAccounts", async ({ page }) => {
test.fixme("subAccounts @smoke", async ({ page }) => {
const addAccountModal = new AddAccountModal(page);
const accountsPage = new AccountsPage(page);
const receiveModal = new ReceiveModal(page);
Expand Down
Diff not rendered.
Diff not rendered.
Diff not rendered.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ test.use({
},
});

test("Discover deeplink cold start", async ({ page }) => {
test("Discover deeplink cold start @smoke", async ({ page }) => {
await test.step("on load", async () => {
await expect.soft(page).toHaveScreenshot("loaded.png");
});
Expand Down
Diff not rendered.
Diff not rendered.
Diff not rendered.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ test.use({
userdata: "skip-onboarding",
});

test("Discover deeplink hot load", async ({ page }) => {
test("Discover deeplink hot load @smoke", async ({ page }) => {
await test.step("on deeplink trigger", async () => {
await sendDeepLink(page, "ledgerlive://discover");
await expect.soft(page).toHaveScreenshot("loaded.png");
Expand Down
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Loading

0 comments on commit d301742

Please sign in to comment.