chore: running paid subscription e2e tests on both self-hosted and home-server setup (#2355)
* chore: add activating paid subscription in e2e on both self-hosted and home-server setup * chore: fix activating premium features on e2e test suites * chore: remove unnecessary sleep duplication * chore: add defining the subscription expires at date in e2e
This commit is contained in:
@@ -27,16 +27,12 @@
|
||||
|
||||
const urlParams = new URLSearchParams(window.location.search);
|
||||
const bail = urlParams.get('bail') === 'false' ? false : true;
|
||||
const skipPaidFeatures = urlParams.get('skip_paid_features') === 'true' ? true : false;
|
||||
|
||||
mocha.setup({
|
||||
ui: 'bdd',
|
||||
timeout: 5000,
|
||||
bail: bail,
|
||||
});
|
||||
if (skipPaidFeatures) {
|
||||
mocha.grep('@paidfeature').invert();
|
||||
}
|
||||
</script>
|
||||
|
||||
<script type="module">
|
||||
@@ -81,4 +77,4 @@
|
||||
<div id="mocha"></div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user