Skip to content

Commit

Permalink
Try fix gui tests on openATV and OpenViX
Browse files Browse the repository at this point in the history
force-test
  • Loading branch information
Taapat committed Jan 22, 2024
1 parent 2fafad4 commit 3d9f24a
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 23 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,12 @@ jobs:
echo "mtdrootfs=hdd" >> enigma2/enigma.info
echo "displaymodel=vu" >> enigma2/enigma.info
echo "machinebuild=vu" >> enigma2/enigma.info
echo "imagetype=developer" >> enigma2/enigma.info
echo "hdmifhdin=no" >> enigma2/enigma.info
echo "avjack=no" >> enigma2/enigma.info
echo "rca=no" >> enigma2/enigma.info
echo "scartyuv=no" >> enigma2/enigma.info
echo "yuv=no" >> enigma2/enigma.info
- name: Patch enigma step 3
if: steps.split.outputs._0 == 'OpenViX'
run: |
Expand Down
10 changes: 9 additions & 1 deletion test/enigmahelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,13 @@ def getFontFaces():
modules['enigma'].getFontFaces = getFontFaces


def getE2Rev():
return ''


modules['enigma'].getE2Rev = getE2Rev


def ngettext(singular, plural, n):
return singular

Expand Down Expand Up @@ -583,11 +590,12 @@ def start_session():
try:
from Screens import InfoBar
except AttributeError: # ATV-7.0
from Components.config import config, ConfigSubsection, ConfigYesNo
from Components.config import config, ConfigSubsection, ConfigText, ConfigYesNo
config.crash = ConfigSubsection()
config.crash.debugActionMaps = ConfigYesNo(default=False)
config.crash.debugKeyboards = ConfigYesNo(default=False)
config.crash.debugTimers = ConfigYesNo(default=False)
config.misc.autocamDefault = ConfigText(default='')
config.plugins = ConfigSubsection()
from Screens import InfoBar
InfoBar.MoviePlayer = new_movie_player
Expand Down
49 changes: 27 additions & 22 deletions test/try_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,33 +356,38 @@ def try_plugin_screens_load():
session.current_dialog.keyLeft()
# Cancel update access data
session.current_dialog.cancel()
# Choice YouTubeDirBrowser
config.plugins.YouTube.downloadDir.value = '/media/hdd/movie/'
session.current_dialog['config'].setCurrentIndex(11)
# Open YouTubeDirBrowser
session.current_dialog.ok()
# Close YouTubeDirBrowser
session.current_dialog.cancel()
# Open YouTubeDirBrowser again to test all other methods
session.current_dialog['config'].setCurrentIndex(11)
session.current_dialog.ok()
session.current_dialog.ok()
session.current_dialog.use()
# Test removeCallback
config.plugins.YouTube.mergeFiles.value = False
session.current_dialog['config'].setCurrentIndex(1)
session.current_dialog.ok()
session.current_dialog.close(True)
session.current_dialog.cancel()
if hasattr(session.current_dialog, 'config'):
# Choice YouTubeDirBrowser
config.plugins.YouTube.downloadDir.value = '/media/hdd/movie/'
session.current_dialog['config'].setCurrentIndex(11)
# Open YouTubeDirBrowser
session.current_dialog.ok()
# Close YouTubeDirBrowser
session.current_dialog.cancel()
# Open YouTubeDirBrowser again to test all other methods
session.current_dialog['config'].setCurrentIndex(11)
session.current_dialog.ok()
session.current_dialog.ok()
session.current_dialog.use()
# Test removeCallback
config.plugins.YouTube.mergeFiles.value = False
session.current_dialog['config'].setCurrentIndex(1)
session.current_dialog.ok()
session.current_dialog.close(True)
session.current_dialog.cancel()
elif session.current_dialog:
# Close MessageBox if exist
session.current_dialog.close(True)
# Open YouTubeSetup to test installCallback
yt.openMenu()
config.plugins.YouTube.mergeFiles.value = True
session.current_dialog.ok()
session.current_dialog.close(False)
config.plugins.YouTube.mergeFiles.value = True
session.current_dialog.ok()
session.current_dialog.close(True)
session.current_dialog.cancel()
if session.current_dialog:
config.plugins.YouTube.mergeFiles.value = True
session.current_dialog.ok()
session.current_dialog.close(True)
session.current_dialog.cancel()
# Open YouTubeSetup to test keySave
yt.openMenu()
session.current_dialog.ok()
Expand Down

0 comments on commit 3d9f24a

Please sign in to comment.