@sprucelabs/heartwood-polish 6.0.236 → 6.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -12,7 +12,9 @@ class RedirectAction extends AbstractAction_1.default {
|
|
|
12
12
|
this.destinationId = id;
|
|
13
13
|
}
|
|
14
14
|
async go() {
|
|
15
|
-
|
|
15
|
+
const destination = this.baseUrl + `/#views/${this.destinationId}`;
|
|
16
|
+
console.log('redirecting to', destination);
|
|
17
|
+
await this.page.goto(destination);
|
|
16
18
|
const selector = '.' + this.destinationId.replace(/[^A-Za-z0-9]/, '_').replace('__*', '_');
|
|
17
19
|
await this.page.waitForSelector(selector);
|
|
18
20
|
await this.page.waitForTimeout(500);
|
package/build/polish.types.d.ts
CHANGED
|
@@ -23,7 +23,11 @@ export interface PolishStep {
|
|
|
23
23
|
groupManagers?: number;
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
|
-
export type PolishScript = PolishStep[]
|
|
26
|
+
export type PolishScript = PolishStep[] | {
|
|
27
|
+
name: string;
|
|
28
|
+
description: string;
|
|
29
|
+
steps: PolishStep[];
|
|
30
|
+
};
|
|
27
31
|
export interface PolishActionMap {
|
|
28
32
|
}
|
|
29
33
|
export type ActionName = keyof PolishActionMap;
|