2014-03-27 05:11:50 +01:00
Feature : Preview navigation
2018-07-13 05:09:14 +02:00
A s a C M S u s e r
I c a n n a v i g a t e a s u b s i t e i n t h e p r e v i e w p a n e
I n o r d e r t o p r e v i e w m y c o n t e n t
2014-03-27 05:11:50 +01:00
2018-07-13 05:09:14 +02:00
Background :
2021-11-12 00:38:44 +01:00
Given a " s u b s i t e " " M y S u b s i t e "
And a " p a g e " " M y p a g e " w i t h " U R L S e g m e n t " = " m y - p a g e " , " C o n t e n t " = " M y p a g e c o n t e n t <a name='aname'> a n a m e </a> <a href='[sitetree_link,id=5]'> a h r e f </a> " a n d " S u b s i t e I D " = " 1 "
And a " p a g e " " O t h e r p a g e " w i t h " U R L S e g m e n t " = " o t h e r - p a g e " , " C o n t e n t " = " O t h e r p a g e c o n t e n t <a href='[sitetree_link,id=4]'> G o t o m y p a g e </a> " a n d " S u b s i t e I D " = " 1 "
2022-09-05 04:01:12 +02:00
And t h e " g r o u p " " E D I T O R " h a s p e r m i s s i o n s " A c c e s s t o ' P a g e s ' s e c t i o n " a n d " A c c e s s t o ' S u b s i t e s ' s e c t i o n "
And I a m l o g g e d i n a s a m e m b e r o f " E D I T O R " g r o u p
2014-03-27 05:11:50 +01:00
2018-07-13 05:09:14 +02:00
@javascript
Scenario : I can navigate the subsite preview
2021-11-12 00:38:44 +01:00
When I g o t o " / a d m i n / p a g e s "
And I s e l e c t " M y S u b s i t e " f r o m " S u b s i t e s S e l e c t "
And I c l i c k o n " M y p a g e " i n t h e t r e e
And I p r e s s t h e " P u b l i s h " b u t t o n
And I c l i c k o n " O t h e r p a g e " i n t h e t r e e
And I p r e s s t h e " P u b l i s h " b u t t o n
2018-07-13 05:09:14 +02:00
And I c l i c k o n " M y p a g e " i n t h e t r e e
And I s e t t h e C M S m o d e t o " P r e v i e w m o d e "
And I f o l l o w " a h r e f " i n p r e v i e w
And I w a i t f o r 1 s e c o n d
Then t h e p r e v i e w c o n t a i n s " O t h e r p a g e c o n t e n t "
# We are already on the second page, follow a link to return to first one.
And I f o l l o w " G o t o m y p a g e " i n p r e v i e w
And I w a i t f o r 1 s e c o n d
Then t h e p r e v i e w c o n t a i n s " M y p a g e c o n t e n t "