summaryrefslogtreecommitdiffstats
path: root/cypress_test/integration_tests/desktop
diff options
context:
space:
mode:
authorTamás Zolnai <tamas.zolnai@collabora.com>2020-11-13 09:40:27 +0100
committerTamás Zolnai <zolnaitamas2000@gmail.com>2020-11-13 11:57:23 +0100
commit2aa37cbaf44bbdcb3ef5e7cb32fd320401d25765 (patch)
treebe337dabc95c6709bebd13cb78380ab4e14e967a /cypress_test/integration_tests/desktop
parentcypress: NC: avoid hard coding locale indicator in number formatting tests. (diff)
downloadonline-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/desktop')
-rw-r--r--cypress_test/integration_tests/desktop/calc/bottom_bar_spec.js2
-rw-r--r--cypress_test/integration_tests/desktop/calc/focus_spec.js2
-rw-r--r--cypress_test/integration_tests/desktop/calc/top_toolbar_spec.js2
-rw-r--r--cypress_test/integration_tests/desktop/impress/slide_operations_spec.js2
-rw-r--r--cypress_test/integration_tests/desktop/impress/top_toolbar_spec.js2
-rw-r--r--cypress_test/integration_tests/desktop/writer/copy_paste_spec.js2
-rw-r--r--cypress_test/integration_tests/desktop/writer/focus_spec.js2
-rw-r--r--cypress_test/integration_tests/desktop/writer/form_field_spec.js2
-rw-r--r--cypress_test/integration_tests/desktop/writer/shape_operations_spec.js2
-rw-r--r--cypress_test/integration_tests/desktop/writer/top_toolbar_spec.js2
10 files changed, 10 insertions, 10 deletions
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() {