File tree 5 files changed +14
-7
lines changed
5 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ commands:
182
182
JEST_JUNIT_OUTPUT_DIR : " << parameters.log_dir >>/<< parameters.env >>/test-results/junit"
183
183
SCREENSHOT_DIR : " << parameters.log_dir >>/<< parameters.env >>/test-results/failure-screenshots"
184
184
ENVIRONMENT : << parameters.env >>
185
- no_output_timeout : 25m
185
+ no_output_timeout : 30m
186
186
command : |
187
187
mkdir -p ${SCREENSHOT_DIR}
188
188
TESTS_TO_RUN=$(yarn run jest --listTests | sed "s|$(pwd)/||")
Original file line number Diff line number Diff line change 3
3
# Exit script if you try to use an uninitialized variable.
4
4
set -o nounset
5
5
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
8
8
9
9
counter=0
10
10
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ const testRunAnalysisAzure = _.flowRight(
70
70
await findElement ( page , clickable ( { textContains : 'Creating' } ) ) ;
71
71
72
72
// 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 ) } ) ;
74
74
75
75
// Here, we dismiss any errors or popups. Its common another areas of the application might throw an error or have pop-ups.
76
76
// However, as long as we have a running runtime (which the previous section asserts), the pop-up is not relevant
Original file line number Diff line number Diff line change @@ -39,7 +39,10 @@ const drawer = {
39
39
} ) ,
40
40
} as const ;
41
41
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 ;
43
46
children ?: ReactNode ;
44
47
isOpen : boolean ;
45
48
width ?: CSSProperties [ 'width' ] ;
@@ -54,7 +57,9 @@ const ModalDrawer = (props: ModalDrawerProps): ReactNode => {
54
57
{ ( transitionState ) => (
55
58
< RModal
56
59
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
58
63
label : props [ 'aria-label' ] ,
59
64
labelledby : props [ 'aria-labelledby' ] ,
60
65
modal : true ,
Original file line number Diff line number Diff line change @@ -355,7 +355,9 @@ const DataTableActions = ({
355
355
downloadForm . current . submit ( ) ;
356
356
} else if ( dataProvider . features . supportsTsvAjaxDownload ) {
357
357
// 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
+ ) ;
359
361
}
360
362
Ajax ( ) . Metrics . captureEvent ( Events . workspaceDataDownload , {
361
363
...extractWorkspaceDetails ( workspace . workspace ) ,
You can’t perform that action at this time.
0 commit comments