@@ -59,7 +59,7 @@ describe('File Translation', () => {
5959 } ) ;
6060 } ) ;
6161
62- describe ( 'When user click moveFileBtn and check language :' , ( ) => {
62+ describe ( 'When user click moveFileBtn and selects the English language :' , ( ) => {
6363 beforeEach ( ( ) => {
6464 browser . actions ( ) . doubleClick ( bue . bucketList . first ( ) ) . perform ( ) ;
6565 nae . menuBtn . get ( 1 ) . click ( ) ;
@@ -82,7 +82,7 @@ describe('File Translation', () => {
8282 } ) ;
8383 } ) ;
8484
85- describe ( 'When user move file and check toast language successfully :' , ( ) => {
85+ describe ( 'When user move file and check toast language successfully and selects the English language :' , ( ) => {
8686 beforeEach ( ( ) => {
8787 browser . actions ( ) . doubleClick ( bue . bucketList . first ( ) ) . perform ( ) ;
8888 nae . menuBtn . get ( 1 ) . click ( ) ;
@@ -97,13 +97,12 @@ describe('File Translation', () => {
9797 it ( 'Should check every elements using the right language' , ( ) => {
9898 browser . ignoreSynchronization = true ;
9999 browser . sleep ( 1000 ) ;
100- expect ( nae . toastMessage . isDisplayed ( ) ) . toBe ( true ) ;
101100 expect ( nae . toastMessage . getText ( ) ) . toMatch ( translate ( 'en' , 'TOAST_MOVE_SUCCESSFULLY' ) ) ;
102101 browser . ignoreSynchronization = false ;
103102 } ) ;
104103 } ) ;
105104
106- describe ( 'When user move file and check toast language failure :' , ( ) => {
105+ describe ( 'When user move file and check toast language failure and selects the English language :' , ( ) => {
107106 beforeEach ( ( ) => {
108107 browser . actions ( ) . doubleClick ( bue . bucketList . first ( ) ) . perform ( ) ;
109108 nae . menuBtn . get ( 1 ) . click ( ) ;
@@ -121,7 +120,6 @@ describe('File Translation', () => {
121120 it ( 'Should check every elements using the right language' , ( ) => {
122121 browser . ignoreSynchronization = true ;
123122 browser . sleep ( 1000 ) ;
124- expect ( nae . toastMessage . isDisplayed ( ) ) . toBe ( true ) ;
125123 expect ( nae . toastMessage . getText ( ) ) . toMatch ( translate ( 'en' , 'TOAST_MOVE_FAILURE' ) ) ;
126124 browser . ignoreSynchronization = false ;
127125 } ) ;
@@ -162,7 +160,7 @@ describe('File Translation', () => {
162160 } ) ;
163161 } ) ;
164162
165- describe ( 'When user click moveBtn and check language :' , ( ) => {
163+ describe ( 'When user click moveBtn and check language and selects the Traditional Chinese language :' , ( ) => {
166164 beforeEach ( ( ) => {
167165 browser . actions ( ) . doubleClick ( bue . bucketList . first ( ) ) . perform ( ) ;
168166 nae . menuBtn . get ( 1 ) . click ( ) ;
@@ -185,7 +183,7 @@ describe('File Translation', () => {
185183 } ) ;
186184 } ) ;
187185
188- describe ( 'When user move file and check toast language successfully :' , ( ) => {
186+ describe ( 'When user move file and check toast language successfully and selects the Traditional Chinese language :' , ( ) => {
189187 beforeEach ( ( ) => {
190188 browser . actions ( ) . doubleClick ( bue . bucketList . first ( ) ) . perform ( ) ;
191189 nae . menuBtn . get ( 1 ) . click ( ) ;
@@ -200,13 +198,12 @@ describe('File Translation', () => {
200198 it ( 'Should check every elements using the right language' , ( ) => {
201199 browser . ignoreSynchronization = true ;
202200 browser . sleep ( 1000 ) ;
203- expect ( nae . toastMessage . isDisplayed ( ) ) . toBe ( true ) ;
204201 expect ( nae . toastMessage . getText ( ) ) . toMatch ( translate ( 'tw' , 'TOAST_MOVE_SUCCESSFULLY' ) ) ;
205202 browser . ignoreSynchronization = false ;
206203 } ) ;
207204 } ) ;
208205
209- describe ( 'When user move file and check toast language failure :' , ( ) => {
206+ describe ( 'When user move file and check toast language failure and selects the Traditional Chinese language :' , ( ) => {
210207 beforeEach ( ( ) => {
211208 browser . actions ( ) . doubleClick ( bue . bucketList . first ( ) ) . perform ( ) ;
212209 nae . menuBtn . get ( 1 ) . click ( ) ;
@@ -224,7 +221,6 @@ describe('File Translation', () => {
224221 it ( 'Should check every elements using the right language' , ( ) => {
225222 browser . ignoreSynchronization = true ;
226223 browser . sleep ( 1000 ) ;
227- expect ( nae . toastMessage . isDisplayed ( ) ) . toBe ( true ) ;
228224 expect ( nae . toastMessage . getText ( ) ) . toMatch ( translate ( 'tw' , 'TOAST_MOVE_FAILURE' ) ) ;
229225 browser . ignoreSynchronization = false ;
230226 } ) ;
@@ -265,7 +261,7 @@ describe('File Translation', () => {
265261 } ) ;
266262 } ) ;
267263
268- describe ( 'When user click moveBtn and check language :' , ( ) => {
264+ describe ( 'When user click moveBtn and check language and selects the Simplified Chinese language :' , ( ) => {
269265 beforeEach ( ( ) => {
270266 browser . actions ( ) . doubleClick ( bue . bucketList . first ( ) ) . perform ( ) ;
271267 nae . menuBtn . get ( 1 ) . click ( ) ;
@@ -288,7 +284,7 @@ describe('File Translation', () => {
288284 } ) ;
289285 } ) ;
290286
291- describe ( 'When user move file and check toast language successfully :' , ( ) => {
287+ describe ( 'When user move file and check toast language successfully and selects the Simplified Chinese language :' , ( ) => {
292288 beforeEach ( ( ) => {
293289 browser . actions ( ) . doubleClick ( bue . bucketList . first ( ) ) . perform ( ) ;
294290 nae . menuBtn . get ( 1 ) . click ( ) ;
@@ -303,13 +299,12 @@ describe('File Translation', () => {
303299 it ( 'Should check every elements using the right language' , ( ) => {
304300 browser . ignoreSynchronization = true ;
305301 browser . sleep ( 1000 ) ;
306- expect ( nae . toastMessage . isDisplayed ( ) ) . toBe ( true ) ;
307302 expect ( nae . toastMessage . getText ( ) ) . toMatch ( translate ( 'cn' , 'TOAST_MOVE_SUCCESSFULLY' ) ) ;
308303 browser . ignoreSynchronization = false ;
309304 } ) ;
310305 } ) ;
311306
312- describe ( 'When user move file and check toast language failure :' , ( ) => {
307+ describe ( 'When user move file and check toast language failure and selects the Simplified Chinese language :' , ( ) => {
313308 beforeEach ( ( ) => {
314309 browser . actions ( ) . doubleClick ( bue . bucketList . first ( ) ) . perform ( ) ;
315310 nae . menuBtn . get ( 1 ) . click ( ) ;
@@ -327,7 +322,6 @@ describe('File Translation', () => {
327322 it ( 'Should check every elements using the right language' , ( ) => {
328323 browser . ignoreSynchronization = true ;
329324 browser . sleep ( 1000 ) ;
330- expect ( nae . toastMessage . isDisplayed ( ) ) . toBe ( true ) ;
331325 expect ( nae . toastMessage . getText ( ) ) . toMatch ( translate ( 'cn' , 'TOAST_MOVE_FAILURE' ) ) ;
332326 browser . ignoreSynchronization = false ;
333327 } ) ;
0 commit comments