@@ -15,7 +15,6 @@ import { getByTestId } from "dom-testing-library";
1515// as a child, should not affect the latter even if they're the same container types
1616// - Tests whether the lib can work with CSS-modules built in to css-loader
1717// - Tests r-units
18- // todo make the tests assert whole numbers, to make cross-browser testing easier
1918// todo add css-modules, and export the classes for reuse
2019describe ( "Non OOCSS" , ( ) => {
2120const refs = { } ;
@@ -96,7 +95,7 @@ describe("Non OOCSS", () => {
9695
9796await waitForElementToHaveStyle ( refs . marker3 , {
9897backgroundColor :"rgb(255, 0, 0)" ,
99- width :"14.6875px "
98+ width :"15px "
10099} ) ;
101100
102101// Child wrappers should be adjusted with rh
@@ -115,17 +114,17 @@ describe("Non OOCSS", () => {
115114
116115await waitForElementToHaveStyle ( refs . marker1 , {
117116backgroundColor :"rgb(0, 255, 0)" ,
118- width :"30.2969px "
117+ width :"30px "
119118} ) ;
120119
121120await waitForElementToHaveStyle ( refs . marker2 , {
122121backgroundColor :"rgb(255, 0, 0)" ,
123- width :"21.2031px "
122+ width :"21px "
124123} ) ;
125124
126125await waitForElementToHaveStyle ( refs . marker3 , {
127126backgroundColor :"rgb(255, 0, 0)" ,
128- width :"14.8281px "
127+ width :"15px "
129128} ) ;
130129
131130// Child wrapper heights should not change
@@ -140,21 +139,21 @@ describe("Non OOCSS", () => {
140139} ) ;
141140
142141it ( "should change the second container's styles only" , async ( ) => {
143- changeRootSize ( { width :143 } ) ;
142+ changeRootSize ( { width :144 } ) ;
144143
145144await waitForElementToHaveStyle ( refs . marker1 , {
146145backgroundColor :"rgb(0, 0, 255)" ,
147- width :"42.8906px "
146+ width :"43px "
148147} ) ;
149148
150149await waitForElementToHaveStyle ( refs . marker2 , {
151150backgroundColor :"rgb(0, 255, 0)" ,
152- width :"30.0156px "
151+ width :"30px "
153152} ) ;
154153
155154await waitForElementToHaveStyle ( refs . marker3 , {
156155backgroundColor :"rgb(255, 0, 0)" ,
157- width :"21.0156px "
156+ width :"21px "
158157} ) ;
159158
160159// Child wrapper heights should not change
@@ -173,17 +172,17 @@ describe("Non OOCSS", () => {
173172
174173await waitForElementToHaveStyle ( refs . marker1 , {
175174backgroundColor :"rgb(0, 0, 255)" ,
176- width :"61.5px "
175+ width :"62px "
177176} ) ;
178177
179178await waitForElementToHaveStyle ( refs . marker2 , {
180179backgroundColor :"rgb(0, 0, 255)" ,
181- width :"43.0469px "
180+ width :"43px "
182181} ) ;
183182
184183await waitForElementToHaveStyle ( refs . marker3 , {
185184backgroundColor :"rgb(0, 255, 0)" ,
186- width :"30.125px "
185+ width :"30px "
187186} ) ;
188187
189188// Child wrapper heights should not change
@@ -198,21 +197,21 @@ describe("Non OOCSS", () => {
198197} ) ;
199198
200199it ( "should change the last container once again" , async ( ) => {
201- changeRootSize ( { width :286 } ) ;
200+ changeRootSize ( { width :287 } ) ;
202201
203202await waitForElementToHaveStyle ( refs . marker1 , {
204203backgroundColor :"rgb(0, 0, 255)" ,
205- width :"85.7969px "
204+ width :"86px "
206205} ) ;
207206
208207await waitForElementToHaveStyle ( refs . marker2 , {
209208backgroundColor :"rgb(0, 0, 255)" ,
210- width :"60.0469px "
209+ width :"60px "
211210} ) ;
212211
213212await waitForElementToHaveStyle ( refs . marker3 , {
214213backgroundColor :"rgb(0, 0, 255)" ,
215- width :"42.0312px "
214+ width :"42px "
216215} ) ;
217216
218217// Child wrapper heights should not change
@@ -241,7 +240,7 @@ describe("Non OOCSS", () => {
241240
242241await waitForElementToHaveStyle ( refs . marker3 , {
243242backgroundColor :"rgb(255, 0, 0)" ,
244- width :"14.6875px "
243+ width :"15px "
245244} ) ;
246245
247246// Child wrappers should be adjusted with rh