@@ -22,7 +22,7 @@ describe('BO - Design - Theme & Logo : Add new theme', async () => {
22
22
let browserContext : BrowserContext ;
23
23
let page : Page ;
24
24
25
- const urlTheme : string = 'https://github.com/PrestaShop/hummingbird /releases/download/v0 .1.6/hummingbird .zip' ;
25
+ const urlTheme : string = 'https://github.com/prestarocket-agence/classic-rocket /releases/download/3 .1.0/classic-rocket .zip' ;
26
26
27
27
// before and after functions
28
28
before ( async function ( ) {
@@ -36,7 +36,7 @@ describe('BO - Design - Theme & Logo : Add new theme', async () => {
36
36
await Promise . all ( [
37
37
utilsFile . deleteFile ( 'theme.zip' ) ,
38
38
utilsFile . deleteFile ( '../../themes/theme.zip' ) ,
39
- utilsFile . deleteFile ( '../../admin-dev/hummingbird .zip' ) ,
39
+ utilsFile . deleteFile ( '../../admin-dev/classic-rocket .zip' ) ,
40
40
] ) ;
41
41
} ) ;
42
42
@@ -86,17 +86,17 @@ describe('BO - Design - Theme & Logo : Add new theme', async () => {
86
86
expect ( pageTitle ) . to . contains ( themeAndLogoPage . pageTitle ) ;
87
87
88
88
const numThemes = await themeAndLogoPage . getNumberOfThemes ( page ) ;
89
- expect ( numThemes ) . to . eq ( 2 ) ;
89
+ expect ( numThemes ) . to . eq ( 3 ) ;
90
90
} ) ;
91
91
92
- it ( 'should remove the theme Hummingbird ' , async function ( ) {
93
- await testContext . addContextItem ( this , 'testIdentifier' , 'removeThemeHummingbird1 ' , baseContext ) ;
92
+ it ( 'should remove the theme classic-rocket ' , async function ( ) {
93
+ await testContext . addContextItem ( this , 'testIdentifier' , 'removeThemeClassicrocket1 ' , baseContext ) ;
94
94
95
- const result = await themeAndLogoPage . removeTheme ( page , 'hummingbird ' ) ;
95
+ const result = await themeAndLogoPage . removeTheme ( page , 'classic-rocket ' ) ;
96
96
expect ( result ) . to . eq ( themeAndLogoPage . successfulDeleteMessage ) ;
97
97
98
98
const numThemes = await themeAndLogoPage . getNumberOfThemes ( page ) ;
99
- expect ( numThemes ) . to . eq ( 1 ) ;
99
+ expect ( numThemes ) . to . eq ( 2 ) ;
100
100
} ) ;
101
101
} ) ;
102
102
@@ -110,7 +110,7 @@ describe('BO - Design - Theme & Logo : Add new theme', async () => {
110
110
expect ( pageTitle ) . to . contains ( themeImportPage . pageTitle ) ;
111
111
} ) ;
112
112
113
- it ( 'should import from the web the Hummingbird theme' , async function ( ) {
113
+ it ( 'should import from the web the classic-rocket theme' , async function ( ) {
114
114
await testContext . addContextItem ( this , 'testIdentifier' , 'importThemeFromWeb' , baseContext ) ;
115
115
116
116
await themeImportPage . importFromWeb ( page , urlTheme ) ;
@@ -119,17 +119,17 @@ describe('BO - Design - Theme & Logo : Add new theme', async () => {
119
119
expect ( pageTitle ) . to . contains ( themeAndLogoPage . pageTitle ) ;
120
120
121
121
const numThemes = await themeAndLogoPage . getNumberOfThemes ( page ) ;
122
- expect ( numThemes ) . to . eq ( 2 ) ;
122
+ expect ( numThemes ) . to . eq ( 3 ) ;
123
123
} ) ;
124
124
125
- it ( 'should remove the theme Hummingbird ' , async function ( ) {
126
- await testContext . addContextItem ( this , 'testIdentifier' , 'removeThemeHummingbird2 ' , baseContext ) ;
125
+ it ( 'should remove the theme classic-rocket ' , async function ( ) {
126
+ await testContext . addContextItem ( this , 'testIdentifier' , 'removeThemeClassicrocket2 ' , baseContext ) ;
127
127
128
- const result = await themeAndLogoPage . removeTheme ( page , 'hummingbird ' ) ;
128
+ const result = await themeAndLogoPage . removeTheme ( page , 'classic-rocket ' ) ;
129
129
expect ( result ) . to . eq ( themeAndLogoPage . successfulDeleteMessage ) ;
130
130
131
131
const numThemes = await themeAndLogoPage . getNumberOfThemes ( page ) ;
132
- expect ( numThemes ) . to . eq ( 1 ) ;
132
+ expect ( numThemes ) . to . eq ( 2 ) ;
133
133
} ) ;
134
134
} ) ;
135
135
@@ -154,17 +154,17 @@ describe('BO - Design - Theme & Logo : Add new theme', async () => {
154
154
expect ( pageTitle ) . to . contains ( themeAndLogoPage . pageTitle ) ;
155
155
156
156
const numThemes = await themeAndLogoPage . getNumberOfThemes ( page ) ;
157
- expect ( numThemes ) . to . eq ( 2 ) ;
157
+ expect ( numThemes ) . to . eq ( 3 ) ;
158
158
} ) ;
159
159
160
- it ( 'should remove the theme Hummingbird ' , async function ( ) {
161
- await testContext . addContextItem ( this , 'testIdentifier' , 'removeThemeHummingbird3 ' , baseContext ) ;
160
+ it ( 'should remove the theme classic-rocket ' , async function ( ) {
161
+ await testContext . addContextItem ( this , 'testIdentifier' , 'removeThemeClassicrocket3 ' , baseContext ) ;
162
162
163
- const result = await themeAndLogoPage . removeTheme ( page , 'hummingbird ' ) ;
163
+ const result = await themeAndLogoPage . removeTheme ( page , 'classic-rocket ' ) ;
164
164
expect ( result ) . to . eq ( themeAndLogoPage . successfulDeleteMessage ) ;
165
165
166
166
const numThemes = await themeAndLogoPage . getNumberOfThemes ( page ) ;
167
- expect ( numThemes ) . to . eq ( 1 ) ;
167
+ expect ( numThemes ) . to . eq ( 2 ) ;
168
168
} ) ;
169
169
} ) ;
170
170
} ) ;
0 commit comments