File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,24 @@ describe( 'AMP analytics options', () => {
30
30
await expect ( '.amp-analytics-entry' ) . countToBe ( 2 ) ;
31
31
await expect ( page ) . toFill ( '#amp-analytics-entry-2 input' , 'googleanalytics-2' ) ;
32
32
33
+ // Add third entry.
34
+ await expect ( page ) . toClick ( '#amp-analytics-add-entry' ) ;
35
+ await expect ( '.amp-analytics-entry' ) . countToBe ( 3 ) ;
36
+ await expect ( page ) . toFill ( '#amp-analytics-entry-3 input' , 'alexametrics' ) ;
37
+
38
+ await expect ( page ) . toMatchElement ( '#analytics-textarea-control-3' , {
39
+ value : JSON . stringify (
40
+ {
41
+ vars : {
42
+ atrk_acct : '<YOURACCOUNT>' ,
43
+ domain : '<YOURDOMAIN>' ,
44
+ } ,
45
+ } ,
46
+ null ,
47
+ '\t' ,
48
+ ) ,
49
+ } ) ;
50
+
33
51
// Save.
34
52
await expect ( page ) . toClick ( '.amp-settings-nav button[type="submit"]' ) ;
35
53
You can’t perform that action at this time.
0 commit comments