This repository has been archived on 2025-04-22. You can view files and clone it, but cannot push or open issues or pull requests.
playwright-demo/tests/hlk/fixtures/touchFixture.js
2024-10-21 18:03:30 +08:00

15 lines
354 B
JavaScript

const { test: base, expect } = require('./base');
const { CustomerPage } = require('../pom/customerPage');
const test = base.extend({
/**
* @type {CustomerPage}
*/
touchCustomerPage: async ({ touchPage }, use) => {
const customerPage = new CustomerPage(touchPage);
await use(customerPage);
},
});
module.exports = { test, expect };