X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/3c6ea6ded33b5740035d059d7d9812ed951ab215..7abad6fba6ffa8e88d40ace78a84fb2a99d5d44b:/cypress/integration/process.spec.js diff --git a/cypress/integration/process.spec.js b/cypress/integration/process.spec.js index e877c8e3..838fa9da 100644 --- a/cypress/integration/process.spec.js +++ b/cypress/integration/process.spec.js @@ -113,6 +113,23 @@ describe('Process tests', function() { }); }); + it('shows process details', function() { + const crName = 'test_container_request'; + createContainerRequest( + activeUser, + crName, + 'arvados/jobs', + ['echo', 'hello world'], + false, 'Committed') + .then(function(containerRequest) { + cy.loginAs(activeUser); + cy.goToPath(`/processes/${containerRequest.uuid}`); + cy.get('[data-cy=process-details]').should('contain', crName); + cy.get('[data-cy=process-details-attributes-runtime-user]').contains(`Active User (${activeUser.user.uuid})`); + cy.get('[data-cy=process-details-attributes-modifiedby-user]').contains(`zzzzz-tpzed-000000000000000`); + }); + }); + it('filters process logs by event type', function() { const nodeInfoLogs = [ 'Host Information', @@ -869,13 +886,11 @@ describe('Process tests', function() { cy.goToPath(`/processes/${containerRequest.uuid}`); cy.get('[data-cy=process-io-card] h6').contains('Inputs') .parents('[data-cy=process-io-card]').within(() => { - cy.wait(2000); - cy.waitForDom(); verifyIOParameter('input_file', null, "Label Description", 'input1.tar', '00000000000000000000000000000000+01'); verifyIOParameter('input_file', null, "Label Description", 'input1-2.txt', undefined, true); verifyIOParameter('input_file', null, "Label Description", 'input1-3.txt', undefined, true); verifyIOParameter('input_file', null, "Label Description", 'input1-4.txt', undefined, true); - verifyIOParameter('input_dir', null, "Doc Description", 'No value', '11111111111111111111111111111111+01'); + verifyIOParameter('input_dir', null, "Doc Description", '/', '11111111111111111111111111111111+01'); verifyIOParameter('input_bool', null, "Doc desc 1, Doc desc 2", 'true'); verifyIOParameter('input_int', null, null, '1'); verifyIOParameter('input_long', null, null, '1'); @@ -885,8 +900,8 @@ describe('Process tests', function() { verifyIOParameter('input_file_array', null, null, 'input2.tar', '00000000000000000000000000000000+02'); verifyIOParameter('input_file_array', null, null, 'input3.tar', undefined, true); verifyIOParameter('input_file_array', null, null, 'input3-2.txt', undefined, true); - verifyIOParameter('input_dir_array', null, null, 'No value', '11111111111111111111111111111111+02'); - verifyIOParameter('input_dir_array', null, null, 'No value', '11111111111111111111111111111111+03', true); + verifyIOParameter('input_dir_array', null, null, '/', '11111111111111111111111111111111+02'); + verifyIOParameter('input_dir_array', null, null, '/', '11111111111111111111111111111111+03', true); verifyIOParameter('input_int_array', null, null, ["1", "3", "5"]); verifyIOParameter('input_long_array', null, null, ["10", "20"]); verifyIOParameter('input_float_array', null, null, ["10.2", "10.4", "10.6"]); @@ -896,7 +911,7 @@ describe('Process tests', function() { cy.get('[data-cy=process-io-card] h6').contains('Outputs') .parents('[data-cy=process-io-card]').within((ctx) => { cy.get(ctx).scrollIntoView(); - cy.waitForDom().get('[data-cy="io-preview-image-toggle"]').click(); + cy.get('[data-cy="io-preview-image-toggle"]').click(); const outPdh = testOutputCollection.portable_data_hash; verifyIOParameter('output_file', null, "Label Description", 'cat.png', `${outPdh}`);