diff options
author | Tamás Zolnai <tamas.zolnai@collabora.com> | 2020-11-13 09:40:27 +0100 |
---|---|---|
committer | Tamás Zolnai <zolnaitamas2000@gmail.com> | 2020-11-13 11:57:23 +0100 |
commit | 2aa37cbaf44bbdcb3ef5e7cb32fd320401d25765 (patch) | |
tree | be337dabc95c6709bebd13cb78380ab4e14e967a /cypress_test/integration_tests | |
parent | cypress: NC: avoid hard coding locale indicator in number formatting tests. (diff) | |
download | online-2aa37cbaf44bbdcb3ef5e7cb32fd320401d25765.tar.gz online-2aa37cbaf44bbdcb3ef5e7cb32fd320401d25765.zip |
cypress: do not run afterAll method in case of failure.
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 <tamas.zolnai@collabora.com>
Diffstat (limited to 'cypress_test/integration_tests')
52 files changed, 55 insertions, 52 deletions
diff --git a/cypress_test/integration_tests/common/helper.js b/cypress_test/integration_tests/common/helper.js index ce613b4bf3..60caba7291 100644 --- a/cypress_test/integration_tests/common/helper.js +++ b/cypress_test/integration_tests/common/helper.js @@ -400,9 +400,12 @@ function beforeAll(fileName, subFolder, noFileCopy, subsequentLoad) { loadTestDoc(fileName, subFolder, noFileCopy, subsequentLoad); } -function afterAll(fileName) { +function afterAll(fileName, testState) { cy.log('Waiting for closing the document - start.'); + if (testState === 'failed') + return; + if (Cypress.env('INTEGRATION') === 'nextcloud') { if (Cypress.env('IFRAME_LEVEL') === '2') { // Close the document diff --git a/cypress_test/integration_tests/desktop/calc/bottom_bar_spec.js b/cypress_test/integration_tests/desktop/calc/bottom_bar_spec.js index 3c0c31c02a..032a0a33e2 100644 --- a/cypress_test/integration_tests/desktop/calc/bottom_bar_spec.js +++ b/cypress_test/integration_tests/desktop/calc/bottom_bar_spec.js @@ -13,7 +13,7 @@ describe('Calc bottom bar tests.', function() { }); afterEach(function() { - helper.afterAll(testFileName); + helper.afterAll(testFileName, this.currentTest.state); }); it('Bottom tool bar.', function() { diff --git a/cypress_test/integration_tests/desktop/calc/focus_spec.js b/cypress_test/integration_tests/desktop/calc/focus_spec.js index 83a9301766..43798710d0 100644 --- a/cypress_test/integration_tests/desktop/calc/focus_spec.js +++ b/cypress_test/integration_tests/desktop/calc/focus_spec.js @@ -14,7 +14,7 @@ describe('Calc focus tests', function() { }); afterEach(function() { - helper.afterAll(testFileName); + helper.afterAll(testFileName, this.currentTest.state); }); it('Formula-bar focus', function() { diff --git a/cypress_test/integration_tests/desktop/calc/top_toolbar_spec.js b/cypress_test/integration_tests/desktop/calc/top_toolbar_spec.js index 5f5451d38b..706e62bbb0 100644 --- a/cypress_test/integration_tests/desktop/calc/top_toolbar_spec.js +++ b/cypress_test/integration_tests/desktop/calc/top_toolbar_spec.js @@ -13,7 +13,7 @@ describe('Top toolbar tests.', function() { }); afterEach(function() { - helper.afterAll(testFileName); + helper.afterAll(testFileName, this.currentTest.state); }); it('Clear Direct formatting.', function() { diff --git a/cypress_test/integration_tests/desktop/impress/slide_operations_spec.js b/cypress_test/integration_tests/desktop/impress/slide_operations_spec.js index 3d0346800a..45e4764c32 100644 --- a/cypress_test/integration_tests/desktop/impress/slide_operations_spec.js +++ b/cypress_test/integration_tests/desktop/impress/slide_operations_spec.js @@ -11,7 +11,7 @@ describe('Slide operations', function() { }); afterEach(function() { - helper.afterAll(testFileName); + helper.afterAll(testFileName, this.currentTest.state); }); it('Add slides', function() { diff --git a/cypress_test/integration_tests/desktop/impress/top_toolbar_spec.js b/cypress_test/integration_tests/desktop/impress/top_toolbar_spec.js index 3434eaab30..35dd0f2e18 100644 --- a/cypress_test/integration_tests/desktop/impress/top_toolbar_spec.js +++ b/cypress_test/integration_tests/desktop/impress/top_toolbar_spec.js @@ -20,7 +20,7 @@ describe('Top toolbar tests.', function() { }); afterEach(function() { - helper.afterAll(testFileName); + helper.afterAll(testFileName, this.currentTest.state); }); it('Apply bold on text shape.', function() { 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() { diff --git a/cypress_test/integration_tests/desktop/writer/focus_spec.js b/cypress_test/integration_tests/desktop/writer/focus_spec.js index ded0678871..a953435027 100644 --- a/cypress_test/integration_tests/desktop/writer/focus_spec.js +++ b/cypress_test/integration_tests/desktop/writer/focus_spec.js @@ -10,7 +10,7 @@ describe('Focus tests', function() { }); afterEach(function() { - helper.afterAll(testFileName); + helper.afterAll(testFileName, this.currentTest.state); }); it('Basic document focus.', function() { diff --git a/cypress_test/integration_tests/desktop/writer/form_field_spec.js b/cypress_test/integration_tests/desktop/writer/form_field_spec.js index d6151365b8..27e1c1451f 100644 --- a/cypress_test/integration_tests/desktop/writer/form_field_spec.js +++ b/cypress_test/integration_tests/desktop/writer/form_field_spec.js @@ -21,7 +21,7 @@ describe('Form field button tests.', function() { .should('be.visible'); } afterEach(function() { - helper.afterAll(testFileName, 'writer'); + helper.afterAll(testFileName, this.currentTest.state); }); function buttonShouldNotExist() { diff --git a/cypress_test/integration_tests/desktop/writer/shape_operations_spec.js b/cypress_test/integration_tests/desktop/writer/shape_operations_spec.js index 990278b7df..25eef057b1 100644 --- a/cypress_test/integration_tests/desktop/writer/shape_operations_spec.js +++ b/cypress_test/integration_tests/desktop/writer/shape_operations_spec.js @@ -6,7 +6,7 @@ describe('Shape operations', function() { var testFileName = 'shape_operations.odt'; afterEach(function() { - helper.afterAll(testFileName, 'writer'); + helper.afterAll(testFileName, this.currentTest.state); }); it('Insert a simple shape.', function() { diff --git a/cypress_test/integration_tests/desktop/writer/top_toolbar_spec.js b/cypress_test/integration_tests/desktop/writer/top_toolbar_spec.js index 6ab1372e83..79ebd7edb6 100644 --- a/cypress_test/integration_tests/desktop/writer/top_toolbar_spec.js +++ b/cypress_test/integration_tests/desktop/writer/top_toolbar_spec.js @@ -17,7 +17,7 @@ describe('Top toolbar tests.', function() { }); afterEach(function() { - helper.afterAll(testFileName); + helper.afterAll(testFileName, this.currentTest.state); }); it('Apply highlight color.', function() { diff --git a/cypress_test/integration_tests/mobile/calc/alignment_options_spec.js b/cypress_test/integration_tests/mobile/calc/alignment_options_spec.js index c0342653cd..4c595a255c 100644 --- a/cypress_test/integration_tests/mobile/calc/alignment_options_spec.js +++ b/cypress_test/integration_tests/mobile/calc/alignment_options_spec.js @@ -18,7 +18,7 @@ describe('Change alignment settings.', function() { }); afterEach(function() { - helper.afterAll(testFileName); + helper.afterAll(testFileName, this.currentTest.state); }); function getTextPosForFirstCell() { diff --git a/cypress_test/integration_tests/mobile/calc/apply_font_spec.js b/cypress_test/integration_tests/mobile/calc/apply_font_spec.js index 35cacc6cf4..b10d70c298 100644 --- a/cypress_test/integration_tests/mobile/calc/apply_font_spec.js +++ b/cypress_test/integration_tests/mobile/calc/apply_font_spec.js @@ -23,7 +23,7 @@ describe('Apply font changes.', function() { }); afterEach(function() { - helper.afterAll(testFileName); + helper.afterAll(testFileName, this.currentTest.state); }); it('Apply bold.', function() { diff --git a/cypress_test/integration_tests/mobile/calc/bottom_toolbar_spec.js b/cypress_test/integration_tests/mobile/calc/bottom_toolbar_spec.js index 916ba01f8c..752cbb6649 100644 --- a/cypress_test/integration_tests/mobile/calc/bottom_toolbar_spec.js +++ b/cypress_test/integration_tests/mobile/calc/bottom_toolbar_spec.js @@ -23,7 +23,7 @@ describe('Interact with bottom toolbar.', function() { } afterEach(function() { - helper.afterAll(testFileName); + helper.afterAll(testFileName, this.currentTest.state); }); function getTextPosForFirstCell() { diff --git a/cypress_test/integration_tests/mobile/calc/cell_appearance_spec.js b/cypress_test/integration_tests/mobile/calc/cell_appearance_spec.js index a89aedee5e..c239bd7771 100644 --- a/cypress_test/integration_tests/mobile/calc/cell_appearance_spec.js +++ b/cypress_test/integration_tests/mobile/calc/cell_appearance_spec.js @@ -15,7 +15,7 @@ describe('Change cell appearance.', function() { }); afterEach(function() { - helper.afterAll(testFileName); + helper.afterAll(testFileName, this.currentTest.state); }); function openAppearencePanel() { diff --git a/cypress_test/integration_tests/mobile/calc/chart_spec.js b/cypress_test/integration_tests/mobile/calc/chart_spec.js index 402610bda2..e70808606d 100644 --- a/cypress_test/integration_tests/mobile/calc/chart_spec.js +++ b/cypress_test/integration_tests/mobile/calc/chart_spec.js @@ -20,7 +20,7 @@ describe('Chart tests.', function() { }); afterEach(function() { - helper.afterAll(testFileName); + helper.afterAll(testFileName, this.currentTest.state); }); function insertChart() { diff --git a/cypress_test/integration_tests/mobile/calc/focus_spec.js b/cypress_test/integration_tests/mobile/calc/focus_spec.js index 0cc640378e..005b54800d 100644 --- a/cypress_test/integration_tests/mobile/calc/focus_spec.js +++ b/cypress_test/integration_tests/mobile/calc/focus_spec.js @@ -15,7 +15,7 @@ describe('Calc focus tests', function() { }); afterEach(function() { - helper.afterAll(testFileName); + helper.afterAll(testFileName, this.currentTest.state); }); it('Basic document focus.', function() { diff --git a/cypress_test/integration_tests/mobile/calc/formulabar_spec.js b/cypress_test/integration_tests/mobile/calc/formulabar_spec.js index 7da6cc76a0..4ade2f8549 100644 --- a/cypress_test/integration_tests/mobile/calc/formulabar_spec.js +++ b/cypress_test/integration_tests/mobile/calc/formulabar_spec.js @@ -16,7 +16,7 @@ describe('Change alignment settings.', function() { }); afterEach(function() { - helper.afterAll(testFileName); + helper.afterAll(testFileName, this.currentTest.state); }); it('Select a cell by address', function() { diff --git a/cypress_test/integration_tests/mobile/calc/hamburger_menu_spec.js b/cypress_test/integration_tests/mobile/calc/hamburger_menu_spec.js index 28380f5f7e..fd732c2630 100644 --- a/cypress_test/integration_tests/mobile/calc/hamburger_menu_spec.js +++ b/cypress_test/integration_tests/mobile/calc/hamburger_menu_spec.js @@ -17,7 +17,7 @@ describe('Trigger hamburger menu options.', function() { } afterEach(function() { - helper.afterAll(testFileName); + helper.afterAll(testFileName, this.currentTest.state); }); it('Save', function() { diff --git a/cypress_test/integration_tests/mobile/calc/insertion_wizard_spec.js b/cypress_test/integration_tests/mobile/calc/insertion_wizard_spec.js index ec4a3fd6c3..9ad24752b5 100644 --- a/cypress_test/integration_tests/mobile/calc/insertion_wizard_spec.js +++ b/cypress_test/integration_tests/mobile/calc/insertion_wizard_spec.js @@ -24,7 +24,7 @@ describe('Calc insertion wizard.', function() { }); afterEach(function() { - helper.afterAll(testFileName); + helper.afterAll(testFileName, this.currentTest.state); }); it('Inset local image.', function() { diff --git a/cypress_test/integration_tests/mobile/calc/nextcloud_spec.js b/cypress_test/integration_tests/mobile/calc/nextcloud_spec.js index c4eb4d7772..d6ba72a138 100644 --- a/cypress_test/integration_tests/mobile/calc/nextcloud_spec.js +++ b/cypress_test/integration_tests/mobile/calc/nextcloud_spec.js @@ -9,7 +9,7 @@ describe('Nextcloud specific tests.', function() { var testFileName = 'nextcloud.ods'; afterEach(function() { - helper.afterAll(testFileName); + helper.afterAll(testFileName, this.currentTest.state); }); it('Insert image from storage.', function() { diff --git a/cypress_test/integration_tests/mobile/calc/number_format_spec.js b/cypress_test/integration_tests/mobile/calc/number_format_spec.js index efcd07b160..556e125476 100644 --- a/cypress_test/integration_tests/mobile/calc/number_format_spec.js +++ b/cypress_test/integration_tests/mobile/calc/number_format_spec.js @@ -27,7 +27,7 @@ describe('Apply number formatting.', function() { }); afterEach(function() { - helper.afterAll(testFileName); + helper.afterAll(testFileName, this.currentTest.state); }); function selectFormatting(formattingString) { diff --git a/cypress_test/integration_tests/mobile/calc/searchbar_spec.js b/cypress_test/integration_tests/mobile/calc/searchbar_spec.js index 7883bfff0c..1f4d3d5221 100644 --- a/cypress_test/integration_tests/mobile/calc/searchbar_spec.js +++ b/cypress_test/integration_tests/mobile/calc/searchbar_spec.js @@ -16,7 +16,7 @@ describe('Searching via search bar.', function() { }); afterEach(function() { - helper.afterAll(testFileName); + helper.afterAll(testFileName, this.currentTest.state); }); it('Search existing word.', function() { diff --git a/cypress_test/integration_tests/mobile/calc/spellchecking_spec.js b/cypress_test/integration_tests/mobile/calc/spellchecking_spec.js index 37cfae181e..f4cd2e63f6 100644 --- a/cypress_test/integration_tests/mobile/calc/spellchecking_spec.js +++ b/cypress_test/integration_tests/mobile/calc/spellchecking_spec.js @@ -15,7 +15,7 @@ describe('Calc spell checking menu.', function() { }); afterEach(function() { - helper.afterAll(testFileName); + helper.afterAll(testFileName, this.currentTest.state); }); function openContextMenu() { diff --git a/cypress_test/integration_tests/mobile/impress/annotation_spec.js b/cypress_test/integration_tests/mobile/impress/annotation_spec.js index 091770d51b..adae54d477 100644 --- a/cypress_test/integration_tests/mobile/impress/annotation_spec.js +++ b/cypress_test/integration_tests/mobile/impress/annotation_spec.js @@ -13,7 +13,7 @@ describe('Annotation tests.', function() { }); afterEach(function() { - helper.afterAll(testFileName); + helper.afterAll(testFileName, this.currentTest.state); }); function insertComment() { diff --git a/cypress_test/integration_tests/mobile/impress/apply_font_shape_spec.js b/cypress_test/integration_tests/mobile/impress/apply_font_shape_spec.js index 0a123dbc38..b0c1e139d1 100644 --- a/cypress_test/integration_tests/mobile/impress/apply_font_shape_spec.js +++ b/cypress_test/integration_tests/mobile/impress/apply_font_shape_spec.js @@ -16,7 +16,7 @@ describe('Apply font on selected shape.', function() { }); afterEach(function() { - helper.afterAll(testFileName); + helper.afterAll(testFileName, this.currentTest.state); }); function triggerNewSVG() { diff --git a/cypress_test/integration_tests/mobile/impress/apply_font_text_spec.js b/cypress_test/integration_tests/mobile/impress/apply_font_text_spec.js index a0c16302ce..4944964c9f 100644 --- a/cypress_test/integration_tests/mobile/impress/apply_font_text_spec.js +++ b/cypress_test/integration_tests/mobile/impress/apply_font_text_spec.js @@ -16,7 +16,7 @@ describe('Apply font on selected text.', function() { }); afterEach(function() { - helper.afterAll(testFileName); + helper.afterAll(testFileName, this.currentTest.state); }); function triggerNewSVG() { diff --git a/cypress_test/integration_tests/mobile/impress/apply_paragraph_props_shape_spec.js b/cypress_test/integration_tests/mobile/impress/apply_paragraph_props_shape_spec.js index 008416bdcc..69204081da 100644 --- a/cypress_test/integration_tests/mobile/impress/apply_paragraph_props_shape_spec.js +++ b/cypress_test/integration_tests/mobile/impress/apply_paragraph_props_shape_spec.js @@ -16,7 +16,7 @@ describe('Apply paragraph properties on selected shape.', function() { }); afterEach(function() { - helper.afterAll(testFileName); + helper.afterAll(testFileName, this.currentTest.state); }); function triggerNewSVG() { diff --git a/cypress_test/integration_tests/mobile/impress/apply_paragraph_props_text_spec.js b/cypress_test/integration_tests/mobile/impress/apply_paragraph_props_text_spec.js index a32ff615d6..ec658ec888 100644 --- a/cypress_test/integration_tests/mobile/impress/apply_paragraph_props_text_spec.js +++ b/cypress_test/integration_tests/mobile/impress/apply_paragraph_props_text_spec.js @@ -16,7 +16,7 @@ describe('Apply paragraph properties on selected text.', function() { }); afterEach(function() { - helper.afterAll(testFileName); + helper.afterAll(testFileName, this.currentTest.state); }); function triggerNewSVG() { diff --git a/cypress_test/integration_tests/mobile/impress/hamburger_menu_spec.js b/cypress_test/integration_tests/mobile/impress/hamburger_menu_spec.js index 6527a4ce56..dda2502645 100644 --- a/cypress_test/integration_tests/mobile/impress/hamburger_menu_spec.js +++ b/cypress_test/integration_tests/mobile/impress/hamburger_menu_spec.js @@ -16,7 +16,7 @@ describe('Trigger hamburger menu options.', function() { } afterEach(function() { - helper.afterAll(testFileName); + helper.afterAll(testFileName, this.currentTest.state); }); it('Save', function() { diff --git a/cypress_test/integration_tests/mobile/impress/impress_focus_spec.js b/cypress_test/integration_tests/mobile/impress/impress_focus_spec.js index 4fa3e97be1..25d5839b06 100644 --- a/cypress_test/integration_tests/mobile/impress/impress_focus_spec.js +++ b/cypress_test/integration_tests/mobile/impress/impress_focus_spec.js @@ -12,7 +12,7 @@ describe('Impress focus tests', function() { }); afterEach(function() { - helper.afterAll(testFileName); + helper.afterAll(testFileName, this.currentTest.state); }); it('Select text box, no editing', function() { diff --git a/cypress_test/integration_tests/mobile/impress/insertion_wizard_spec.js b/cypress_test/integration_tests/mobile/impress/insertion_wizard_spec.js index a7e76e0552..389e20deec 100644 --- a/cypress_test/integration_tests/mobile/impress/insertion_wizard_spec.js +++ b/cypress_test/integration_tests/mobile/impress/insertion_wizard_spec.js @@ -16,7 +16,7 @@ describe('Impress insertion wizard.', function() { }); afterEach(function() { - helper.afterAll(testFileName); + helper.afterAll(testFileName, this.currentTest.state); }); function selectionShouldBeTextShape(checkShape) { diff --git a/cypress_test/integration_tests/mobile/impress/nextcloud_spec.js b/cypress_test/integration_tests/mobile/impress/nextcloud_spec.js index 17b0a75ca2..becc0b2f99 100644 --- a/cypress_test/integration_tests/mobile/impress/nextcloud_spec.js +++ b/cypress_test/integration_tests/mobile/impress/nextcloud_spec.js @@ -8,7 +8,7 @@ describe('Nextcloud specific tests.', function() { var testFileName = 'nextcloud.odp'; afterEach(function() { - helper.afterAll(testFileName); + helper.afterAll(testFileName, this.currentTest.state); }); it('Insert image from storage.', function() { diff --git a/cypress_test/integration_tests/mobile/impress/searchbar_spec.js b/cypress_test/integration_tests/mobile/impress/searchbar_spec.js index 7191de4fac..cd9a00591f 100644 --- a/cypress_test/integration_tests/mobile/impress/searchbar_spec.js +++ b/cypress_test/integration_tests/mobile/impress/searchbar_spec.js @@ -17,7 +17,7 @@ describe('Searching via search bar.', function() { }); afterEach(function() { - helper.afterAll(testFileName); + helper.afterAll(testFileName, this.currentTest.state); }); it('Search existing word.', function() { diff --git a/cypress_test/integration_tests/mobile/impress/slide_properties_spec.js b/cypress_test/integration_tests/mobile/impress/slide_properties_spec.js index 75ef944567..da225794f5 100644 --- a/cypress_test/integration_tests/mobile/impress/slide_properties_spec.js +++ b/cypress_test/integration_tests/mobile/impress/slide_properties_spec.js @@ -17,7 +17,7 @@ describe('Changing slide properties.', function() { }); afterEach(function() { - helper.afterAll(testFileName); + helper.afterAll(testFileName, this.currentTest.state); }); function previewShouldBeFullWhite(fullWhite = true, slideNumber = 1) { diff --git a/cypress_test/integration_tests/mobile/impress/spellchecking_spec.js b/cypress_test/integration_tests/mobile/impress/spellchecking_spec.js index 01e9dd3601..26eebff5fc 100644 --- a/cypress_test/integration_tests/mobile/impress/spellchecking_spec.js +++ b/cypress_test/integration_tests/mobile/impress/spellchecking_spec.js @@ -14,7 +14,7 @@ describe('Spell checking menu.', function() { }); afterEach(function() { - helper.afterAll(testFileName); + helper.afterAll(testFileName, this.currentTest.state); }); function openContextMenu() { diff --git a/cypress_test/integration_tests/mobile/writer/annotation_spec.js b/cypress_test/integration_tests/mobile/writer/annotation_spec.js index f5325fb7f4..1673cf54ea 100644 --- a/cypress_test/integration_tests/mobile/writer/annotation_spec.js +++ b/cypress_test/integration_tests/mobile/writer/annotation_spec.js @@ -14,7 +14,7 @@ describe('Annotation tests.', function() { }); afterEach(function() { - helper.afterAll(testFileName); + helper.afterAll(testFileName, this.currentTest.state); }); function insertComment() { diff --git a/cypress_test/integration_tests/mobile/writer/apply_font_spec.js b/cypress_test/integration_tests/mobile/writer/apply_font_spec.js index 5984f49fe8..1cd32a3f85 100644 --- a/cypress_test/integration_tests/mobile/writer/apply_font_spec.js +++ b/cypress_test/integration_tests/mobile/writer/apply_font_spec.js @@ -20,7 +20,7 @@ describe('Apply font changes.', function() { }); afterEach(function() { - helper.afterAll(testFileName); + helper.afterAll(testFileName, this.currentTest.state); }); function applyStyle(styleName) { diff --git a/cypress_test/integration_tests/mobile/writer/apply_paragraph_properties_spec.js b/cypress_test/integration_tests/mobile/writer/apply_paragraph_properties_spec.js index 2f39eda9bd..12eba314c5 100644 --- a/cypress_test/integration_tests/mobile/writer/apply_paragraph_properties_spec.js +++ b/cypress_test/integration_tests/mobile/writer/apply_paragraph_properties_spec.js @@ -29,7 +29,7 @@ describe('Apply paragraph properties.', function() { }); afterEach(function() { - helper.afterAll(testFileName); + helper.afterAll(testFileName, this.currentTest.state); }); it('Apply left/right alignment.', function() { diff --git a/cypress_test/integration_tests/mobile/writer/bottom_toolbar_spec.js b/cypress_test/integration_tests/mobile/writer/bottom_toolbar_spec.js index fbfe80aedd..def8002e18 100644 --- a/cypress_test/integration_tests/mobile/writer/bottom_toolbar_spec.js +++ b/cypress_test/integration_tests/mobile/writer/bottom_toolbar_spec.js @@ -18,7 +18,7 @@ describe('Pushing bottom toolbar items.', function() { }); afterEach(function() { - helper.afterAll(testFileName); + helper.afterAll(testFileName, this.currentTest.state); }); it('Apply bold.', function() { diff --git a/cypress_test/integration_tests/mobile/writer/focus_spec.js b/cypress_test/integration_tests/mobile/writer/focus_spec.js index 6f41190d3d..08677876c7 100644 --- a/cypress_test/integration_tests/mobile/writer/focus_spec.js +++ b/cypress_test/integration_tests/mobile/writer/focus_spec.js @@ -11,7 +11,7 @@ describe('Focus tests', function() { }); afterEach(function() { - helper.afterAll(testFileName); + helper.afterAll(testFileName, this.currentTest.state); }); it('Basic document focus.', function() { diff --git a/cypress_test/integration_tests/mobile/writer/hamburger_menu_spec.js b/cypress_test/integration_tests/mobile/writer/hamburger_menu_spec.js index 9e08a2e264..9eea04c0cc 100644 --- a/cypress_test/integration_tests/mobile/writer/hamburger_menu_spec.js +++ b/cypress_test/integration_tests/mobile/writer/hamburger_menu_spec.js @@ -15,7 +15,7 @@ describe('Trigger hamburger menu options.', function() { }); afterEach(function() { - helper.afterAll(testFileName); + helper.afterAll(testFileName, this.currentTest.state); }); function hideText() { diff --git a/cypress_test/integration_tests/mobile/writer/insert_field_spec.js b/cypress_test/integration_tests/mobile/writer/insert_field_spec.js index 95da2ff56d..01e0cd821c 100644 --- a/cypress_test/integration_tests/mobile/writer/insert_field_spec.js +++ b/cypress_test/integration_tests/mobile/writer/insert_field_spec.js @@ -24,7 +24,7 @@ describe('Insert fields via insertion wizard.', function() { }); afterEach(function() { - helper.afterAll(testFileName); + helper.afterAll(testFileName, this.currentTest.state); }); it('Insert page number field.', function() { diff --git a/cypress_test/integration_tests/mobile/writer/insert_formatting_mark_spec.js b/cypress_test/integration_tests/mobile/writer/insert_formatting_mark_spec.js index e4c314ddc5..5df37b095e 100644 --- a/cypress_test/integration_tests/mobile/writer/insert_formatting_mark_spec.js +++ b/cypress_test/integration_tests/mobile/writer/insert_formatting_mark_spec.js @@ -24,7 +24,7 @@ describe('Insert formatting mark via insertion wizard.', function() { }); afterEach(function() { - helper.afterAll(testFileName); + helper.afterAll(testFileName, this.currentTest.state); }); it('Insert non-breaking space.', function() { diff --git a/cypress_test/integration_tests/mobile/writer/insert_object_spec.js b/cypress_test/integration_tests/mobile/writer/insert_object_spec.js index 46f0f8b027..111e7ec9ef 100644 --- a/cypress_test/integration_tests/mobile/writer/insert_object_spec.js +++ b/cypress_test/integration_tests/mobile/writer/insert_object_spec.js @@ -17,7 +17,7 @@ describe('Insert objects via insertion wizard.', function() { }); afterEach(function() { - helper.afterAll(testFileName); + helper.afterAll(testFileName, this.currentTest.state); }); it('Insert local image.', function() { diff --git a/cypress_test/integration_tests/mobile/writer/mobile_wizard_state_spec.js b/cypress_test/integration_tests/mobile/writer/mobile_wizard_state_spec.js index 179324a230..e714cc6089 100644 --- a/cypress_test/integration_tests/mobile/writer/mobile_wizard_state_spec.js +++ b/cypress_test/integration_tests/mobile/writer/mobile_wizard_state_spec.js @@ -11,7 +11,7 @@ describe('Mobile wizard state tests', function() { }); afterEach(function() { - helper.afterAll(testFileName); + helper.afterAll(testFileName, this.currentTest.state); }); it('Open and close mobile wizard by toolbar item.', function() { diff --git a/cypress_test/integration_tests/mobile/writer/nextcloud_spec.js b/cypress_test/integration_tests/mobile/writer/nextcloud_spec.js index 5ae15ab106..c0c19e5da1 100644 --- a/cypress_test/integration_tests/mobile/writer/nextcloud_spec.js +++ b/cypress_test/integration_tests/mobile/writer/nextcloud_spec.js @@ -9,7 +9,7 @@ describe('Nextcloud specific tests.', function() { var testFileName = 'nextcloud.odt'; afterEach(function() { - helper.afterAll(testFileName); + helper.afterAll(testFileName, this.currentTest.state); }); it('Insert image from storage.', function() { diff --git a/cypress_test/integration_tests/mobile/writer/searchbar_spec.js b/cypress_test/integration_tests/mobile/writer/searchbar_spec.js index 79dc88de98..c8f9d09d70 100644 --- a/cypress_test/integration_tests/mobile/writer/searchbar_spec.js +++ b/cypress_test/integration_tests/mobile/writer/searchbar_spec.js @@ -17,7 +17,7 @@ describe('Searching via search bar.', function() { }); afterEach(function() { - helper.afterAll(testFileName); + helper.afterAll(testFileName, this.currentTest.state); }); it('Search existing word.', function() { diff --git a/cypress_test/integration_tests/mobile/writer/shape_properties_spec.js b/cypress_test/integration_tests/mobile/writer/shape_properties_spec.js index 9f14532cd2..6bfb9dabb5 100644 --- a/cypress_test/integration_tests/mobile/writer/shape_properties_spec.js +++ b/cypress_test/integration_tests/mobile/writer/shape_properties_spec.js @@ -36,7 +36,7 @@ describe('Change shape properties via mobile wizard.', function() { }); afterEach(function() { - helper.afterAll(testFileName); + helper.afterAll(testFileName, this.currentTest.state); }); function triggerNewSVG() { diff --git a/cypress_test/integration_tests/mobile/writer/spellchecking_spec.js b/cypress_test/integration_tests/mobile/writer/spellchecking_spec.js index 10a64f2b32..2ccd5baa0c 100644 --- a/cypress_test/integration_tests/mobile/writer/spellchecking_spec.js +++ b/cypress_test/integration_tests/mobile/writer/spellchecking_spec.js @@ -15,7 +15,7 @@ describe('Spell checking menu.', function() { }); afterEach(function() { - helper.afterAll(testFileName); + helper.afterAll(testFileName, this.currentTest.state); }); function openContextMenu() { diff --git a/cypress_test/integration_tests/mobile/writer/table_properties_spec.js b/cypress_test/integration_tests/mobile/writer/table_properties_spec.js index 55ebc9605e..0700023560 100644 --- a/cypress_test/integration_tests/mobile/writer/table_properties_spec.js +++ b/cypress_test/integration_tests/mobile/writer/table_properties_spec.js @@ -16,7 +16,7 @@ describe('Change table properties / layout via mobile wizard.', function() { } afterEach(function() { - helper.afterAll(testFileName); + helper.afterAll(testFileName, this.currentTest.state); }); function openTablePanel() { diff --git a/cypress_test/integration_tests/mobile/writer/toolbar_spec.js b/cypress_test/integration_tests/mobile/writer/toolbar_spec.js index b8e2dd5987..0a3bb921b8 100644 --- a/cypress_test/integration_tests/mobile/writer/toolbar_spec.js +++ b/cypress_test/integration_tests/mobile/writer/toolbar_spec.js @@ -11,7 +11,7 @@ describe('Toolbar tests', function() { }); afterEach(function() { - helper.afterAll(testFileName); + helper.afterAll(testFileName, this.currentTest.state); }); it('State of mobile wizard toolbar item.', function() { |