Przeglądaj źródła

📝 docs(story): update story status to ready for review

✅ test(e2e): fix import paths and add json type assertions

- correct test-setup import paths from '../utils' to '../../utils'
- add "with { type: 'json' }" assertion for test-users.json imports
- update 001.001.story.md status from Draft to Ready for Review
yourname 2 miesięcy temu
rodzic
commit
e88f60ba02

+ 1 - 1
docs/stories/001.001.story.md

@@ -1,7 +1,7 @@
 # Story 001.001: 基础单元测试框架搭建
 
 ## Status
-Draft
+Ready for Review
 
 ## Story
 **As a** 全栈开发者

+ 2 - 2
tests/e2e/specs/auth/login.spec.ts

@@ -1,5 +1,5 @@
-import { test, expect } from '../utils/test-setup';
-import testUsers from '../../fixtures/test-users.json';
+import { test, expect } from '../../utils/test-setup';
+import testUsers from '../../fixtures/test-users.json' with { type: 'json' };
 
 test.describe('用户认证流程', () => {
   test.beforeEach(async ({ page }) => {

+ 2 - 2
tests/e2e/specs/auth/logout.spec.ts

@@ -1,5 +1,5 @@
-import { test, expect } from '../utils/test-setup';
-import testUsers from '../../fixtures/test-users.json';
+import { test, expect } from '../../utils/test-setup';
+import testUsers from '../../fixtures/test-users.json' with { type: 'json' };
 
 test.describe('用户登出流程', () => {
   test.beforeEach(async ({ loginPage }) => {

+ 1 - 1
tests/e2e/specs/auth/register.spec.ts

@@ -1,4 +1,4 @@
-import { test, expect } from '../utils/test-setup';
+import { test, expect } from '../../utils/test-setup';
 
 test.describe('用户注册流程', () => {
   test.beforeEach(async ({ registerPage }) => {

+ 2 - 2
tests/e2e/specs/users/profile.spec.ts

@@ -1,5 +1,5 @@
-import { test, expect } from '../utils/test-setup';
-import testUsers from '../../fixtures/test-users.json';
+import { test, expect } from '../../utils/test-setup';
+import testUsers from '../../fixtures/test-users.json' with { type: 'json' };
 
 test.describe('用户个人资料管理', () => {
   test.beforeEach(async ({ loginPage }) => {

+ 2 - 2
tests/e2e/specs/users/user-crud.spec.ts

@@ -1,5 +1,5 @@
-import { test, expect } from '../utils/test-setup';
-import testUsers from '../../fixtures/test-users.json';
+import { test, expect } from '../../utils/test-setup';
+import testUsers from '../../fixtures/test-users.json' with { type: 'json' };
 
 test.describe('用户管理CRUD操作', () => {
   test.beforeEach(async ({ loginPage, userManagementPage }) => {