Logo: Relish

  1. Sign in

Project: Body-processing

Body processing

  • @BodyProcessing
Scenarios
Scenario Outline
Given
I have body text in Methode XML format containing tagname
When
I transform it into our Content Store format
Then
the start tag tagname should have been removed
And
the end tag tagname should have been removed
But
the text inside should not have been removed
Examples:
tagname
Scenario Outline
Given
I have body text in Methode XML format containing tagname
When
I transform it into our Content Store format
Then
the start tag tagname should have been removed
And
the end tag tagname should have been removed
And
the text inside should have been removed
Examples:
tagname
applet
audio
base
basefont
button
canvas
caption
col
colgroup
command
datalist
del
dir
embed
fieldset
form
frame
frameset
head
iframe
input
keygen
label
legend
link
map
menu
meta
nav
noframes
noscript
object
optgroup
option
output
param
progress
rp
rt
ruby
s
script
select
source
strike
style
table
tbody
td
textarea
tfoot
th
thead
tr
track
video
wbr
byline
editor-choice
headline
inlineDwc
interactive-chart
lead-body
lead-text
ln
photo
photo-caption
photo-group
plainHtml
promo-box
promo-headline
promo-image
promo-intro
promo-link
promo-title
promobox-body
pull-quote
pull-quote-header
pull-quote-text
readthrough
short-body
skybox-body
stories
story
strap
videoObject
videoPlayer
web-alt-picture
web-background-news
web-background-news-header
web-background-news-text
web-inline-picture
web-picture
web-pull-quote
web-pull-quote-source
web-pull-quote-text
web-skybox-picture
web-subhead
web-thumbnail
xref
xrefs
Scenario Outline
Given
I have body text in Methode XML format containing tagname
When
I transform it into our Content Store format
Then
the start tag tagname should be present
And
the end tag tagname should be present
And
the text inside should not have been removed
Examples:
tagname
strong
em
sub
sup
h1
h2
h3
h4
h5
h6
p
ol
ul
li
Scenario Outline
Given
I have body text in Methode XML format containing tagname
When
I transform it into our Content Store format
Then
the start tag tagname should have been replaced by replacement
And
the end tag tagname should have been replaced by replacement
And
the text inside should not have been removed
Examples:
tagname replacement
b strong
i em
Line Breaks
Given
I have body text in Methode XML like before
When
I transform it into our Content Store format
Then
the body should be like after
Examples:
before after

Blah
Blah

Blah
Blah

Empty Paragraphs
Given
I have body text in Methode XML like before
When
I transform it into our Content Store format
Then
the body should be like after
Examples:
before after

Some text

More text

Some text

More text

Some text

this xref is removed leaving an empty para

More text

Some text

More text

Handle strikeouts
Given
I have body text in Methode XML like before
When
I transform it into our Content Store format
Then
the body should be like after
Examples:
before after

Para with no strikeout

Para with strikeout

Para with no strikeout

Para containing a strikeout and other text

Para containing other text

Para with no strikeout

Para with strikeout

Para with no strikeout

Para containing a strikeout and other text

Para containing other text

Para with no strikeout

Para with strikeout

Para with no strikeout

Para containing a strikeout and other text

Para containing other text

Para with no strikeout

Para with strikeout

Para with no strikeout

Para containing a strikeout and other text

Para containing other text

Para with no strikeout

Para with strikeout

Para with no strikeout

Para containing a strikeout and other text

Para containing other text

Para with no strikeout

Para with strikeout

Para with no strikeout

Para containing a strikeout and other text

Para containing other text

Handle non-strikeouts
Given
I have body text in Methode XML like before
When
I transform it into our Content Store format
Then
the body should be like after
Examples:
before after

Para 1

Para 2

Para 1

Para 2

Part 1 containing text

Part 1 containing text

Comments
Given
I have body text in Methode XML like before
When
I transform it into our Content Store format
Then
the body should be like after
Examples:
before after
Sentence ending. Next sentence Sentence ending. Next sentence
Empty body
Given
I have body text in Methode XML like before
When
I transform it into our Content Store format
Then
the body should be like after
Examples:
before after
Entity translation to unicode
Given
an entity reference entity
When
I transform it into our Content Store format
Then
the entity should be replace by unicode codepoint codepoint
Examples:
entity codepoint
0x20AC
  0x00A0
Namespaces are ignored
Given
I have body text in Methode XML like before
When
I transform it into our Content Store format
Then
the body should be like after
Examples:
before after

Text

Text

Given
I have an "external hyperlink" in a Methode article body like before
When
I transform it into our Content Store format
Then
the hyperlink should be like after
Given
I have a "relative hyperlink" in a Methode article body like before
When
I transform it into our Content Store format
Then
the hyperlink should be like after
Given
I have a "mailto hyperlink" in a Methode article body like before
When
I transform it into our Content Store format
Then
the hyperlink should be like after
Anchors are removed
Given
I have an "anchor" in a Methode article body like before
When
I transform it into our Content Store format
Then
the hyperlink should be like after
Examples:
before after

1. google.com

1. google.com

3. example.com

3. example.com

4. example.comFoo

Foo

5. example.comFoo

5. example.comFoo

1. google.com

1. google.com

2. example.com

2. example.com

4. example.comFoo

Foo

5. example.comFoo

5. example.comFoo

Given
I have an "link to an anchor" in a Methode article body like before
When
I transform it into our Content Store format
Then
the hyperlink should be like after
Examples:
before after

1. google.com

1. google.com

2. example.com

2. example.com

4. example.comFoo

Foo

5. example.comFoo

5. example.comFoo

Text

Text

Images are removed
Given
I have an "img" in a Methode article body like before
When
I transform it into our Content Store format
Then
the body should be like after
Examples:
before after

Embedded image.Saloua Raouda Choucair's ‘Composition'

Embedded image.

Given
I have an "internal link" in a Methode article body like before
When
I transform it into our Content Store format
Then
the body should be like after

Last published about 5 years ago by Sarah Wells.