File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
cypress/integration/default Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -8,11 +8,13 @@ describe('Test Free - upsells', function() {
8
8
cy . get ( '#wp-submit' ) . click ( ) ;
9
9
} ) ;
10
10
11
- it ( 'Check upsell links' , function ( ) {
11
+ beforeEach ( ( ) => {
12
12
cy . visit ( Cypress . env ( 'urls' ) . library ) ;
13
- cy . get ( '.visualizer-chart > .visualizer-chart-canvas > .visualizer-notfound > h2 > .add-new-h2 ' ) . click ( )
13
+ cy . get ( '.add-new-h2 .add-new-chart ' ) . first ( ) . click ( ) ;
14
14
cy . wait ( Cypress . env ( 'wait' ) ) ;
15
+ } ) ;
15
16
17
+ it ( 'Check upsell links' , function ( ) {
16
18
cy . get ( 'iframe' )
17
19
. then ( function ( $iframe ) {
18
20
const $body = $iframe . contents ( ) . find ( 'body' ) ;
@@ -74,10 +76,6 @@ describe('Test Free - upsells', function() {
74
76
} ) ;
75
77
76
78
it ( 'Check Settings upsell links' , function ( ) {
77
- cy . visit ( Cypress . env ( 'urls' ) . library ) ;
78
- cy . get ( '.visualizer-chart > .visualizer-chart-canvas > .visualizer-notfound > h2 > .add-new-h2' ) . click ( )
79
- cy . wait ( Cypress . env ( 'wait' ) ) ;
80
-
81
79
cy . get ( 'iframe' )
82
80
. then ( function ( $iframe ) {
83
81
const $body = $iframe . contents ( ) . find ( 'body' ) ;
You can’t perform that action at this time.
0 commit comments