EC-CUBE / EC-CUBE/ec-cube2

e2e-tests/test/admin/total/ 日付跨ぎで失敗する

Open
#1,447 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
PHP
Stars
92
Forks
97
Avg merge
4d 2h
Merged PRs (30d)
9

Description

https://github.com/EC-CUBE/ec-cube2/actions/runs/33520788947/job/99900461831

抜粋
```
1) [chromium] › e2e-tests/test/admin/total/total.test.ts:133:9 › 売上集計画面を確認をします › 商品別集計の確認をします › 期間集計の確認をします

Error: expect(locator).toBeEnabled() failed

Locator: locator('#total-products')
Expected: enabled
Timeout: 5000ms
Error: element(s) not found

Call log:
- Expect "toBeEnabled" with timeout 5000ms
- waiting for locator('#total-products')


135 | await page.goto(`${url}?page=${method}`);
136 | await page.click('text=期間で集計する');
> 137 | await expect(page.locator(`#total-${method}`)).toBeEnabled();
| ^
138 | });
139 |
140 | // eslint-disable-next-line @typescript-eslint/no-unused-vars, no-unused-vars
at /home/runner/work/ec-cube2/ec-cube2/e2e-tests/test/admin/total/total.test.ts:137:54

attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
test-results/admin/test-admin-total-total-売上集-5b542-ます-商品別集計の確認をします-期間集計の確認をします-chromium/test-failed-1.png
────────────────────────────────────────────────────────────────────────────────────────────────

attachment #2: video (video/webm) ──────────────────────────────────────────────────────────────
test-results/admin/test-admin-total-total-売上集-5b542-ます-商品別集計の確認をします-期間集計の確認をします-chromium/video.webm
────────────────────────────────────────────────────────────────────────────────────────────────

Error Context: test-results/admin/test-admin-total-total-売上集-5b542-ます-商品別集計の確認をします-期間集計の確認をします-chromium/error-context.md
```

多分、テスト中に日付が変わると発生する。

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with e2e-tests/test/admin/total/total.test.ts around lines 133-137 and review the linked Actions failure. Run the affected Chromium test while checking the suspected date transition during execution. Done means the period aggregation check reliably finds #total-products when the test crosses midnight.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, playwright, typescript
Domain
testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.