Skip to content

Commit

Permalink
Merge pull request #136 from SAMOXA/fix_130
Browse files Browse the repository at this point in the history
Fix #130
  • Loading branch information
Himura2la authored Feb 20, 2019
2 parents 44a9046 + bb2e48c commit bbd2b70
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions test/test_fresh_start.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,22 @@ def setUp(self):

def test_load_session(self):
app = Application().start("FestEngine.exe")
time.sleep(1)

app['Welcome to Fest Engine'].OK.click()
time.sleep(0.5)

settings = app.Settings
settings['Current Fest:Edit'].set_text(os.path.abspath(sample_fest_path))
time.sleep(0.5)

settings.Load.click()
time.sleep(1)

app['Restart Required'].NoButton.click()
app.wxWindowNR.menu_select("Main -> Exit")
app['Restart Required'].Button2.click()
time.sleep(0.5)

app.wxWindowNR.menu_select("Main -> Exit")
app.wait_for_process_exit(1)

app = Application().start("FestEngine.exe")
Expand All @@ -43,7 +48,7 @@ def test_load_session(self):
self.assertTrue('Loaded %d items' % items_number in main_window.StatusBar.texts())

main_window.menu_select("Main -> Show Log")
time.sleep(0.5)
time.sleep(1)
log_text = app["FestEngine Log"].Edit.text_block()
self.assertTrue(log_text.strip() == "Init", "Errors in log:")

Expand Down

0 comments on commit bbd2b70

Please sign in to comment.