commit
76713e204f
|
@ -45,7 +45,6 @@ class behat_app extends behat_app_helper {
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $featurepath = '';
|
protected $featurepath = '';
|
||||||
protected $windowsize = '360x720';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @BeforeScenario
|
* @BeforeScenario
|
||||||
|
|
|
@ -201,7 +201,7 @@ class behat_app_helper extends behat_base {
|
||||||
$restart = true;
|
$restart = true;
|
||||||
|
|
||||||
// Reset its size.
|
// Reset its size.
|
||||||
$this->resize_window($this->windowsize, true);
|
$this->resize_app_window();
|
||||||
|
|
||||||
// Visit the Ionic URL.
|
// Visit the Ionic URL.
|
||||||
$this->getSession()->visit($this->get_app_url());
|
$this->getSession()->visit($this->get_app_url());
|
||||||
|
@ -596,4 +596,18 @@ EOF;
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Resize window to have app dimensions.
|
||||||
|
*/
|
||||||
|
protected function resize_app_window() {
|
||||||
|
$width = 500;
|
||||||
|
$height = 720;
|
||||||
|
$offset = $this->evaluate_script("{
|
||||||
|
x: window.outerWidth - document.body.offsetWidth,
|
||||||
|
y: window.outerHeight - window.innerHeight,
|
||||||
|
}");
|
||||||
|
|
||||||
|
$this->getSession()->getDriver()->resizeWindow($width + $offset['x'], $height + $offset['y']);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -601,6 +601,8 @@ export class AddonModWikiIndexComponent extends CoreCourseModuleMainActivityComp
|
||||||
module: this.module,
|
module: this.module,
|
||||||
...options,
|
...options,
|
||||||
},
|
},
|
||||||
|
animated: !options.replace,
|
||||||
|
replace: options.replace,
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -649,6 +651,7 @@ export class AddonModWikiIndexComponent extends CoreCourseModuleMainActivityComp
|
||||||
subwikiId: subwikiId,
|
subwikiId: subwikiId,
|
||||||
userId: userId,
|
userId: userId,
|
||||||
groupId: groupId,
|
groupId: groupId,
|
||||||
|
replace: true,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1089,4 +1092,5 @@ type AddonModWikiOpenPageOptions = {
|
||||||
pageId?: number;
|
pageId?: number;
|
||||||
userId?: number;
|
userId?: number;
|
||||||
groupId?: number;
|
groupId?: number;
|
||||||
|
replace?: boolean;
|
||||||
};
|
};
|
||||||
|
|
|
@ -83,7 +83,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.extra {
|
.extra {
|
||||||
flex-shrink: 1;
|
flex-shrink: 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
padding-left: 8px;
|
padding-left: 8px;
|
||||||
|
|
Loading…
Reference in New Issue