aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-hub/tests/harness/playlist_ui_probe.py
diff options
context:
space:
mode:
authorChristophe Besson <cbesson@gmail.com>2026-09-19 17:58:05 +0200
committerChristophe Besson <cbesson@gmail.com>2026-09-19 17:58:05 +0200
commit1ec316035ce9aa656dd18a05889856bce9e3aba3 (patch)
treeb50e97f50d485ef2a88ce36fe4d7511d9fe3e288 /packages/meshbay-hub/tests/harness/playlist_ui_probe.py
parent171a3e175889ce30f201fcdf5c4632f480344ae6 (diff)
parent95dd3dc13aecec85c2fd72410cd4d1f4ed582dfa (diff)
downloadmeshbay-1ec316035ce9aa656dd18a05889856bce9e3aba3.tar.gz
Merge origin/main: the tree-wide ruff pass beside the Music reconnect work
Diffstat (limited to 'packages/meshbay-hub/tests/harness/playlist_ui_probe.py')
-rw-r--r--packages/meshbay-hub/tests/harness/playlist_ui_probe.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/packages/meshbay-hub/tests/harness/playlist_ui_probe.py b/packages/meshbay-hub/tests/harness/playlist_ui_probe.py
index 2defed9..e6f99f7 100644
--- a/packages/meshbay-hub/tests/harness/playlist_ui_probe.py
+++ b/packages/meshbay-hub/tests/harness/playlist_ui_probe.py
@@ -101,7 +101,8 @@ import * as P from '/playlists.js';
const LOGS = [];
addEventListener('error', (e) => LOGS.push('error: ' + (e.message || e)));
addEventListener('unhandledrejection',
- (e) => LOGS.push('rejection: ' + ((e.reason && (e.reason.stack || e.reason.message)) || e.reason)));
+ (e) => LOGS.push('rejection: '
+ + ((e.reason && (e.reason.stack || e.reason.message)) || e.reason)));
const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
const waitFor = async (sel, tries = 60) => {
@@ -256,7 +257,8 @@ const clickMenu = async (i) => {
open.click();
await waitFor('.music-detail .music-tracklist');
steps.push({ step: 'loaded into the queue',
- play: [...document.querySelectorAll('.music-detail .music-tracklist .music-track-title')]
+ play: [...document.querySelectorAll(
+ '.music-detail .music-tracklist .music-track-title')]
.map((e) => e.textContent) });
document.querySelector('.music-detail .video-close').click();
await sleep(150);
@@ -270,8 +272,10 @@ const clickMenu = async (i) => {
await clickLabel('A2-t2');
await sleep(300);
steps.push({ step: 'track removed',
- lists: (await P.listPlaylists('u1')).map((p) => ({ name: p.name, count: p.count })),
- tracks: (await P.getPlaylistTracks('u1', lists.find((p) => p.name === 'Soirée').id))
+ lists: (await P.listPlaylists('u1'))
+ .map((p) => ({ name: p.name, count: p.count })),
+ tracks: (await P.getPlaylistTracks('u1',
+ lists.find((p) => p.name === 'Soirée').id))
.map((tr) => tr.display_title) });
// 6. Delete it.