From 2aa37cbaf44bbdcb3ef5e7cb32fd320401d25765 Mon Sep 17 00:00:00 2001 From: Tamás Zolnai Date: Fri, 13 Nov 2020 09:40:27 +0100 Subject: cypress: do not run afterAll method in case of failure. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit After a test failure, it's common, that the afterAll method also fails which covers the right error message and also makes the following tests to be ignored. Change-Id: I5c1bbc5dd8b1b48dd2a8f1fc20a8ca3b8ecd8462 Signed-off-by: Tamás Zolnai --- cypress_test/integration_tests/desktop/writer/copy_paste_spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cypress_test/integration_tests/desktop/writer/copy_paste_spec.js') diff --git a/cypress_test/integration_tests/desktop/writer/copy_paste_spec.js b/cypress_test/integration_tests/desktop/writer/copy_paste_spec.js index 33970653eb..3fefa1fa89 100644 --- a/cypress_test/integration_tests/desktop/writer/copy_paste_spec.js +++ b/cypress_test/integration_tests/desktop/writer/copy_paste_spec.js @@ -10,7 +10,7 @@ describe('Clipboard operations.', function() { }); afterEach(function() { - helper.afterAll(testFileName); + helper.afterAll(testFileName, this.currentTest.state); }); it('Copy and Paste text.', function() { -- cgit