This repository has been archived by the owner on Apr 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 316
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: LSDV-4903: Fix Video tag null rendering (#1313)
* fix: LSDV-4903: Remove rendering unexpected null on reinit LS with video tag in config * test: LSDV-4903: Add VirtualVideo unmounting test * Try to fix test by emulating supported video format * Move test to codeceptjs
- Loading branch information
1 parent
2acc4f3
commit 4eebe7a
Showing
2 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Feature('Video unmount').tag('@regress'); | ||
|
||
Scenario('Reiniting Label Studio should not left unexpected null and video tags in DOM', async ({ I, LabelStudio }) => { | ||
I.amOnPage('/'); | ||
for (let i = 0; i < 60; i++) { | ||
LabelStudio.init({ | ||
config: ` | ||
<View> | ||
<Video name="video" value="$video" /> | ||
<VideoRectangle name="box" toName="video" /> | ||
</View>`, | ||
data: { video: '/files/opossum_intro.webm' }, | ||
}); | ||
|
||
I.wait(i * i / 1000000); | ||
} | ||
I.dontSeeElementInDOM({ xpath: '//body/video[position()=2]' }); | ||
I.dontSee('null'); | ||
}).config({ waitForAction: 0 }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters