Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit d9c6ad4

Browse files
committed
attempt to fix Firefox tests
1 parent 2fbd285 commit d9c6ad4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/select.spec.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2018,7 +2018,8 @@ describe('ui-select tests', function () {
20182018
taggingLabel: 'false'
20192019
});
20202020

2021-
//angular.element(document.body).css("width", "100%");
2021+
angular.element(document.body).css("width", "100%");
2022+
el.css("width", "800px !important");
20222023
angular.element(document.body).append(el);
20232024
$timeout.flush(); // needed to make input take it's real width, not 4 or 10 px
20242025

@@ -2030,6 +2031,7 @@ describe('ui-select tests', function () {
20302031
clickItem(el, 'Wladimir');
20312032
$timeout.flush();
20322033
// 2 items are selected, input should be less than 100%
2034+
console.log('test', searchInput.outerWidth(), searchInput.width()); // TODO delete
20332035
expect(searchInput.outerWidth()).toBe(548); // remaining width of the row
20342036

20352037
clickItem(el, 'Samantha');

0 commit comments

Comments
 (0)