2019-12-17 18:21:49 +08:00
Feature : Invite people to SciNote
A s a n o w n e r o f a t e a m
W a n t t o a d d n e w U s e r t o m y t e a m t h r o u g h o u t t h e S c i N o t e
2020-07-06 20:52:42 +08:00
Background :
Given d e f a u l t s c r e e n s i z e
Given t h e f o l l o w i n g u s e r s a r e r e g i s t e r e d :
| n a m e | e m a i l | p a s s w o r d | t e a m | r o l e |
| K a r l i N o v a k | n o n a d m i n @ m y o r g . c o m | a s d f 1 2 4 3 | B i o S i s t e m i k a P r o c e s s | a d m i n |
| M a r i j a N o v a k | m a r i j a @ m y o r g . c o m | a s d f 1 2 4 3 | C e l l | a d m i n |
2019-12-17 18:21:49 +08:00
#And "nonadmin@myorg.com" is signed in with "asdf1243" - Cannot be used here if you want to access "Sign up" page
2020-07-06 20:52:42 +08:00
@javascript
Scenario : Successful Add team member1
Given " n o n a d m i n @ m y o r g . c o m " i s s i g n e d i n w i t h " a s d f 1 2 4 3 "
And S e t t i n g s p a g e o f B i o S i s t e m i k a P r o c e s s t e a m o f a K a r l i N o v a k u s e r
And I c l i c k " A d d t e a m m e m b e r s " b u t t o n
And I f i l l b o o t s r a p t a g s i n p u t w i t h " l o j z e @ m y o r g . c o m "
And c o n f i r m w i t h E N T E R k e y t o " . b o o t s t r a p - t a g s i n p u t > i n p u t "
And I c l i c k " I n v i t e U s e r s " b u t t o n
And I c l i c k " A s N o r m a l U s e r s " l i n k
Then I s h o u l d s e e " l o j z e @ m y o r g . c o m - U s e r s u c c e s s f u l l y i n v i t e d t o S c i N o t e a n d t e a m B i o S i s t e m i k a P r o c e s s a s N o r m a l u s e r . " m a s s a g e o f " I n v i t a t i o n r e s u l t s : " m o d a l w i n d o w
And I c l i c k " C l o s e " b u t t o n
And I s h o u l d s e e " p e n d i n g "
And I s h o u l d s e e " l o j z e @ m y o r g . c o m "
2019-12-17 18:21:49 +08:00
2020-07-06 20:52:42 +08:00
@javascript
Scenario : Successful Add team member2
Given " n o n a d m i n @ m y o r g . c o m " i s s i g n e d i n w i t h " a s d f 1 2 4 3 "
And S e t t i n g s p a g e o f B i o S i s t e m i k a P r o c e s s t e a m o f a K a r l i N o v a k u s e r
And I c l i c k " A d d t e a m m e m b e r s " b u t t o n
And I f i l l b o o t s r a p t a g s i n p u t w i t h " m a r i j a @ m y o r g . c o m "
And c o n f i r m w i t h E N T E R k e y t o " . b o o t s t r a p - t a g s i n p u t > i n p u t "
And I c l i c k " I n v i t e U s e r s " b u t t o n
And I c l i c k " A s N o r m a l U s e r s " l i n k
Then I s h o u l d s e e " m a r i j a @ m y o r g . c o m - U s e r w a s a l r e a d y a m e m b e r o f S c i N o t e - s u c c e s s f u l l y i n v i t e d t o t e a m B i o S i s t e m i k a P r o c e s s a s N o r m a l u s e r . " m a s s a g e o f " I n v i t a t i o n r e s u l t s : " m o d a l w i n d o w
And I c l i c k " C l o s e " b u t t o n
And I s h o u l d s e e " a c t i v e "
And I s h o u l d s e e " m a r i j a @ m y o r g . c o m "
2019-12-17 18:21:49 +08:00
2020-07-06 20:52:42 +08:00
@javascript
Scenario : Checking Add team members
Given " n o n a d m i n @ m y o r g . c o m " i s s i g n e d i n w i t h " a s d f 1 2 4 3 "
And S e t t i n g s p a g e o f B i o S i s t e m i k a P r o c e s s t e a m o f a K a r l i N o v a k u s e r
And I c l i c k " A d d t e a m m e m b e r s " b u t t o n
And I f i l l b o o t s r a p t a g s i n p u t w i t h " m a r i j a @ m y o r g . c o m "
And c o n f i r m w i t h E N T E R k e y t o " . b o o t s t r a p - t a g s i n p u t > i n p u t "
And I f i l l b o o t s r a p t a g s i n p u t w i t h " l o j z e @ m y o r g . c o m "
And c o n f i r m w i t h E N T E R k e y t o " . b o o t s t r a p - t a g s i n p u t > i n p u t "
And I c l i c k " I n v i t e U s e r s " b u t t o n
And I c l i c k " A s N o r m a l U s e r s " l i n k
And I c l i c k " C l o s e " b u t t o n
Then I s h o u l d s e e " a c t i v e "
Then I s h o u l d s e e " p e n d i n g "
Then I s h o u l d s e e " m a r i j a @ m y o r g . c o m "
Then I s h o u l d s e e " l o j z e @ m y o r g . c o m "
2019-12-17 18:21:49 +08:00
2020-07-06 20:52:42 +08:00
@javascript
Scenario : Unsuccessful Add team member
Given " n o n a d m i n @ m y o r g . c o m " i s s i g n e d i n w i t h " a s d f 1 2 4 3 "
And S e t t i n g s p a g e o f B i o S i s t e m i k a P r o c e s s t e a m o f a K a r l i N o v a k u s e r
And I c l i c k " A d d t e a m m e m b e r s " b u t t o n
And I f i l l b o o t s r a p t a g s i n p u t w i t h " a n i c a m y o r g . c o m "
And c o n f i r m w i t h E N T E R k e y t o " . b o o t s t r a p - t a g s i n p u t > i n p u t "
And I c l i c k " I n v i t e U s e r s " b u t t o n
And I c l i c k " A s N o r m a l U s e r s " l i n k
Then I s h o u l d s e e " a n i c a m y o r g . c o m - I n v a l i d e m a i l . " m a s s a g e o f " I n v i t a t i o n r e s u l t s : " m o d a l w i n d o w
And I c l i c k " C l o s e " b u t t o n
2019-12-17 18:21:49 +08:00
2020-07-06 20:52:42 +08:00
@javascript
Scenario : Successful Sign up
Given I v i s i t t h e s i g n u p p a g e
And I f i l l i n " K a r o l i n a " i n " # u s e r _ f u l l _ n a m e " f i e l d
And I f i l l i n " m y p a s s w o r d 3 3 3 3 " i n " # u s e r _ p a s s w o r d " f i e l d
And I f i l l i n " k a r o l i n a @ m y o r g . c o m " i n " # u s e r _ e m a i l " f i e l d
And I f i l l i n " m y p a s s w o r d 3 3 3 3 " i n " # u s e r _ p a s s w o r d _ c o n f i r m a t i o n " f i e l d
And I f i l l i n " C i r c l e " i n " # t e a m _ n a m e " f i e l d
And I c l i c k " S i g n u p " b u t t o n
And I s h o u l d s e e " C i r c l e "
Then I s h o u l d s e e " H i , K a r o l i n a "
2019-12-17 18:21:49 +08:00
2020-07-06 20:52:42 +08:00
@javascript
Scenario : Unsuccessful Sign up, Password confirmation does not match
Given I v i s i t t h e s i g n u p p a g e
And I f i l l i n " A g a t a N o v a k o v i c " i n " # u s e r _ f u l l _ n a m e " f i e l d
And I f i l l i n " m y p a s s w o r d 6 6 6 6 " i n " # u s e r _ p a s s w o r d " f i e l d
And I f i l l i n " a g a t a @ m y o r g . c o m " i n " # u s e r _ e m a i l " f i e l d
And I f i l l i n " m y p a s s w o r d 6 6 6 5 " i n " # u s e r _ p a s s w o r d _ c o n f i r m a t i o n " f i e l d
And I f i l l i n " F l o p " i n " # t e a m _ n a m e " f i e l d
And I c l i c k " S i g n u p " b u t t o n
Then I s h o u l d s e e " d o e s n ' t m a t c h P a s s w o r d " e r r o r m e s s a g e
2019-12-17 18:21:49 +08:00
2020-07-06 20:52:42 +08:00
@javascript
Scenario : Unsuccessful Sign up, Team name is missing
Given I v i s i t t h e s i g n u p p a g e
And I f i l l i n " A g a t a N o v a k o v i c " i n " # u s e r _ f u l l _ n a m e " f i e l d
And I f i l l i n " m y p a s s w o r d 6 6 6 6 " i n " # u s e r _ p a s s w o r d " f i e l d
And I f i l l i n " a g a t a @ m y o r g . c o m " i n " # u s e r _ e m a i l " f i e l d
And I f i l l i n " m y p a s s w o r d 6 6 6 6 " i n " # u s e r _ p a s s w o r d _ c o n f i r m a t i o n " f i e l d
And I c l i c k " S i g n u p " b u t t o n
Then I s h o u l d s e e " i s t o o s h o r t ( m i n i m u m i s 2 c h a r a c t e r s ) " e r r o r m e s s a g e
2019-12-17 18:21:49 +08:00