@@ -20,9 +20,9 @@ describe("FlexibleColumnLayout Behavior", () => {
20
20
assert . strictEqual ( layoutChangeCounter . getValue ( ) , "1" , "The event layout-change is not fired." ) ;
21
21
} ) ;
22
22
23
- it ( "tests Tablet Size 1200px " , ( ) => {
23
+ it ( "tests Tablet Size 1000px " , ( ) => {
24
24
// act
25
- browser . setWindowSize ( 1200 , 1080 ) ;
25
+ browser . setWindowSize ( 1000 , 1080 ) ;
26
26
27
27
const layoutChangeCounter = browser . $ ( "#testLayoutChange" ) ;
28
28
const visibleColumns = browser . execute ( ( ) => {
@@ -35,9 +35,9 @@ describe("FlexibleColumnLayout Behavior", () => {
35
35
assert . strictEqual ( layoutChangeCounter . getValue ( ) , "2" , "The event layout-change after resizing." ) ;
36
36
} ) ;
37
37
38
- it ( "tests Phone size 870px " , ( ) => {
38
+ it ( "tests Phone size 500px " , ( ) => {
39
39
// act
40
- browser . setWindowSize ( 870 , 1080 ) ;
40
+ browser . setWindowSize ( 500 , 1080 ) ;
41
41
42
42
const layoutChangeCounter = browser . $ ( "#testLayoutChange" ) ;
43
43
const visibleColumns = browser . execute ( ( ) => {
@@ -57,19 +57,20 @@ describe("FlexibleColumnLayout Behavior", () => {
57
57
const fcl = browser . $ ( "#fcl1" ) ;
58
58
const layoutChangeCounter = browser . $ ( "#layoutChangeRes4" ) ;
59
59
const arrow = fcl . shadow$ ( ".ui5-fcl-arrow--start" ) ;
60
+ let counter = parseInt ( layoutChangeCounter . getValue ( ) ) || 0 ;
60
61
61
62
// act
62
63
arrow . click ( ) ;
63
64
64
- // assert (two times the event has been fired due resize already)
65
- assert . strictEqual ( layoutChangeCounter . getValue ( ) , "4" , "The event layout-change fired once." ) ;
65
+ // assert
66
+ assert . strictEqual ( layoutChangeCounter . getValue ( ) , ` ${ ++ counter } ` , "The event layout-change fired once." ) ;
66
67
assert . strictEqual ( fcl . getProperty ( "layout" ) , "TwoColumnsMidExpanded" , "new layout set" ) ;
67
68
68
69
// act
69
70
arrow . click ( ) ;
70
71
71
- // // assert
72
- assert . strictEqual ( layoutChangeCounter . getValue ( ) , "5" , "The event layout-change fired again." ) ;
72
+ // assert
73
+ assert . strictEqual ( layoutChangeCounter . getValue ( ) , ` ${ ++ counter } ` , "The event layout-change fired again." ) ;
73
74
assert . strictEqual ( fcl . getProperty ( "layout" ) , "TwoColumnsStartExpanded" , "new layout set" ) ;
74
75
} ) ;
75
76
0 commit comments