@@ -100,15 +100,16 @@ Icon=Not important
101 def test_swipe_out_application_started_by_url_dispatcher(self):
101 def test_swipe_out_application_started_by_url_dispatcher(self):
102 _, desktop_file_path = self.create_test_application()
102 _, 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)
104 self.assertEqual('', self.main_window.get_current_focused_app_id())
106 self.assertEqual('', self.main_window.get_current_focused_app_id())
105 self.addCleanup(os.system, 'pkill qmlscene')
107 self.addCleanup(os.system, 'pkill qmlscene')
107− 'url-dispatcher application:///{}'.format(
108+ os.system('url-dispatcher application:///{}'.format(desktop_file_name))
108− os.path.basename(desktop_file_path)))
109 self.assertThat(
109 self.assertThat(
110 self.main_window.get_current_focused_app_id,
110 self.main_window.get_current_focused_app_id,
111− Eventually(Equals('test')))
111+ Eventually(Equals(application_name)))
112 self.main_window.show_dash_swiping()
113 self.main_window.show_dash_swiping()
113 self.assertThat(
114 self.assertThat(
114 self.main_window.get_current_focused_app_id,
115 self.main_window.get_current_focused_app_id,