-
Notifications
You must be signed in to change notification settings - Fork 2
/
TestDescriptorSencha.ts
41 lines (35 loc) · 1.71 KB
/
TestDescriptorSencha.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import { ClassUnion, Mixin } from "typescript-mixin-class"
import { serializable } from "typescript-serializable-mixin"
import { prototypeValue } from "../../util/Helpers.js"
import { config } from "../test/TestDescriptor.js"
import { TestDescriptorBrowser } from "../test/TestDescriptorBrowser.js"
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
/**
* Test descriptor class for tests running in the browser environment.
*/
@serializable({ id : 'TestDescriptorSencha' })
export class TestDescriptorSencha extends Mixin(
[ TestDescriptorBrowser ],
(base : ClassUnion<typeof TestDescriptorBrowser>) =>
class TestDescriptorSencha extends base {
/**
* By default the test will start after `Ext.onReady()`. Set to `false` to launch the test immediately
* after page load.
*
* Defaults to: `true`
*/
@config()
@prototypeValue(true)
waitForExtReady : boolean
/**
* Setting this configuration option to `true` will cause Siesta to wait until the SenchaCmd application on the test page will become ready,
* before starting the test. More precisely, it will wait till the `launched` property of the application, specified
* in the `Ext.manifest.name` becomes `true`.
*
* Defaults to: `false`
*/
@config()
@prototypeValue(false)
waitForAppReady : boolean
}
){}