[arvados-workbench2] updated: 2.5.0-42-gbe1a18c4

git repository hosting git at public.arvados.org
Mon Feb 20 18:47:04 UTC 2023


Summary of changes:
 cypress/integration/banner-tooltip.spec.js | 8 ++++----
 cypress/support/commands.js                | 6 ++++--
 2 files changed, 8 insertions(+), 6 deletions(-)

       via  be1a18c40076285fa3802ac3a66e99a1d2dd4c8b (commit)
      from  10558de3e60bb232f510ea9840808a99aa9e7014 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit be1a18c40076285fa3802ac3a66e99a1d2dd4c8b
Author: Lucas Di Pentima <lucas.dipentima at curii.com>
Date:   Mon Feb 20 15:46:43 2023 -0300

    19836: Tests conditional binary mode.
    
    Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima at curii.com>

diff --git a/cypress/integration/banner-tooltip.spec.js b/cypress/integration/banner-tooltip.spec.js
index 20c0df80..ccd4166a 100644
--- a/cypress/integration/banner-tooltip.spec.js
+++ b/cypress/integration/banner-tooltip.spec.js
@@ -41,14 +41,14 @@ describe('Collection panel tests', function () {
 
                         cy.get('[data-cy=upload-button]').click();
 
-                        cy.fixture('files/banner.html', 'base64').as('banner');
-                        cy.fixture('files/tooltips.txt', 'base64').as('tooltips');
+                        cy.fixture('files/banner.html').as('banner');
+                        cy.fixture('files/tooltips.txt').as('tooltips');
 
                         cy.getAll('@banner', '@tooltips')
                             .then(([banner, tooltips]) => {
                                 console.log(tooltips)
-                                cy.get('[data-cy=drag-and-drop]').upload(banner, 'banner.html');
-                                cy.get('[data-cy=drag-and-drop]').upload(tooltips, 'tooltips.json');
+                                cy.get('[data-cy=drag-and-drop]').upload(banner, 'banner.html', false);
+                                cy.get('[data-cy=drag-and-drop]').upload(tooltips, 'tooltips.json', false);
                             });
 
                         cy.get('[data-cy=form-submit-btn]').click();
diff --git a/cypress/support/commands.js b/cypress/support/commands.js
index e98000fc..f09d959b 100644
--- a/cypress/support/commands.js
+++ b/cypress/support/commands.js
@@ -387,9 +387,11 @@ Cypress.Commands.add(
     {
         prevSubject: 'element',
     },
-    (subject, file, fileName) => {
+    (subject, file, fileName, binaryMode = true) => {
         cy.window().then(window => {
-            const blob = b64toBlob(file, '', 512);
+            const blob = binaryMode
+                ? b64toBlob(file, '', 512)
+                : new Blob([file], {type: 'text/plain'});
             const testFile = new window.File([blob], fileName);
 
             cy.wrap(subject).trigger('drop', {

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list