fix occasional test failures (#10690)

This commit is contained in:
Kyℓe Hensel
2025-01-23 01:16:45 +11:00
committed by GitHub
parent 1d847e891b
commit 3011acc23c
6 changed files with 36 additions and 11 deletions
+3 -1
View File
@@ -73,7 +73,9 @@ describe('iD.behaviorHash', function () {
context.map().center([-77.0, 38.9]);
context.map().zoom(2.0);
window.setTimeout(function() {
expect(window.location.hash).to.equal('#background=none&map=2.00/38.9/-77.0');
// the hash might contain other things like `disable_features`
expect(window.location.hash).to.include('background=none');
expect(window.location.hash).to.include('map=2.00/38.9/-77.0');
done();
}, 600);
});