diff options
author | Tamás Zolnai <tamas.zolnai@collabora.com> | 2020-11-09 13:07:44 +0100 |
---|---|---|
committer | Tamás Zolnai <zolnaitamas2000@gmail.com> | 2020-11-25 01:37:08 +0100 |
commit | 52d59dbad7df49598ef59a3b35e49ff19a5fce75 (patch) | |
tree | 12d358d948b027540d4e27472f0190e27ff4df38 | |
parent | cypress: show statusbar / sidebar for NC. (diff) | |
download | online-52d59dbad7df49598ef59a3b35e49ff19a5fce75.tar.gz online-52d59dbad7df49598ef59a3b35e49ff19a5fce75.zip |
cypress: NC: fix up code.
Change-Id: I6d931a59f4281c85347b0e824aefbcd8cf2e129f
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
(cherry picked from commit 99737360000a4ee258a6c746446e6ccc637e01c3)
3 files changed, 5 insertions, 5 deletions
diff --git a/cypress_test/integration_tests/common/desktop_helper.js b/cypress_test/integration_tests/common/desktop_helper.js index a711fe2553..05278c5e9c 100644 --- a/cypress_test/integration_tests/common/desktop_helper.js +++ b/cypress_test/integration_tests/common/desktop_helper.js @@ -54,7 +54,7 @@ function showStatusBarIfHidden() { .should('be.visible'); } -function showSidbarIfHidden() { +function showSidebarIfHidden() { cy.get('#tb_editbar_item_sidebar .w2ui-button') .then(function(sidebarItem) { if (!sidebarItem.hasClass('checked')) { @@ -66,4 +66,4 @@ function showSidbarIfHidden() { module.exports.showSidebar = showSidebar; module.exports.hideSidebar = hideSidebar; module.exports.showStatusBarIfHidden = showStatusBarIfHidden; -module.exports.showSidbarIfHidden = showSidbarIfHidden; +module.exports.showSidebarIfHidden = showSidebarIfHidden; 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 ac989a6096..d6151365b8 100644 --- a/cypress_test/integration_tests/desktop/writer/form_field_spec.js +++ b/cypress_test/integration_tests/desktop/writer/form_field_spec.js @@ -10,7 +10,7 @@ describe('Form field button tests.', function() { testFileName = fileName; helper.beforeAll(fileName, 'writer'); - if (Cypress.env('INTEGRATION') !== 'nextcloud') { + if (Cypress.env('INTEGRATION') === 'nextcloud') { desktopHelper.showStatusBarIfHidden(); } 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 3a946d897a..036c544a2c 100644 --- a/cypress_test/integration_tests/desktop/writer/top_toolbar_spec.js +++ b/cypress_test/integration_tests/desktop/writer/top_toolbar_spec.js @@ -9,8 +9,8 @@ describe('Top toolbar tests.', function() { beforeEach(function() { helper.beforeAll(testFileName, 'writer'); - if (Cypress.env('INTEGRATION') !== 'nextcloud') { - desktopHelper.showSidbarIfHidden(); + if (Cypress.env('INTEGRATION') === 'nextcloud') { + desktopHelper.showSidebarIfHidden(); } helper.selectAllText(false); |