attempt to fix protractor flicker

pull/3262/head
Jens Ulferts 9 years ago
parent 2c97d64fff
commit 1ee5e58fb6
  1. 22
      frontend/tests/integration/specs/work-packages/work-packages-spec.js

@ -46,15 +46,19 @@ describe('OpenProject', function() {
it('should show work packages', function() {
page.get();
page.getTableHeaders().getText().then(function(text) {
expect(text).to.include.members([
'',
'ID',
'TYPE',
'STATUS',
'SUBJECT',
'ASSIGNEE'
]);
page.getTableHeaders().map(function(heading) {
return heading.getText();
}).then(function(headingTexts) {
var expected = ['',
'ID',
'TYPE',
'STATUS',
'SUBJECT',
'ASSIGNEE'];
for (var i = 0; i < expected.length; i++) {
expect(headingTexts[i]).to.equal(expected[i]);
}
});
});
});

Loading…
Cancel
Save