Skip to content

Commit

Permalink
Cypress Test: Changes in command and copyright update
Browse files Browse the repository at this point in the history
  • Loading branch information
gracec20 committed Nov 6, 2024
1 parent 6ff42d4 commit cf78c19
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion cypress/e2e/Layout/Editor/layout_editor_background.cy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2023 Xibo Signage Ltd
* Copyright (C) 2024 Xibo Signage Ltd
*
* Xibo - Digital Signage - https://xibosignage.com
*
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/Layout/Editor/layout_editor_options.cy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2023 Xibo Signage Ltd
* Copyright (C) 2024 Xibo Signage Ltd
*
* Xibo - Digital Signage - https://xibosignage.com
*
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/Layout/Editor/layout_editor_status_bar.cy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2023 Xibo Signage Ltd
* Copyright (C) 2024 Xibo Signage Ltd
*
* Xibo - Digital Signage - https://xibosignage.com
*
Expand Down
11 changes: 4 additions & 7 deletions cypress/support/commands.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2023 Xibo Signage Ltd
* Copyright (C) 2024 Xibo Signage Ltd
*
* Xibo - Digital Signage - https://xibosignage.com
*
Expand Down Expand Up @@ -819,17 +819,14 @@ Cypress.Commands.add('displayStatusEquals', function(displayName, statusId) {
/**
* Force open toolbar menu
* @param {number} menuIdx
* @param {boolean} load
*/
Cypress.Commands.add('openToolbarMenu', function(menuIdx, load) {
Cypress.Commands.add('openToolbarMenu', function(menuIdx, load = true) {
cy.intercept('GET', '/user/pref?preference=toolbar').as('toolbarPrefsLoad');
cy.intercept('GET', '/user/pref?preference=editor').as('editorPrefsLoad');
cy.intercept('POST', '/user/pref?preference=toolbar').as('toolbarPrefsLoad');

// Wait for the toolbar to reload when getting prefs at start
//cy.wait('@toolbarPrefsLoad');
//cy.wait('@editorPrefsLoad');

// Wait for the toolbar to reload when getting prefs at start, based on the load parameter
// Wait for the toolbar to reload when getting prefs at start, based on the load parameter
if (load) {
cy.wait('@toolbarPrefsLoad');
cy.wait('@editorPrefsLoad');
Expand Down

0 comments on commit cf78c19

Please sign in to comment.