try to fix failed test by adding some actions at the end

parent 6575bdac
......@@ -96,11 +96,14 @@
<span class="kw">assert</span>(exists(<img src="SavechangePopup.png" />))
<span class="skw">click</span>(Pattern(<img src="SavechangePopup.png" />).targetOffset(-<span class="dig">170</span>,<span class="dig">56</span>))
waitVanish(Pattern(<img src="SavechangePopup.png" />).targetOffset(-<span class="dig">170</span>,<span class="dig">56</span>),<span class="dig">3</span>)
<span class="skw">type</span>(<span class="str">"n"</span>,KeyModifier.CTRL)
<span class="skw">wait</span>(<span class="dig">1</span>)
<span class="kw">def</span> tearDown(self):
App.close(self.terminal)
self.terminal= None
<span class="skw">wait</span>(<span class="dig">2</span>)
<span class="kw">if</span> self.terminal.window():
App.close(self.terminal)
self.terminal= None
</pre>
</body>
</html>
......@@ -24,9 +24,12 @@ def test_createSimpleScenarioAndRun(self):
assert(exists("SavechangePopup.png"))
click(Pattern("SavechangePopup.png").targetOffset(-170,56))
waitVanish(Pattern("SavechangePopup.png").targetOffset(-170,56),3)
type("n",KeyModifier.CTRL)
wait(1)
def tearDown(self):
App.close(self.terminal)
self.terminal= None
wait(2)
if self.terminal.window():
App.close(self.terminal)
self.terminal= None
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment