feat: Make file input public #10723
dry-run.yml
on: pull_request
dry-run
/
Create build tree
2s
dry-run
/
Build board components
1m 56s
dry-run
/
Build code view components
1m 1s
dry-run
/
Build chat components
1m 7s
Matrix: dry-run / Components accessibility tests shards
Matrix: dry-run / Components integration tests shards
dry-run
/
Components unit tests
3m 59s
dry-run
/
Components motion tests
1m 7s
dry-run
/
Demos tests
6m 57s
dry-run
/
Components accessibility tests
0s
dry-run
/
Components integration tests
0s
Annotations
4 errors and 17 warnings
test-utils selectors:
src/__tests__/snapshot-tests/test-utils-selectors.test.tsx#L32
expect(received).toMatchSnapshot()
Snapshot name: `test-utils selectors 1`
- Snapshot - 2
+ Received + 0
@@ -333,12 +333,10 @@
"awsui_control_1wepg",
"awsui_description_1p2cx",
"awsui_description_1wepg",
"awsui_disabled_15o6u",
"awsui_dropdown_qwoo0",
- "awsui_file-input-button_181f9",
- "awsui_file-input_181f9",
"awsui_file-option-last-modified_ofwwb",
"awsui_file-option-name_ofwwb",
"awsui_file-option-size_ofwwb",
"awsui_file-option-thumbnail_ofwwb",
"awsui_filter-container_z5mul",
at Object.<anonymous> (src/__tests__/snapshot-tests/test-utils-selectors.test.tsx:32:32)
|
Generate test utils ElementWrapper › dom ElementWrapper matches the snapshot:
src/__tests__/snapshot-tests/test-utils-wrappers.test.tsx#L21
expect(received).toMatchSnapshot()
Snapshot name: `Generate test utils ElementWrapper dom ElementWrapper matches the snapshot 1`
- Snapshot - 0
+ Received + 11
@@ -112,10 +112,14 @@
import ExpandableSectionWrapper from './expandable-section';
export { ExpandableSectionWrapper };
+ import FileInputWrapper from './file-input';
+ export { FileInputWrapper };
+
+
import FileUploadWrapper from './file-upload';
export { FileUploadWrapper };
import FlashbarWrapper from './flashbar';
@@ -333,10 +337,11 @@
findDateInput(selector?: string): DateInputWrapper | null;
findDatePicker(selector?: string): DatePickerWrapper | null;
findDateRangePicker(selector?: string): DateRangePickerWrapper | null;
findDrawer(selector?: string): DrawerWrapper | null;
findExpandableSection(selector?: string): ExpandableSectionWrapper | null;
+ findFileInput(selector?: string): FileInputWrapper | null;
findFileUpload(selector?: string): FileUploadWrapper | null;
findFlashbar(selector?: string): FlashbarWrapper | null;
findForm(selector?: string): FormWrapper | null;
findFormField(selector?: string): FormFieldWrapper | null;
findGrid(selector?: string): GridWrapper | null;
@@ -550,10 +555,16 @@
ElementWrapper.prototype.findExpandableSection = function(selector) {
const rootSelector = `.${ExpandableSectionWrapper.rootSelector}`;
// casting to 'any' is needed to avoid this issue with generics
// https://github.com/microsoft/TypeScript/issues/29132
return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, ExpandableSectionWrapper);
+ };
+ ElementWrapper.prototype.findFileInput = function(selector) {
+ const rootSelector = `.${FileInputWrapper.rootSelector}`;
+ // casting to 'any' is needed to avoid this issue with generics
+ // https://github.com/microsoft/TypeScript/issues/29132
+ return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, FileInputWrapper);
};
ElementWrapper.prototype.findFileUpload = function(selector) {
const rootSelector = `.${FileUploadWrapper.rootSelector}`;
// casting to 'any' is needed to avoid this issue with generics
// https://github.com/microsoft/TypeScript/issues/29132
at src/__tests__/snapshot-tests/test-utils-wrappers.test.tsx:21:24
|
Generate test utils ElementWrapper › selectors ElementWrapper matches the snapshot:
src/__tests__/snapshot-tests/test-utils-wrappers.test.tsx#L21
expect(received).toMatchSnapshot()
Snapshot name: `Generate test utils ElementWrapper selectors ElementWrapper matches the snapshot 1`
- Snapshot - 0
+ Received + 11
@@ -112,10 +112,14 @@
import ExpandableSectionWrapper from './expandable-section';
export { ExpandableSectionWrapper };
+ import FileInputWrapper from './file-input';
+ export { FileInputWrapper };
+
+
import FileUploadWrapper from './file-upload';
export { FileUploadWrapper };
import FlashbarWrapper from './flashbar';
@@ -333,10 +337,11 @@
findDateInput(selector?: string): DateInputWrapper;
findDatePicker(selector?: string): DatePickerWrapper;
findDateRangePicker(selector?: string): DateRangePickerWrapper;
findDrawer(selector?: string): DrawerWrapper;
findExpandableSection(selector?: string): ExpandableSectionWrapper;
+ findFileInput(selector?: string): FileInputWrapper;
findFileUpload(selector?: string): FileUploadWrapper;
findFlashbar(selector?: string): FlashbarWrapper;
findForm(selector?: string): FormWrapper;
findFormField(selector?: string): FormFieldWrapper;
findGrid(selector?: string): GridWrapper;
@@ -550,10 +555,16 @@
ElementWrapper.prototype.findExpandableSection = function(selector) {
const rootSelector = `.${ExpandableSectionWrapper.rootSelector}`;
// casting to 'any' is needed to avoid this issue with generics
// https://github.com/microsoft/TypeScript/issues/29132
return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, ExpandableSectionWrapper);
+ };
+ ElementWrapper.prototype.findFileInput = function(selector) {
+ const rootSelector = `.${FileInputWrapper.rootSelector}`;
+ // casting to 'any' is needed to avoid this issue with generics
+ // https://github.com/microsoft/TypeScript/issues/29132
+ return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, FileInputWrapper);
};
ElementWrapper.prototype.findFileUpload = function(selector) {
const rootSelector = `.${FileUploadWrapper.rootSelector}`;
// casting to 'any' is needed to avoid this issue with generics
// https://github.com/microsoft/TypeScript/issues/29132
at src/__tests__/snapshot-tests/test-utils-wrappers.test.tsx:21:24
|
dry-run / Components unit tests
Process completed with exit code 1.
|
dry-run / Build code view components
Prop "id" is forbidden on Components
|
dry-run / Build code view components
Prop "className" is forbidden on Components
|
dry-run / Build code view components
Unexpected any. Specify a different type
|
dry-run / Build code view components
Unexpected any. Specify a different type
|
dry-run / Build code view components
Unexpected any. Specify a different type
|
dry-run / Build chat components
Prop "id" is forbidden on Components
|
dry-run / Build chat components
Prop "id" is forbidden on Components
|
dry-run / Build chat components
Prop "id" is forbidden on Components
|
dry-run / Build chat components
Prop "id" is forbidden on Components
|
dry-run / Build chat components
Prop "className" is forbidden on Components
|
dry-run / Build chat components
Unexpected any. Specify a different type
|
dry-run / Build chat components
Unexpected any. Specify a different type
|
dry-run / Build chat components
Unexpected any. Specify a different type
|
dry-run / Build chat components
Unexpected any. Specify a different type
|
dry-run / Build chat components
Unexpected any. Specify a different type
|
RETRY 1: should expand and shrink a column correctly:
src/table/__integ__/with-frame.test.ts#L44
expect(received).toBe(expected) // Object.is equality
Expected: 170
Received: 120
at src/table/__integ__/with-frame.test.ts:44:21
at TablePage.runInsideIframe (node_modules/@cloudscape-design/browser-test-tools/page-objects/base.js:232:9)
at src/table/__integ__/with-frame.test.ts:39:5
at src/table/__integ__/with-frame.test.ts:32:5
at Object.<anonymous> (node_modules/@cloudscape-design/browser-test-tools/use-browser.js:36:13)
|
dry-run / Demos tests
No files were found with the provided path: lib/*.tgz. No artifacts will be uploaded.
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
cloudscape-design-board-components
|
274 KB |
|
cloudscape-design-chat-components
|
54.1 KB |
|
cloudscape-design-code-view
|
31.7 KB |
|
cloudscape-design-components
|
7.74 MB |
|