mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-20 00:28:09 -06:00
fix: journey tests wait for the plain titles
The setup screen is titled Where to install? and Confirm says Counted again for these choices since the plain-words pass.
This commit is contained in:
1 parent
b356d58406
commit
0ea7a349df
1 file changed
+8
-8
@@ -166,7 +166,7 @@ class Journeys(unittest.TestCase):
|
|||||||
repo = Repository(self)
|
repo = Repository(self)
|
||||||
dest = repo.retroarch_here()
|
dest = repo.retroarch_here()
|
||||||
term = self.start(repo)
|
term = self.start(repo)
|
||||||
screen = term.wait("Where do you play?", timeout=40)
|
screen = term.wait("Where to install?", timeout=40)
|
||||||
self.assertIn("> RetroArch", screen)
|
self.assertIn("> RetroArch", screen)
|
||||||
self.press(term, "\r")
|
self.press(term, "\r")
|
||||||
term.wait("files to download", timeout=40)
|
term.wait("files to download", timeout=40)
|
||||||
@@ -186,7 +186,7 @@ class Journeys(unittest.TestCase):
|
|||||||
(card / "ROMS" / "GBA").mkdir(parents=True)
|
(card / "ROMS" / "GBA").mkdir(parents=True)
|
||||||
(card / "ROMS" / "GBA" / "unknown.gba").write_bytes(b"not in any catalog")
|
(card / "ROMS" / "GBA" / "unknown.gba").write_bytes(b"not in any catalog")
|
||||||
term = self.start(repo, env={"JOURNEY_CARD": str(card)})
|
term = self.start(repo, env={"JOURNEY_CARD": str(card)})
|
||||||
term.wait("Where do you play?", timeout=40)
|
term.wait("Where to install?", timeout=40)
|
||||||
self.press(term, "\r")
|
self.press(term, "\r")
|
||||||
screen = term.wait("For the games on this card: yes", timeout=60)
|
screen = term.wait("For the games on this card: yes", timeout=60)
|
||||||
self.assertIn("For the 1 game on this card.", screen)
|
self.assertIn("For the 1 game on this card.", screen)
|
||||||
@@ -210,7 +210,7 @@ class Journeys(unittest.TestCase):
|
|||||||
changed["size"] += 1
|
changed["size"] += 1
|
||||||
repo.write_list()
|
repo.write_list()
|
||||||
term = self.start(repo)
|
term = self.start(repo)
|
||||||
term.wait("Where do you play?", timeout=40)
|
term.wait("Where to install?", timeout=40)
|
||||||
self.press(term, "\r")
|
self.press(term, "\r")
|
||||||
term.wait("1 file to download", timeout=40)
|
term.wait("1 file to download", timeout=40)
|
||||||
self.press(term, "\r")
|
self.press(term, "\r")
|
||||||
@@ -223,7 +223,7 @@ class Journeys(unittest.TestCase):
|
|||||||
repo = Repository(self)
|
repo = Repository(self)
|
||||||
dest = repo.retroarch_here()
|
dest = repo.retroarch_here()
|
||||||
term = self.start(repo)
|
term = self.start(repo)
|
||||||
term.wait("Where do you play?", timeout=40)
|
term.wait("Where to install?", timeout=40)
|
||||||
self.press(term, "\r")
|
self.press(term, "\r")
|
||||||
term.wait("files to download", timeout=40)
|
term.wait("files to download", timeout=40)
|
||||||
for _step in range(12):
|
for _step in range(12):
|
||||||
@@ -237,7 +237,7 @@ class Journeys(unittest.TestCase):
|
|||||||
self.press(term, "n", "/", "gba", "\r", "\r", ESC, ESC)
|
self.press(term, "n", "/", "gba", "\r", "\r", ESC, ESC)
|
||||||
term.wait("for 1 of", timeout=20)
|
term.wait("for 1 of", timeout=20)
|
||||||
self.press(term, "\r")
|
self.press(term, "\r")
|
||||||
term.wait("Counted again for your choices", timeout=40)
|
term.wait("Counted again for these choices", timeout=40)
|
||||||
self.press(term, "\r")
|
self.press(term, "\r")
|
||||||
started = self.keys
|
started = self.keys
|
||||||
self.assertEqual(self.finish(term), 0)
|
self.assertEqual(self.finish(term), 0)
|
||||||
@@ -246,7 +246,7 @@ class Journeys(unittest.TestCase):
|
|||||||
# The next release: the earlier choice is not kept, and two keys
|
# The next release: the earlier choice is not kept, and two keys
|
||||||
# install the whole list.
|
# install the whole list.
|
||||||
term = self.start(repo)
|
term = self.start(repo)
|
||||||
term.wait("Where do you play?", timeout=40)
|
term.wait("Where to install?", timeout=40)
|
||||||
self.press(term, "\r")
|
self.press(term, "\r")
|
||||||
term.wait("files to download", timeout=40)
|
term.wait("files to download", timeout=40)
|
||||||
self.press(term, "\r")
|
self.press(term, "\r")
|
||||||
@@ -259,7 +259,7 @@ class Journeys(unittest.TestCase):
|
|||||||
repo = Repository(self)
|
repo = Repository(self)
|
||||||
repo.retroarch_here()
|
repo.retroarch_here()
|
||||||
term = self.start(repo)
|
term = self.start(repo)
|
||||||
term.wait("Where do you play?", timeout=40)
|
term.wait("Where to install?", timeout=40)
|
||||||
self.press(term, "\r")
|
self.press(term, "\r")
|
||||||
term.wait("files to download", timeout=40)
|
term.wait("files to download", timeout=40)
|
||||||
self.press(term, "o")
|
self.press(term, "o")
|
||||||
@@ -277,7 +277,7 @@ class Journeys(unittest.TestCase):
|
|||||||
repo = Repository(self)
|
repo = Repository(self)
|
||||||
repo.retroarch_here()
|
repo.retroarch_here()
|
||||||
term = self.start(repo)
|
term = self.start(repo)
|
||||||
term.wait("Where do you play?", timeout=40)
|
term.wait("Where to install?", timeout=40)
|
||||||
for _step in range(12):
|
for _step in range(12):
|
||||||
if "> Another setup or folder" in term.settle():
|
if "> Another setup or folder" in term.settle():
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in new issue
Block a user