Desktop D3 UI: studios and store accounts (health checks with fixes, import apps), one card per app across studios (automatic iOS / Android pairing, manual pair / unpair, links, studio moves), store-only apps read-only, ignore list, portfolio search / studio filter / sort / grouping, collapsible studio sidebar, complete Settings, notifications, fixtures with 3 studios and 5 accounts
This commit is contained in:
parent
395f2db152
commit
6e6305a407
24 changed files with 2225 additions and 312 deletions
|
|
@ -15,11 +15,14 @@ const only = arg('only', '').split(',').filter(Boolean);
|
|||
const themes = arg('themes', 'light,dark').split(',');
|
||||
const lang = arg('lang', 'en');
|
||||
const suffix = arg('suffix', '');
|
||||
const prefix = arg('prefix', 'd3');
|
||||
|
||||
export const SCREENS: [string, string][] = [
|
||||
['portfolio', 'portfolio'], ['releases', 'app:releases'], ['releases-2', 'app:releases:2'], ['catalog', 'app:catalog'], ['listings', 'app:listings'],
|
||||
['health', 'app:health'], ['reviews', 'app:reviews'], ['testflight', 'app:testflight'], ['checks', 'app:checks'],
|
||||
['apps', 'apps'], ['accounts', 'accounts'], ['dependencies', 'dependencies'], ['settings', 'settings'],
|
||||
['ignored', 'ignored'], ['store-app', 'app:releases:3'], ['store-app-reviews', 'app:reviews:3'], ['store-app-single', 'app:releases:7'],
|
||||
['settings-pairing', 'settings:pairing'], ['settings-refresh', 'settings:refresh'], ['settings-privacy', 'settings:privacy'],
|
||||
['palette', 'palette'], ['welcome-1', 'welcome:1'], ['welcome-2', 'welcome:2'], ['welcome-3', 'welcome:3'], ['welcome-4', 'welcome:4'], ['welcome-5', 'welcome:5'],
|
||||
];
|
||||
|
||||
|
|
@ -41,7 +44,7 @@ for (const theme of themes) {
|
|||
if (only.length && !only.includes(name)) continue;
|
||||
await page.goto(`${base}/?start=${encodeURIComponent(start)}&theme=${theme}&lang=${lang}`);
|
||||
await settle(page);
|
||||
const f = join(out, `d2-${name}${suffix}-${theme}${lang === 'en' ? '' : `-${lang}`}.png`);
|
||||
const f = join(out, `${prefix}-${name}${suffix}-${theme}${lang === 'en' ? '' : `-${lang}`}.png`);
|
||||
await page.screenshot({ path: f });
|
||||
files.push(f);
|
||||
}
|
||||
|
|
@ -51,10 +54,45 @@ for (const theme of themes) {
|
|||
await settle(page);
|
||||
await page.getByRole('button', { name: /Read the stores|Mağazaları oku/ }).first().click();
|
||||
await page.waitForTimeout(900);
|
||||
const f = join(out, `d2-toast${suffix}-${theme}${lang === 'en' ? '' : `-${lang}`}.png`);
|
||||
const f = join(out, `${prefix}-toast${suffix}-${theme}${lang === 'en' ? '' : `-${lang}`}.png`);
|
||||
await page.screenshot({ path: f });
|
||||
files.push(f);
|
||||
}
|
||||
const shot = async (name: string) => {
|
||||
const f = join(out, `${prefix}-${name}${suffix}-${theme}${lang === 'en' ? '' : `-${lang}`}.png`);
|
||||
await page.screenshot({ path: f });
|
||||
files.push(f);
|
||||
};
|
||||
if (!only.length || only.includes('accounts-tested')) {
|
||||
// every account checked: one Play service account was never invited (permission missing, with the fix)
|
||||
await page.goto(`${base}/?start=accounts&theme=${theme}&lang=${lang}`);
|
||||
await settle(page);
|
||||
await page.getByRole('button', { name: /Test all accounts|Tüm hesapları sına/ }).click();
|
||||
await page.waitForTimeout(900);
|
||||
await page.getByText(/Sample Labs · Play/).first().scrollIntoViewIfNeeded();
|
||||
await page.evaluate(() => document.getElementById('content')?.scrollBy({ top: 260 }));
|
||||
await page.waitForTimeout(200);
|
||||
await shot('accounts-tested');
|
||||
}
|
||||
if (!only.length || only.includes('portfolio-filter')) {
|
||||
// one studio, sorted by name, no grouping, with a search
|
||||
await page.goto(`${base}/?start=portfolio&theme=${theme}&lang=${lang}`);
|
||||
await settle(page);
|
||||
await page.locator('.fchip', { hasText: 'Example Games' }).click();
|
||||
await page.getByPlaceholder(/Search apps|Uygulama, bundle/).fill('o');
|
||||
await page.waitForTimeout(300);
|
||||
await shot('portfolio-filter');
|
||||
await page.locator('.fchip').first().click();
|
||||
await page.getByPlaceholder(/Search apps|Uygulama, bundle/).fill('');
|
||||
}
|
||||
if (!only.length || only.includes('import')) {
|
||||
// Import apps running, with its progress toast
|
||||
await page.goto(`${base}/?start=accounts&theme=${theme}&lang=${lang}`);
|
||||
await settle(page);
|
||||
await page.getByRole('button', { name: /^Import apps$|^Uygulamaları içe aktar$/ }).first().click();
|
||||
await page.waitForTimeout(700);
|
||||
await shot('import');
|
||||
}
|
||||
if (errors.length) console.error(`${theme}: page errors:\n ${[...new Set(errors)].join('\n ')}`);
|
||||
await ctx.close();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue