Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #16214 from millermedeiros/971691-travis-day-view-…
Browse files Browse the repository at this point in the history
…header

Bug 971691 - "day view header copy should not overflow" marionette js test is failing r=gaye
  • Loading branch information
rik committed Feb 12, 2014
2 parents e52cf84 + fecd5d2 commit 2a43544
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions apps/calendar/test/marionette/day_view_test.js
@@ -1,6 +1,6 @@
var Calendar = require('./calendar'),
Marionette = require('marionette-client');
assert = require('assert');
assert = require('chai').assert;

marionette('day view', function() {
var app;
Expand All @@ -10,11 +10,14 @@ marionette('day view', function() {
app = new Calendar(client);
app.launch({ hideSwipeHint: true });
// Go to day view
app.findElement('dayButton').click();
app.waitForElement('dayButton').click();
client.waitFor(app.isDayViewActive.bind(app));
});

test('header copy should not overflow', function() {
assert.doesNotThrow(app.checkOverflow.bind(app, 'monthYearHeader'));
var header = app.waitForElement('monthYearHeader');
// XXX: we don't use app.checkOverflow() because of Bug 971691
// 20 chars is a "safe" limit if font-family is Fira Sans
assert.operator(header.text().length, '<', 21);
});
});

0 comments on commit 2a43544

Please sign in to comment.