This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { test } from "@playwright/test"; | |
export function step(title?: string) { | |
return function actualDecorator( | |
target: (this: any, ...args: any[]) => Promise<any>, | |
context: ClassMethodDecoratorContext, | |
) { | |
async function replacementMethod(this: any, ...args: any): Promise<any> { | |
const name = | |
title || |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function createEvent(typeOfEvent) { | |
var event =document.createEvent("CustomEvent"); | |
event.initCustomEvent(typeOfEvent,true, true, null); | |
event.dataTransfer = { | |
data: {}, | |
setData: function (key, value) { | |
this.data[key] = value; | |
}, | |
getData: function (key) { | |
return this.data[key]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "https://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> | |
<style type="text/css"> | |
body{margin: 0px;padding: 15px}body, td, th{font-family: "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, Tahoma, sans-serif;font-size: 10pt}th{text-align: left}h1{margin-top: 0px}a{color:#4a72af} | |
.status{background-color:<%=build.result.toString() == "SUCCESS" ? 'green' : 'gold' %>;font-size:28px;font-weight:bold;color:white;width:720px;height:52px;margin-bottom:18px;text-align:center;vertical-align:middle;border-collapse:collapse;background-repeat:no-repeat} | |
.status .info{color:white!important;text-shadow:0 -1px 0 rgba(0,0,0,0.3);font-size:32px;line-height:36px;padding:8px 0} | |
</style> | |
<body> | |
<div class="content round_border"> |