@@ -100,15 +100,16 @@ Icon=Not important
100100
101101 def test_swipe_out_application_started_by_url_dispatcher(self):
102102 _, desktop_file_path = self.create_test_application()
103+ desktop_file_name = os.path.basename(desktop_file_path)
104+ application_name, _ = os.path.splitext(desktop_file_name)
103105
104106 self.assertEqual('', self.main_window.get_current_focused_app_id())
105107 self.addCleanup(os.system, 'pkill qmlscene')
106− os.system(
107− 'url-dispatcher application:///{}'.format(
108− os.path.basename(desktop_file_path)))
108+ os.system('url-dispatcher application:///{}'.format(desktop_file_name))
109109 self.assertThat(
110110 self.main_window.get_current_focused_app_id,
111− Eventually(Equals('test')))
111+ Eventually(Equals(application_name)))
112+
112113 self.main_window.show_dash_swiping()
113114 self.assertThat(
114115 self.main_window.get_current_focused_app_id,