@rimori/playwright-testing 0.3.16 → 0.3.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -138,6 +138,8 @@ class RimoriE2ETestEnvironment {
|
|
|
138
138
|
return;
|
|
139
139
|
if (logMessage.includes('i18next is maintained'))
|
|
140
140
|
return;
|
|
141
|
+
if (logMessage.includes('i18next is made possible'))
|
|
142
|
+
return;
|
|
141
143
|
console.log(`[browser:${logLevel}] [${user}]`, logMessage);
|
|
142
144
|
});
|
|
143
145
|
}
|
|
@@ -35,8 +35,23 @@ async function createExerciseViaDialog(page, exercise) {
|
|
|
35
35
|
const descInput = dialog.locator('textarea#exercise-description');
|
|
36
36
|
await descInput.fill(exercise.description);
|
|
37
37
|
}
|
|
38
|
-
//
|
|
39
|
-
|
|
38
|
+
// Explicitly set dates using local timezone to avoid UTC date drift in the deployed rimori-main
|
|
39
|
+
// (rimori-main initialises dates with toISOString() which returns UTC, causing "Next" to be
|
|
40
|
+
// disabled when the local clock is past UTC midnight but the UTC date is still "yesterday").
|
|
41
|
+
const localDateStr = (d) => `${d.getFullYear()}-${String(d.getMonth() + 1).padStart(2, '0')}-${String(d.getDate()).padStart(2, '0')}`;
|
|
42
|
+
const todayStr = localDateStr(new Date());
|
|
43
|
+
const weekLaterStr = localDateStr(new Date(Date.now() + 7 * 24 * 60 * 60 * 1000));
|
|
44
|
+
const startDateInput = dialog.locator('input#start-date');
|
|
45
|
+
if (await startDateInput.count() > 0) {
|
|
46
|
+
await startDateInput.fill(todayStr);
|
|
47
|
+
}
|
|
48
|
+
const endDateInput = dialog.locator('input#end-date');
|
|
49
|
+
if (await endDateInput.count() > 0) {
|
|
50
|
+
await endDateInput.fill(weekLaterStr);
|
|
51
|
+
}
|
|
52
|
+
const nextBtn = dialog.getByRole('button', { name: 'Next' });
|
|
53
|
+
await (0, test_1.expect)(nextBtn).toBeEnabled({ timeout: 5000 });
|
|
54
|
+
await nextBtn.click();
|
|
40
55
|
// Step 3: Fill in action parameters
|
|
41
56
|
if (exercise.parameters) {
|
|
42
57
|
for (const [key, value] of Object.entries(exercise.parameters)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rimori/playwright-testing",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.17",
|
|
4
4
|
"description": "Playwright testing utilities for Rimori plugins and workers",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"@playwright/test": "^1.40.0",
|
|
29
|
-
"@rimori/client": "^2.5.
|
|
29
|
+
"@rimori/client": "^2.5.23"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@playwright/test": "^1.40.0",
|
|
33
|
-
"@rimori/client": "^2.5.
|
|
33
|
+
"@rimori/client": "^2.5.23",
|
|
34
34
|
"@types/node": "^20.12.7",
|
|
35
35
|
"rimraf": "^5.0.7",
|
|
36
36
|
"typescript": "^5.7.2"
|