test: rewrite executions tests with playwright (#1207)

This commit is contained in:
Rıdvan Akca
2023-08-11 20:37:29 +03:00
committed by Rıdvan Akca
parent 8f7785e9d2
commit a5b31da3cc
5 changed files with 79 additions and 3 deletions

View File

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