mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-11 07:12:36 +00:00
fix(ci): install firefox for e2e-headless job and harden ui tests\n\n- Updated .github/workflows/ci.yml to install firefox in the e2e-headless job, resolving \"Executable doesn't exist\" errors.\n- Added defensive null checks in UploadModal.js to prevent runtime crashes during reset.\n- Hardened login-flows.spec.ts to prevent flaky logout assertions.
Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
d0f10d3ab7
commit
98ecc678a4
6 files changed
+24
-95
No files matched your search
@@ -1223,19 +1223,19 @@ export class UploadModal {
|
||||
}
|
||||
|
||||
// Clear Result Inputs
|
||||
if (this.results.videoUrl) this.results.videoUrl.value = "";
|
||||
if (this.results.magnet) this.results.magnet.value = "";
|
||||
if (this.results.torrentUrl) this.results.torrentUrl.value = "";
|
||||
if (this.results?.videoUrl) this.results.videoUrl.value = "";
|
||||
if (this.results?.magnet) this.results.magnet.value = "";
|
||||
if (this.results?.torrentUrl) this.results.torrentUrl.value = "";
|
||||
|
||||
// Reset Inputs
|
||||
if (this.inputs.file) {
|
||||
if (this.inputs?.file) {
|
||||
this.inputs.file.value = "";
|
||||
}
|
||||
if (this.inputs.thumbnailFile) {
|
||||
if (this.inputs?.thumbnailFile) {
|
||||
this.inputs.thumbnailFile.value = "";
|
||||
}
|
||||
// Re-enable thumbnail input if it was disabled by an upload
|
||||
if (this.inputs.thumbnail) {
|
||||
if (this.inputs?.thumbnail) {
|
||||
this.inputs.thumbnail.disabled = false;
|
||||
if (this.inputs.thumbnail.placeholder && this.inputs.thumbnail.placeholder.startsWith("Selected:")) {
|
||||
this.inputs.thumbnail.placeholder = "https://example.com/thumbnail.jpg";
|
||||
|
||||
Reference in new issue
Block a user