@rimori/playwright-testing 0.3.16 → 0.3.17-next.1

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
  }
@@ -33,7 +33,6 @@ exports.DEFAULT_USER_INFO = {
33
33
  voiceId: 'openai_alloy',
34
34
  aiPersonality: 'friendly',
35
35
  },
36
- study_duration: 30,
37
36
  onboarding_completed: true,
38
37
  context_menu_on_select: true,
39
38
  user_name: 'Test User',
@@ -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
- // Keep default dates (today today+7 days) they are valid by default
39
- await dialog.getByRole('button', { name: 'Next' }).click();
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.16",
3
+ "version": "0.3.17-next.1",
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.21"
29
+ "@rimori/client": "2.5.25-next.1"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@playwright/test": "^1.40.0",
33
- "@rimori/client": "^2.5.21",
33
+ "@rimori/client": "2.5.25-next.1",
34
34
  "@types/node": "^20.12.7",
35
35
  "rimraf": "^5.0.7",
36
36
  "typescript": "^5.7.2"