@rimori/playwright-testing 0.3.35-next.0 → 0.3.35

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.
@@ -34,27 +34,35 @@ async function completeOnboarding(page, onboarding, e2ePluginId) {
34
34
  // Step 0: Intro — single CTA that saves defaults and swaps to goal-discovery.
35
35
  const startJourney = page.getByRole('button', { name: 'Start the journey' });
36
36
  await (0, test_1.expect)(startJourney).toBeVisible({ timeout: 10000 });
37
- await startJourney.click();
37
+ // The CTA has a 700ms entrance translate-y plus permanent hover/active `scale`
38
+ // transitions, so Playwright's actionability "stable" check never settles and a
39
+ // normal click times out. Wait out the entrance, then force past the stability gate.
40
+ await page.waitForTimeout(900);
41
+ await startJourney.click({ force: true });
42
+ // Each goal-discovery step is a freshly-mounted Card (animate-fade-in) whose option rows/buttons
43
+ // carry `transition-all`; the auto-advancing options can shift mid-animation inside their
44
+ // scrollable container and intermittently fail Playwright's actionability ("element not stable").
45
+ // Force past the stability gate on those clicks — the option is already asserted visible.
38
46
  // Step 1: Motivation (radio select, auto-advances after selection)
39
47
  await (0, test_1.expect)(page.getByText('Why are you learning Swedish?')).toBeVisible({ timeout: 30000 });
40
- await page.getByText(learningReasonMap[onboarding.learning_reason]).click();
48
+ await page.getByText(learningReasonMap[onboarding.learning_reason]).click({ force: true });
41
49
  // Step 2: Profession (textarea + continue)
42
50
  await (0, test_1.expect)(page.getByText('What is your profession or career goal?')).toBeVisible({ timeout: 10000 });
43
51
  await page.getByPlaceholder(/sports teacher/i).fill(onboarding.profession);
44
52
  await page.getByRole('button', { name: 'Continue' }).click();
45
53
  // Step 3: Certificate (auto-advances) — pick "not aiming for a certificate"
46
54
  await (0, test_1.expect)(page.getByText('Are you preparing for a Swedish certificate?')).toBeVisible({ timeout: 10000 });
47
- await page.getByRole('button', { name: "I'm not aiming for a certificate" }).click();
55
+ await page.getByRole('button', { name: "I'm not aiming for a certificate" }).click({ force: true });
48
56
  // Step 4: Interests (textarea + continue)
49
57
  await (0, test_1.expect)(page.getByText('What are your interests?')).toBeVisible({ timeout: 10000 });
50
58
  await page.getByPlaceholder(/cooking/i).fill(onboarding.interests);
51
59
  await page.getByRole('button', { name: 'Continue' }).click();
52
60
  // Step 5: Proud of (textarea + continue)
53
- await (0, test_1.expect)(page.getByText('What do you want to be proud of in 3 months?')).toBeVisible({ timeout: 10000 });
61
+ await (0, test_1.expect)(page.getByText('What do you want to accomplish in 4 weeks?')).toBeVisible({ timeout: 10000 });
54
62
  await page.getByPlaceholder(/Swedish colleagues/i).fill(onboarding.proud_of);
55
63
  await page.getByRole('button', { name: 'Continue' }).click();
56
- // Step 6: Time commitment — defaults are valid, just continue
57
- await (0, test_1.expect)(page.getByText('How much time do you want to invest')).toBeVisible({ timeout: 10000 });
64
+ // Step 6: Schedule (study days + daily minutes) — defaults are valid, just continue
65
+ await (0, test_1.expect)(page.getByText('When will you be working on this goal?')).toBeVisible({ timeout: 10000 });
58
66
  await page.getByRole('button', { name: 'Continue' }).click();
59
67
  // Step 7: Meet buddy — wait out real AI plan generation, then start learning.
60
68
  const startLearning = page.getByRole('button', { name: 'Start learning' });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rimori/playwright-testing",
3
- "version": "0.3.35-next.0",
3
+ "version": "0.3.35",
4
4
  "description": "Playwright testing utilities for Rimori plugins and workers",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {