mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-06 21:02:28 +00:00
test(e2e): fix video card selectors and modal wait logic
- Updated `js/testHarness.js` to read `data-video-title` attribute instead of `textContent` to avoid marquee duplication issues. - Updated `tests/e2e/video-upload-flow.spec.ts` to query title attribute on the correct child element. - Updated `tests/e2e/video-upload-flow.spec.ts` to use `toBeVisible()` for modal wait instead of fragile `data-open` attribute check. - Updated `tests/e2e/video-playback-scenarios.spec.ts` to include `style.display` check for modal closing. - Verified `feed-pagination-stress.spec.ts` passes with these fixes. Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
e9ca94e89d
commit
d0f10d3ab7
3 files changed
+7
-10
No files matched your search
+3
-1
@@ -472,7 +472,9 @@ function getAppState() {
|
||||
function getFeedItems() {
|
||||
const cards = document.querySelectorAll("[data-video-card]");
|
||||
return Array.from(cards).map((card) => ({
|
||||
title: card.querySelector("[data-video-title]")?.textContent?.trim() || "",
|
||||
title:
|
||||
card.querySelector("[data-video-title]")?.getAttribute("data-video-title") ||
|
||||
"",
|
||||
pubkey: card.getAttribute("data-video-pubkey") || "",
|
||||
dTag: card.getAttribute("data-video-dtag") || "",
|
||||
hasUrl: Boolean(card.getAttribute("data-play-url")),
|
||||
|
||||
Reference in new issue
Block a user