Skip to content

Commit

Permalink
Try to fix test now
Browse files Browse the repository at this point in the history
  • Loading branch information
oxixes committed Jun 28, 2024
1 parent f18d405 commit 71a2b6c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
8 changes: 1 addition & 7 deletions src/GruntFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,13 +210,7 @@ module.exports = function (grunt) {
options: {
frameworks: ['jasmine'],
reporters: ['progress', 'coverage'],
browsers: ["ChromeHeadlessCustom"],
customLaunchers{
ChromeHeadlessCustom: {
base: 'ChromeHeadless',
flags: ['--window-size=800,600']
}
},
browsers: ["ChromeHeadless"],
singleRun: true
},
styledelements: {
Expand Down
5 changes: 5 additions & 0 deletions src/js_tests/wirecloud/ui/WorkspaceTabViewSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,11 @@
});

it("should define all screen sizes when creating a widget", (done) => {
Object.defineProperty(window, 'innerWidth', {
value: 800,
writable: true
});

const workspace = create_workspace();
const model = create_tab({
customPreferences: {
Expand Down

0 comments on commit 71a2b6c

Please sign in to comment.