Skip to content

Commit d6ea3de

Browse files
committed
fix: conflicts
2 parents 309c5f7 + 4b8f413 commit d6ea3de

File tree

11 files changed

+62
-31401
lines changed

11 files changed

+62
-31401
lines changed

lib/api/get-config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ module.exports = (req, res) => {
1111
file: codeceptjsFactory.getConfigFile(),
1212
config: config.get(),
1313
};
14-
14+
1515
res.json(currentConfig);
1616
};

lib/api/list-actions.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,18 @@ module.exports = (req, res) => {
2424
const helper = helpers[name];
2525
methodsOfObject(helper).forEach((action) => {
2626

27-
if(docFileList.includes(action)) {
27+
if (docFileList.includes(action)) {
2828
let filePath = path.join(docsWebApiFolderPath, action + '.mustache');
29-
let fn = helper[action].toString().replace(/\n/g,' ').replace(/\{.*\}/gm,'{}');
30-
try{
29+
let fn = helper[action].toString().replace(/\n/g, ' ').replace(/\{.*\}/gm, '{}');
30+
try {
3131
let docData = fs.readFileSync(filePath, 'utf-8');
3232
let params = parser.parse(fn);
33-
actions[action] = { params: params, actionDoc: docData };
34-
} catch(err) {
33+
actions[action] = {params: params, actionDoc: docData};
34+
} catch (err) {
3535
debug('Error in fetching doc for file content', fn, err);
3636
}
3737
}
38-
3938
});
4039
}
41-
4240
res.send({ actions });
4341
};

package-lock.json

Lines changed: 17 additions & 31365 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,15 @@
2424
],
2525
"dependencies": {
2626
"@codeceptjs/configure": "0.8.0",
27-
"axios": "0.24.0",
27+
"axios": "1.6.7",
2828
"body-parser": "1.20.1",
2929
"cheerio": "1.0.0-rc.12",
3030
"chokidar": "3.5.3",
3131
"commander": "8.3.0",
3232
"core-js": "2.6.12",
3333
"debug": "4.3.4",
3434
"electron": "28.2.2",
35+
"dayjs": "1.11.10",
3536
"express": "4.18.2",
3637
"lodash.clonedeep": "4.5.0",
3738
"nanoid": "3.3.4",
@@ -56,7 +57,6 @@
5657
"eslint-plugin-vue": "7.20.0",
5758
"husky": "7.0.4",
5859
"lint-staged": "11.2.6",
59-
"moment": "2.29.4",
6060
"playwright": "1.29",
6161
"prismjs": "1.29.0",
6262
"puppeteer": "10.4.0",

src/components/Feature.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,11 @@
4747

4848
<script>
4949
import axios from 'axios';
50-
import moment from 'moment';
5150
import EditorNotFound from './EditorNotFound';
5251
import Scenario from './Scenario';
52+
import dayjs from 'dayjs';
53+
import relativeTime from 'dayjs/plugin/relativeTime';
54+
dayjs.extend(relativeTime);
5355
5456
export default {
5557
name: 'Feature',
@@ -69,7 +71,7 @@ export default {
6971
},
7072
methods: {
7173
humanize(ts) {
72-
return moment.unix(ts / 1000).fromNow();
74+
return dayjs(ts).fromNow();
7375
},
7476
7577
openInEditor(file) {

src/components/Scenario.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@
6363
</template>
6464

6565
<script>
66-
import moment from 'moment';
66+
import dayjs from 'dayjs';
67+
import relativeTime from 'dayjs/plugin/relativeTime';
68+
dayjs.extend(relativeTime);
6769
6870
export default {
6971
name: 'Scenario',
@@ -115,7 +117,7 @@ export default {
115117
},
116118
methods: {
117119
humanize(ts) {
118-
return moment.unix(ts / 1000).fromNow();
120+
return dayjs(ts).fromNow();
119121
},
120122
121123
selectScenario(scenario) {

src/components/SettingsMenu.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
class="fa-md fas fa-edit text-red-500 mr-2 fa-inverse"
1919
v-if="!editor"
2020
/>
21-
</b-tooltip>
21+
</b-tooltip>
2222
<b-tooltip
2323
label="Window Mode Enabled"
2424
position="is-left"
@@ -153,7 +153,7 @@
153153
<a
154154
class="is-small"
155155
@click="gotoSettingsPage()"
156-
>Show Config</a> &nbsp; {{ config.file }}
156+
>Show CodeceptJS Config</a>
157157
</footer>
158158
</div>
159159
</form>

src/components/SnapshotSource.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export default {
9292
return (
9393
this.$refs.contentDocument ||
9494
(this.$refs.source.contentWindow &&
95-
this.$refs.source.contentWindow.document)
95+
this.$refs.source.contentWindow.document)
9696
);
9797
},
9898
@@ -105,7 +105,7 @@ export default {
105105
return (
106106
this.$refs.source.contentWindow &&
107107
(this.$props.snapshot.scrollPosition.x > 0 ||
108-
this.$props.snapshot.scrollPosition.y > 0)
108+
this.$props.snapshot.scrollPosition.y > 0)
109109
);
110110
},
111111

src/components/Test.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,13 @@
103103
</template>
104104

105105
<script>
106-
import moment from 'moment';
106+
import relativeTime from 'dayjs/plugin/relativeTime';
107107
import Pause from './Pause';
108108
import Step from './Step';
109109
import ScenarioSource from './ScenarioSource';
110110
import TestResult from './TestResult';
111+
import dayjs from 'dayjs';
112+
dayjs.extend(relativeTime);
111113
112114
export default {
113115
name: 'Test',
@@ -137,7 +139,7 @@ export default {
137139
138140
methods: {
139141
humanize(ts) {
140-
return moment.unix(ts / 1000).fromNow();
142+
return dayjs(ts).fromNow();
141143
},
142144
143145
indentLevel(step) {

src/components/pages/NewTestPage.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
@run="runScenario(scenario)"
66
/>
77
<aside class="Sidebar">
8-
<MonacoEditor
8+
<MonacoEditor
99
class="editor"
10-
v-model="code"
10+
v-model="code"
1111
@editorDidMount="editorDidMount"
12-
language="javascript"
12+
language="javascript"
1313
/>
14-
14+
1515
<button
1616
v-if="!isRunning"
1717
@click="runScenario(scenario)"
@@ -55,7 +55,7 @@
5555
<a @click="enableWindowMode()">Force Window mode <i class="fas fa-window-maximize settings" /></a> to see the execution in actual browser
5656
</li>
5757
<li :class="{ 'line-through': isSingleSession }">
58-
<a @click="enableSingleSession()">Enable Singleton Browser Session</a> to reuse one window accross test runs
58+
<a @click="enableSingleSession()">Enable Singleton Browser Session</a> to reuse one window across test runs
5959
</li>
6060
<li :class="{ 'line-through': isRunning }">
6161
Write the inital code and click <a @click="runScenario()">Launch Test</a>
@@ -109,7 +109,7 @@ export default {
109109
created: async function () {
110110
this.$store.dispatch('testRuns/clearTests');
111111
if (localStorage.getItem('newTestCommand') !== null) {
112-
this.code = localStorage.getItem('newTestCommand');
112+
this.code = localStorage.getItem('newTestCommand');
113113
}
114114
},
115115
beforeDestroy: function() {

0 commit comments

Comments
 (0)