Skip to content

Commit

Permalink
Merge pull request #46 from hms-dbmi-cellenics/updated-deps
Browse files Browse the repository at this point in the history
updated packages & package.json files
  • Loading branch information
kafkasl authored Jun 15, 2022
2 parents a0c2855 + 158ffee commit b2c714c
Show file tree
Hide file tree
Showing 4 changed files with 45,483 additions and 3,912 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference types="cypress" />
import '../../support/commands';

import { addFileActions } from '../../constants';

const gem2sTimeOut = (60 * 1000) * 20; // 20 minutes
Expand Down
24 changes: 13 additions & 11 deletions e2e/cypress/support/commands.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import 'cypress-wait-until';
import 'cypress-localstorage-commands';

import { Auth } from 'aws-amplify';
import { dragAndDropFiles, selectFilesFromInput } from './commandsHelpers';

import { Auth } from 'aws-amplify';
import { addFileActions } from '../constants';

Cypress.Commands.add('login', () => {
Expand Down Expand Up @@ -139,7 +140,6 @@ Cypress.Commands.add('randomizeSampleName', (samplePosition) => {
cy.get('.data-test-sample-cell').eq(samplePosition).then(($sample) => {
cy.wrap($sample).find('.anticon-edit').click();
cy.wrap($sample).find('input').type('{selectall}{backspace}').type(randomSampleName);
cy.wrap($sample).find('.anticon-check').click();
});
});

Expand All @@ -160,18 +160,20 @@ Cypress.Commands.add('waitForGem2s', (timeout) => {

Cypress.Commands.add('waitForQc', (timeout, numQcSteps = 7) => {
cy.log('Waiting for QC to complete...');
cy.waitUntil(() => {
cy.get('span[data-test-id="qc-status-text"]').then(
($text) => {
if ($text.text() === 'failed') throw new Error('QC Step failed');
},
);
return cy.get('svg[data-test-class="data-test-qc-step-completed"]', { timeout }).should('have.length', numQcSteps);
},
cy.waitUntil(
() => {
cy.get('span[data-test-id="qc-status-text"]').then(
($text) => {
if ($text.text() === 'failed') throw new Error('QC Step failed');
},
);
return cy.get('svg[data-test-class="data-test-qc-step-completed"]', { timeout }).should('have.length', numQcSteps);
},
{
timeout,
interval: 5000,
});
},
);
});

Cypress.Commands.add('cleanUpProjectIfNecessary', (projectName) => {
Expand Down
Loading

0 comments on commit b2c714c

Please sign in to comment.