Skip to content

Commit

Permalink
Update snapshots due to mocking Aztec
Browse files Browse the repository at this point in the history
  • Loading branch information
fluiddot committed Oct 15, 2021
1 parent 6263857 commit 2114925
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 366 deletions.
Expand Up @@ -88,57 +88,35 @@ exports[`Audio block renders audio block error state without crashing 1`] = `
}
>
<View>
<RCTAztecView
accessible={true}
<TextInput
accessibilityLabel="Text input. Empty"
activeFormats={Array []}
allowFontScaling={true}
blockType={
Object {
"tag": "p",
}
}
deleteEnter={true}
disableEditingMenu={false}
focusable={true}
fontFamily="serif"
fontSize={14}
isMultiline={false}
maxImagesWidth={200}
onBackspace={[Function]}
onBlur={[Function]}
onChange={[Function]}
onClick={[Function]}
onContentSizeChange={[Function]}
onEnter={[Function]}
onFocus={[Function]}
onHTMLContentWithCursor={[Function]}
onKeyDown={[Function]}
onPaste={[Function]}
onResponderGrant={[Function]}
onResponderMove={[Function]}
onResponderRelease={[Function]}
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onSelectionChange={[Function]}
onStartShouldSetResponder={[Function]}
placeholder="Add caption"
placeholderTextColor="gray"
style={
Object {
"backgroundColor": undefined,
"maxWidth": undefined,
"minHeight": 0,
}
}
text={
Object {
"eventCount": undefined,
"linkTextColor": undefined,
"selection": null,
"text": "",
}
}
rejectResponderTermination={true}
textAlign="center"
triggerKeyCodes={Array []}
underlineColorAndroid="transparent"
value=""
/>
</View>
</View>
Expand Down Expand Up @@ -257,57 +235,35 @@ exports[`Audio block renders audio file without crashing 1`] = `
}
>
<View>
<RCTAztecView
accessible={true}
<TextInput
accessibilityLabel="Text input. Empty"
activeFormats={Array []}
allowFontScaling={true}
blockType={
Object {
"tag": "p",
}
}
deleteEnter={true}
disableEditingMenu={false}
focusable={true}
fontFamily="serif"
fontSize={14}
isMultiline={false}
maxImagesWidth={200}
onBackspace={[Function]}
onBlur={[Function]}
onChange={[Function]}
onClick={[Function]}
onContentSizeChange={[Function]}
onEnter={[Function]}
onFocus={[Function]}
onHTMLContentWithCursor={[Function]}
onKeyDown={[Function]}
onPaste={[Function]}
onResponderGrant={[Function]}
onResponderMove={[Function]}
onResponderRelease={[Function]}
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onSelectionChange={[Function]}
onStartShouldSetResponder={[Function]}
placeholder="Add caption"
placeholderTextColor="gray"
style={
Object {
"backgroundColor": undefined,
"maxWidth": undefined,
"minHeight": 0,
}
}
text={
Object {
"eventCount": undefined,
"linkTextColor": undefined,
"selection": null,
"text": "",
}
}
rejectResponderTermination={true}
textAlign="center"
triggerKeyCodes={Array []}
underlineColorAndroid="transparent"
value=""
/>
</View>
</View>
Expand Down
138 changes: 24 additions & 114 deletions packages/block-library/src/file/test/__snapshots__/edit.native.js.snap
Expand Up @@ -49,57 +49,35 @@ exports[`File block renders file error state without crashing 1`] = `
}
>
<View>
<RCTAztecView
accessible={true}
<TextInput
accessibilityLabel="Text input. <p>File name</p>"
activeFormats={Array []}
allowFontScaling={true}
blockType={
Object {
"tag": "p",
}
}
deleteEnter={true}
disableEditingMenu={false}
focusable={true}
fontFamily="serif"
fontSize={16}
isMultiline={false}
maxImagesWidth={200}
onBackspace={[Function]}
onBlur={[Function]}
onChange={[Function]}
onClick={[Function]}
onContentSizeChange={[Function]}
onEnter={[Function]}
onFocus={[Function]}
onHTMLContentWithCursor={[Function]}
onKeyDown={[Function]}
onPaste={[Function]}
onResponderGrant={[Function]}
onResponderMove={[Function]}
onResponderRelease={[Function]}
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onSelectionChange={[Function]}
onStartShouldSetResponder={[Function]}
placeholder="File name"
placeholderTextColor="gray"
style={
Object {
"backgroundColor": undefined,
"maxWidth": undefined,
"minHeight": 0,
}
}
text={
Object {
"eventCount": undefined,
"linkTextColor": undefined,
"selection": null,
"text": "<p>File name</p>",
}
}
rejectResponderTermination={true}
textAlign="left"
triggerKeyCodes={Array []}
underlineColorAndroid="transparent"
value="<p>File name</p>"
/>
</View>
<View>
Expand Down Expand Up @@ -141,9 +119,10 @@ exports[`File block renders file error state without crashing 1`] = `
}
>
<View>
<RCTAztecView
accessible={true}
<TextInput
accessibilityLabel="Text input. <p>Download</p>"
activeFormats={Array []}
allowFontScaling={true}
blockType={
Object {
"tag": "p",
Expand All @@ -152,50 +131,26 @@ exports[`File block renders file error state without crashing 1`] = `
color="white"
deleteEnter={true}
disableEditingMenu={false}
focusable={true}
fontFamily="serif"
fontSize={16}
isMultiline={false}
maxImagesWidth={200}
minWidth={40}
onBackspace={[Function]}
onBlur={[Function]}
onChange={[Function]}
onClick={[Function]}
onContentSizeChange={[Function]}
onEnter={[Function]}
onFocus={[Function]}
onHTMLContentWithCursor={[Function]}
onKeyDown={[Function]}
onPaste={[Function]}
onResponderGrant={[Function]}
onResponderMove={[Function]}
onResponderRelease={[Function]}
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onSelectionChange={[Function]}
onStartShouldSetResponder={[Function]}
placeholder=""
placeholderTextColor="white"
rejectResponderTermination={true}
selectionColor="white"
style={
Object {
"backgroundColor": undefined,
"color": "white",
"maxWidth": 80,
"minHeight": 0,
}
}
text={
Object {
"eventCount": undefined,
"linkTextColor": undefined,
"selection": null,
"text": "<p>Download</p>",
}
}
textAlign="center"
triggerKeyCodes={Array []}
underlineColorAndroid="transparent"
value="<p>Download</p>"
/>
</View>
</View>
Expand Down Expand Up @@ -252,57 +207,35 @@ exports[`File block renders file without crashing 1`] = `
}
>
<View>
<RCTAztecView
accessible={true}
<TextInput
accessibilityLabel="Text input. <p>File name</p>"
activeFormats={Array []}
allowFontScaling={true}
blockType={
Object {
"tag": "p",
}
}
deleteEnter={true}
disableEditingMenu={false}
focusable={true}
fontFamily="serif"
fontSize={16}
isMultiline={false}
maxImagesWidth={200}
onBackspace={[Function]}
onBlur={[Function]}
onChange={[Function]}
onClick={[Function]}
onContentSizeChange={[Function]}
onEnter={[Function]}
onFocus={[Function]}
onHTMLContentWithCursor={[Function]}
onKeyDown={[Function]}
onPaste={[Function]}
onResponderGrant={[Function]}
onResponderMove={[Function]}
onResponderRelease={[Function]}
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onSelectionChange={[Function]}
onStartShouldSetResponder={[Function]}
placeholder="File name"
placeholderTextColor="gray"
style={
Object {
"backgroundColor": undefined,
"maxWidth": undefined,
"minHeight": 0,
}
}
text={
Object {
"eventCount": undefined,
"linkTextColor": undefined,
"selection": null,
"text": "<p>File name</p>",
}
}
rejectResponderTermination={true}
textAlign="left"
triggerKeyCodes={Array []}
underlineColorAndroid="transparent"
value="<p>File name</p>"
/>
</View>
</View>
Expand All @@ -323,9 +256,10 @@ exports[`File block renders file without crashing 1`] = `
}
>
<View>
<RCTAztecView
accessible={true}
<TextInput
accessibilityLabel="Text input. <p>Download</p>"
activeFormats={Array []}
allowFontScaling={true}
blockType={
Object {
"tag": "p",
Expand All @@ -334,50 +268,26 @@ exports[`File block renders file without crashing 1`] = `
color="white"
deleteEnter={true}
disableEditingMenu={false}
focusable={true}
fontFamily="serif"
fontSize={16}
isMultiline={false}
maxImagesWidth={200}
minWidth={40}
onBackspace={[Function]}
onBlur={[Function]}
onChange={[Function]}
onClick={[Function]}
onContentSizeChange={[Function]}
onEnter={[Function]}
onFocus={[Function]}
onHTMLContentWithCursor={[Function]}
onKeyDown={[Function]}
onPaste={[Function]}
onResponderGrant={[Function]}
onResponderMove={[Function]}
onResponderRelease={[Function]}
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onSelectionChange={[Function]}
onStartShouldSetResponder={[Function]}
placeholder=""
placeholderTextColor="white"
rejectResponderTermination={true}
selectionColor="white"
style={
Object {
"backgroundColor": undefined,
"color": "white",
"maxWidth": 80,
"minHeight": 0,
}
}
text={
Object {
"eventCount": undefined,
"linkTextColor": undefined,
"selection": null,
"text": "<p>Download</p>",
}
}
textAlign="center"
triggerKeyCodes={Array []}
underlineColorAndroid="transparent"
value="<p>Download</p>"
/>
</View>
</View>
Expand Down

0 comments on commit 2114925

Please sign in to comment.