thienphuong / playwright-with-typescript

0 stars 0 forks source link

Khởi tạo dự án với template từ serenityjs #1

Open thienphuong opened 7 months ago

thienphuong commented 7 months ago
  1. Download template here: https://github.com/serenity-js/serenity-js-playwright-test-template
  2. Open the project with VS
  3. run npm ci
  4. Fix linting issues
npm run lint            # runs code linter
npm run lint:fix        # attempts to automatically fix linting issues
npm run clean         # removes reports from any previous test run
thienphuong commented 7 months ago

Tại dòng 14, chỉnh lại giá trị testDir: "./tests" trong file PlaywrightTestConfig để trỏ tới thư mục chứa test của bạn

Trong dự án mẫu có 3 thư mục chứa test

thienphuong commented 7 months ago

Cấu hình để chạy kịch bản với Edge. Open PlaywrightTestConfig file and edit this part.

  projects: [
    {
      name: "Microsoft Edge",
      use: {
        channel: "msedge",
      },
    },
],
thienphuong commented 7 months ago

https://serenity-js.org/handbook/test-runners/playwright-test/