test: migrate apps folder to playwright (#1201)

This commit is contained in:
Rıdvan Akca
2023-08-09 18:38:49 +03:00
committed by Rıdvan Akca
parent 1c8e9fac7c
commit 69297c2dd8
12 changed files with 161 additions and 38 deletions

View File

@@ -0,0 +1,12 @@
const path = require('node:path');
const { BasePage } = require('./base-page');
export class ApplicationsPage extends BasePage {
async screenshot(options = {}) {
const { path: plainPath, ...restOptions } = options;
const computedPath = path.join('applications', plainPath);
return await super.screenshot({ path: computedPath, ...restOptions });
}
}