Skip to content

Commit

Permalink
Update failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
farres1 committed Apr 15, 2024
1 parent 468c698 commit 334a049
Show file tree
Hide file tree
Showing 9 changed files with 93 additions and 110 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ exports[`CollapsibleEditor should render 1`] = `
controls={
Object {
"bold": true,
"emphasis": true,
"link": true,
"list": true,
"piping": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ exports[`IntroductionEditor should render 1`] = `
autoFocus={false}
controls={
Object {
"bold": true,
"emphasis": true,
"heading": true,
"highlight": true,
"link": true,
"piping": true,
}
Expand Down Expand Up @@ -178,7 +177,6 @@ exports[`IntroductionEditor should render 1`] = `
controls={
Object {
"bold": true,
"emphasis": true,
"link": true,
"list": true,
"piping": true,
Expand Down Expand Up @@ -281,7 +279,7 @@ exports[`IntroductionEditor should render 1`] = `
autoFocus={false}
controls={
Object {
"emphasis": true,
"highlight": true,
"piping": true,
}
}
Expand All @@ -303,7 +301,6 @@ exports[`IntroductionEditor should render 1`] = `
controls={
Object {
"bold": true,
"emphasis": true,
"link": true,
"list": true,
"piping": true,
Expand Down Expand Up @@ -348,7 +345,7 @@ exports[`IntroductionEditor should render 1`] = `
autoFocus={false}
controls={
Object {
"emphasis": true,
"highlight": true,
"piping": true,
}
}
Expand All @@ -370,7 +367,6 @@ exports[`IntroductionEditor should render 1`] = `
controls={
Object {
"bold": true,
"emphasis": true,
"link": true,
"list": true,
"piping": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ exports[`MetaEditor should be able to display both deleted metadata and deleted
autoFocus={false}
controls={
Object {
"emphasis": true,
"highlight": true,
"piping": true,
}
}
Expand Down Expand Up @@ -55,7 +55,7 @@ exports[`MetaEditor should display the correct error message when piping answer
autoFocus={false}
controls={
Object {
"emphasis": true,
"highlight": true,
"piping": true,
}
}
Expand Down Expand Up @@ -96,7 +96,7 @@ exports[`MetaEditor should display the correct error message when piping answer
autoFocus={false}
controls={
Object {
"emphasis": true,
"highlight": true,
"piping": true,
}
}
Expand Down Expand Up @@ -137,7 +137,7 @@ exports[`MetaEditor should display the correct error message when the definition
autoFocus={false}
controls={
Object {
"emphasis": true,
"highlight": true,
"piping": true,
}
}
Expand Down Expand Up @@ -174,7 +174,7 @@ exports[`MetaEditor should display the correct error message when the definition
autoFocus={false}
controls={
Object {
"emphasis": true,
"highlight": true,
"piping": true,
}
}
Expand Down Expand Up @@ -211,7 +211,7 @@ exports[`MetaEditor should display the correct error message when the descriptio
autoFocus={false}
controls={
Object {
"emphasis": true,
"highlight": true,
"piping": true,
}
}
Expand Down Expand Up @@ -248,7 +248,7 @@ exports[`MetaEditor should display the correct error message when the includes/e
autoFocus={false}
controls={
Object {
"emphasis": true,
"highlight": true,
"piping": true,
}
}
Expand Down Expand Up @@ -285,7 +285,7 @@ exports[`MetaEditor should display the correct error message when the title is m
autoFocus={false}
controls={
Object {
"emphasis": true,
"highlight": true,
"piping": true,
}
}
Expand Down Expand Up @@ -326,7 +326,7 @@ exports[`MetaEditor should render 1`] = `
autoFocus={false}
controls={
Object {
"emphasis": true,
"highlight": true,
"piping": true,
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ exports[`Editor Editor Component should autoFocus the title when there is not on
autoFocus={true}
controls={
Object {
"bold": true,
"emphasis": true,
"highlight": true,
"piping": true,
}
}
Expand Down Expand Up @@ -88,8 +87,7 @@ exports[`Editor Editor Component should render 1`] = `
autoFocus={false}
controls={
Object {
"bold": true,
"emphasis": true,
"highlight": true,
"piping": true,
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ exports[`SectionEditor should render 1`] = `
autoFocus={false}
controls={
Object {
"emphasis": true,
"highlight": true,
"piping": true,
}
}
Expand Down Expand Up @@ -152,7 +152,7 @@ exports[`SectionEditor should render 2`] = `
autoFocus={false}
controls={
Object {
"emphasis": true,
"highlight": true,
"piping": true,
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const content = `
<ul>
<li>Regular</li>
<li><strong>Bold</strong></li>
<li><em>Emphasis</em></li>
<li><strong>Highlight</strong></li>
</ul>
`;

Expand All @@ -43,6 +43,10 @@ describe("components/RichTextEditor", function () {
id: "test",
name: "test-name",
testSelector: "test-selector-foo",
controls: {
bold: true,
highlight: false,
},
};
editorFocus = jest.fn();
editorInstance = {
Expand Down
2 changes: 1 addition & 1 deletion eq-author/src/components/RichTextEditor/Toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const styleButtons = [
title: "Highlight",
icon: iconEmphasis,
type: STYLE_INLINE,
style: "BOLD",
style: "BOLD", // BOLD style wraps text in strong tags - used for highlighting
},
];

Expand Down
Loading

0 comments on commit 334a049

Please sign in to comment.