Skip to content

Commit 446e3d8

Browse files
Merge branch 'dev' into ID-1174-combine-user-state-api-calls
2 parents a96ad94 + 3dc3ecd commit 446e3d8

File tree

6 files changed

+20
-8
lines changed

6 files changed

+20
-8
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ commands:
182182
JEST_JUNIT_OUTPUT_DIR: "<< parameters.log_dir >>/<< parameters.env >>/test-results/junit"
183183
SCREENSHOT_DIR: "<< parameters.log_dir >>/<< parameters.env >>/test-results/failure-screenshots"
184184
ENVIRONMENT: << parameters.env >>
185-
no_output_timeout: 25m
185+
no_output_timeout: 30m
186186
command: |
187187
mkdir -p ${SCREENSHOT_DIR}
188188
TESTS_TO_RUN=$(yarn run jest --listTests | sed "s|$(pwd)/||")

.circleci/wait-for-job-finish.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
# Exit script if you try to use an uninitialized variable.
44
set -o nounset
55

6-
# Use the error status of the first failure, rather than that of the last item in a pipeline.
7-
set -o pipefail
6+
# Use the error status of the first failure, rather than that of the last item in a pipeline. Also fail explicitly on any exit code.
7+
set -eo pipefail
88

99
counter=0
1010

integration-tests/tests/run-analysis-azure.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ const testRunAnalysisAzure = _.flowRight(
7070
await findElement(page, clickable({ textContains: 'Creating' }));
7171

7272
// Wait for env to finish creating, or break early on error
73-
await findElement(page, clickable({ textContains: 'Running' }), { timeout: Millis.ofMinutes(20) });
73+
await findElement(page, clickable({ textContains: 'Running' }), { timeout: Millis.ofMinutes(25) });
7474

7575
// Here, we dismiss any errors or popups. Its common another areas of the application might throw an error or have pop-ups.
7676
// However, as long as we have a running runtime (which the previous section asserts), the pop-up is not relevant

src/components/ModalDrawer.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ const drawer = {
3939
}),
4040
} as const;
4141

42-
export interface ModalDrawerProps extends RModal.Props {
42+
export interface ModalDrawerProps
43+
extends Omit<RModal.Props, 'aria' | 'ariaHideApp' | 'isOpen' | 'parentSelector' | 'style' | 'onRequestClose'> {
44+
'aria-label'?: string;
45+
'aria-labelledby'?: string;
4346
children?: ReactNode;
4447
isOpen: boolean;
4548
width?: CSSProperties['width'];
@@ -54,7 +57,9 @@ const ModalDrawer = (props: ModalDrawerProps): ReactNode => {
5457
{(transitionState) => (
5558
<RModal
5659
aria={{
57-
// @ts-expect-error TODO: Is this valid?
60+
// Type definitions do not include all ARIA attributes (label and hidden), but react-modal does pass them through.
61+
// https://github.com/reactjs/react-modal/blob/a275399059cc37aa02cac7e9385512b02ff5cf15/src/components/ModalPortal.js#L408
62+
// @ts-expect-error
5863
label: props['aria-label'],
5964
labelledby: props['aria-labelledby'],
6065
modal: true,

src/registration/terms-of-service/TermsOfServicePage.test.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@ import { act, fireEvent, screen } from '@testing-library/react';
33
import { h } from 'react-hyperscript-helpers';
44
import { Ajax } from 'src/libs/ajax';
55
import { SamUserTermsOfServiceDetails } from 'src/libs/ajax/TermsOfService';
6-
import { SamUserAttributes, SamUserCombinedStateResponse } from 'src/libs/ajax/User';
6+
import {
7+
SamUserAllowances,
8+
SamUserAttributes,
9+
SamUserCombinedStateResponse,
10+
SamUserResponse,
11+
} from 'src/libs/ajax/User';
712
import { AuthState, authStore } from 'src/libs/state';
813
import { TermsOfServicePage } from 'src/registration/terms-of-service/TermsOfServicePage';
914
import { asMockedFn, renderWithAppContexts as render } from 'src/testing/test-utils';

src/workspace-data/Data.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,9 @@ const DataTableActions = ({
355355
downloadForm.current.submit();
356356
} else if (dataProvider.features.supportsTsvAjaxDownload) {
357357
// TODO: this overrides the filename specified by the WDS API. Is that ok?
358-
dataProvider.downloadTsv(signal, tableName).then((blob) => FileSaver.saveAs(blob, `${tableName}.tsv`));
358+
Utils.withBusyState(setLoading, dataProvider.downloadTsv)(signal, tableName).then((blob) =>
359+
FileSaver.saveAs(blob, `${tableName}.tsv`)
360+
);
359361
}
360362
Ajax().Metrics.captureEvent(Events.workspaceDataDownload, {
361363
...extractWorkspaceDetails(workspace.workspace),

0 commit comments

Comments
 (0)