2020-07-09 09:08:47 +00:00
@setupApplicationTest
Feature : dc / intentions / deleting: Deleting items with confirmations, success and error notifications
Background :
Given 1 d a t a c e n t e r m o d e l w i t h t h e v a l u e " d a t a c e n t e r "
2020-09-30 11:33:01 +00:00
And 1 i n t e n t i o n m o d e l f r o m y a m l
2020-07-09 09:08:47 +00:00
- - -
S o u r c e N a m e : n a m e
2020-09-30 11:33:01 +00:00
D e s t i n a t i o n N a m e : d e s t i n a t i o n
2021-09-24 16:31:58 +00:00
S o u r c e N S : d e f a u l t
D e s t i n a t i o n N S : d e f a u l t
S o u r c e P a r t i t i o n : d e f a u l t
D e s t i n a t i o n P a r t i t i o n : d e f a u l t
2020-07-09 09:08:47 +00:00
I D : e e 52203 d - 989 f - 4 f 7 a - a b 5 a - 2 b e f 004164 c a
2020-09-18 10:14:06 +00:00
M e t a : ~
2020-07-09 09:08:47 +00:00
- - -
2020-09-30 11:33:01 +00:00
Scenario : Deleting a intention model from the intention listing page
2020-07-09 09:08:47 +00:00
When I v i s i t t h e i n t e n t i o n s p a g e f o r y a m l
- - -
d c : d a t a c e n t e r
- - -
2020-10-26 09:30:07 +00:00
And I c l i c k a c t i o n s o n t h e i n t e n t i o n L i s t . i n t e n t i o n s
And I c l i c k d e l e t e o n t h e i n t e n t i o n L i s t . i n t e n t i o n s
And I c l i c k c o n f i r m D e l e t e o n t h e i n t e n t i o n L i s t . i n t e n t i o n s
2021-09-24 16:31:58 +00:00
Then a D E L E T E r e q u e s t w a s m a d e t o " / v 1 / c o n n e c t / i n t e n t i o n s / e x a c t ? s o u r c e = d e f a u l t % 2 F d e f a u l t % 2 F n a m e & d e s t i n a t i o n = d e f a u l t % 2 F d e f a u l t % 2 F d e s t i n a t i o n & d c = d a t a c e n t e r "
2020-07-09 09:08:47 +00:00
And " [ d a t a - n o t i f i c a t i o n ] " h a s t h e " n o t i f i c a t i o n - d e l e t e " c l a s s
And " [ d a t a - n o t i f i c a t i o n ] " h a s t h e " s u c c e s s " c l a s s
Scenario : Deleting an intention from the intention detail page
When I v i s i t t h e i n t e n t i o n p a g e f o r y a m l
- - -
d c : d a t a c e n t e r
i n t e n t i o n : e e 52203 d - 989 f - 4 f 7 a - a b 5 a - 2 b e f 004164 c a
- - -
And I c l i c k d e l e t e
And I c l i c k c o n f i r m D e l e t e
2021-09-24 16:31:58 +00:00
Then a D E L E T E r e q u e s t w a s m a d e t o " / v 1 / c o n n e c t / i n t e n t i o n s / e x a c t ? s o u r c e = d e f a u l t % 2 F d e f a u l t % 2 F n a m e & d e s t i n a t i o n = d e f a u l t % 2 F d e f a u l t % 2 F d e s t i n a t i o n & d c = d a t a c e n t e r "
2020-07-09 09:08:47 +00:00
And " [ d a t a - n o t i f i c a t i o n ] " h a s t h e " n o t i f i c a t i o n - d e l e t e " c l a s s
And " [ d a t a - n o t i f i c a t i o n ] " h a s t h e " s u c c e s s " c l a s s
Scenario : Deleting an intention from the intention detail page and getting an error
When I v i s i t t h e i n t e n t i o n p a g e f o r y a m l
- - -
d c : d a t a c e n t e r
i n t e n t i o n : e e 52203 d - 989 f - 4 f 7 a - a b 5 a - 2 b e f 004164 c a
- - -
2021-09-24 16:31:58 +00:00
Given t h e u r l " / v 1 / c o n n e c t / i n t e n t i o n s / e x a c t ? s o u r c e = d e f a u l t % 2 F d e f a u l t % 2 F n a m e & d e s t i n a t i o n = d e f a u l t % 2 F d e f a u l t % 2 F d e s t i n a t i o n & d c = d a t a c e n t e r " r e s p o n d s w i t h a 500 s t a t u s
2020-07-09 09:08:47 +00:00
And I c l i c k d e l e t e
And I c l i c k c o n f i r m D e l e t e
And " [ d a t a - n o t i f i c a t i o n ] " h a s t h e " n o t i f i c a t i o n - u p d a t e " c l a s s
And " [ d a t a - n o t i f i c a t i o n ] " h a s t h e " e r r o r " c l a s s
Scenario : Deleting an intention from the intention detail page and getting an error due to a duplicate intention
When I v i s i t t h e i n t e n t i o n p a g e f o r y a m l
- - -
d c : d a t a c e n t e r
i n t e n t i o n : e e 52203 d - 989 f - 4 f 7 a - a b 5 a - 2 b e f 004164 c a
- - -
2021-09-24 16:31:58 +00:00
Given t h e u r l " / v 1 / c o n n e c t / i n t e n t i o n s / e x a c t ? s o u r c e = d e f a u l t % 2 F d e f a u l t % 2 F n a m e & d e s t i n a t i o n = d e f a u l t % 2 F d e f a u l t % 2 F d e s t i n a t i o n & d c = d a t a c e n t e r " r e s p o n d s w i t h f r o m y a m l
2020-07-09 09:08:47 +00:00
- - -
s t a t u s : 500
b o d y : " d u p l i c a t e i n t e n t i o n f o u n d : "
- - -
And I c l i c k d e l e t e
And I c l i c k c o n f i r m D e l e t e
And " [ d a t a - n o t i f i c a t i o n ] " h a s t h e " n o t i f i c a t i o n - u p d a t e " c l a s s
And " [ d a t a - n o t i f i c a t i o n ] " h a s t h e " e r r o r " c l a s s
And I s e e t h e t e x t " I n t e n t i o n e x i s t s " i n " [ d a t a - n o t i f i c a t i o n ] s t r o n g "