@desk-framework/frame-test
Advanced tools
Comparing version 4.0.0-dev.10 to 4.0.0-dev.11
@@ -9,3 +9,3 @@ import { app, bound, Activity, UIButton, UICell, UILabel, UITextField, ViewComposite, } from "@desk-framework/frame-core"; | ||
} | ||
path = "count"; | ||
navigationPageId = "count"; | ||
count = 0; | ||
@@ -12,0 +12,0 @@ onCountUp() { |
@@ -1,9 +0,9 @@ | ||
import { ActivationContext, ConfigOptions, GlobalContext } from "@desk-framework/frame-core"; | ||
import { TestActivationPath } from "./TestActivationPath.js"; | ||
import { ActivityContext, ConfigOptions, GlobalContext } from "@desk-framework/frame-core"; | ||
import { TestNavigationPath } from "./TestNavigationPath.js"; | ||
import { TestRenderer } from "../renderer/TestRenderer.js"; | ||
/** Type definition for the global {@link app} context with test-specific render and activation contexts, set by the {@link useTestContext} function */ | ||
/** Type definition for the global {@link app} context with test-specific render and activity contexts, set by the {@link useTestContext} function */ | ||
export type TestContext = GlobalContext & { | ||
renderer: TestRenderer; | ||
activities: ActivationContext & { | ||
activationPath: TestActivationPath; | ||
activities: ActivityContext & { | ||
navigationPath: TestNavigationPath; | ||
}; | ||
@@ -10,0 +10,0 @@ }; |
import { ConfigOptions, app, } from "@desk-framework/frame-core"; | ||
import { TestScope } from "../TestScope.js"; | ||
import { TestTheme } from "../style/TestTheme.js"; | ||
import { TestActivationPath } from "./TestActivationPath.js"; | ||
import { TestNavigationPath } from "./TestNavigationPath.js"; | ||
import { TestRenderer } from "../renderer/TestRenderer.js"; | ||
@@ -59,5 +59,5 @@ import { TestViewportContext } from "./TestViewportContext.js"; | ||
app.viewport = new TestViewportContext(); | ||
// create test activation path and set initial path | ||
app.activities.activationPath = new TestActivationPath(options); | ||
// create test navigation path and set initial path | ||
app.activities.navigationPath = new TestNavigationPath(options); | ||
return app; | ||
} |
@@ -6,3 +6,3 @@ import { Assertion, NegatedAssertion } from "./Assertion.js"; | ||
export { Assertion, NegatedAssertion, TestCase, TestScope, TestResult, TestResultsData, }; | ||
export * from "./app/TestActivationPath.js"; | ||
export * from "./app/TestNavigationPath.js"; | ||
export * from "./app/OutputAssertion.js"; | ||
@@ -9,0 +9,0 @@ export * from "./app/TestOutputElement.js"; |
@@ -5,3 +5,3 @@ import { Assertion, NegatedAssertion } from "./Assertion.js"; | ||
export { Assertion, NegatedAssertion, TestCase, TestScope, }; | ||
export * from "./app/TestActivationPath.js"; | ||
export * from "./app/TestNavigationPath.js"; | ||
export * from "./app/OutputAssertion.js"; | ||
@@ -8,0 +8,0 @@ export * from "./app/TestOutputElement.js"; |
@@ -204,5 +204,5 @@ import { Assertion } from "./Assertion.js"; | ||
/** | ||
* Waits for the activation path to match the given string | ||
* Waits for the global navigation path to match the given string | ||
* | ||
* @summary This method starts checking the activation path periodically (using {@link GlobalContext.getPath()}), and waits for the path to match the provided string. If the path still doesn't match after the given timeout (number of milliseconds) this method throws an error. | ||
* @summary This method starts checking the navigation path periodically (using {@link GlobalContext.getPath()}), and waits for the path to match the provided string. If the path still doesn't match after the given timeout (number of milliseconds) this method throws an error. | ||
* @note This method is asynchronous and **must** be `await`-ed. | ||
@@ -209,0 +209,0 @@ * @param timeout Timeout, in milliseconds |
@@ -314,5 +314,5 @@ import { app } from "@desk-framework/frame-core"; | ||
/** | ||
* Waits for the activation path to match the given string | ||
* Waits for the global navigation path to match the given string | ||
* | ||
* @summary This method starts checking the activation path periodically (using {@link GlobalContext.getPath()}), and waits for the path to match the provided string. If the path still doesn't match after the given timeout (number of milliseconds) this method throws an error. | ||
* @summary This method starts checking the navigation path periodically (using {@link GlobalContext.getPath()}), and waits for the path to match the provided string. If the path still doesn't match after the given timeout (number of milliseconds) this method throws an error. | ||
* @note This method is asynchronous and **must** be `await`-ed. | ||
@@ -319,0 +319,0 @@ * @param timeout Timeout, in milliseconds |
{ | ||
"name": "@desk-framework/frame-test", | ||
"version": "4.0.0-dev.10", | ||
"version": "4.0.0-dev.11", | ||
"publishConfig": { | ||
@@ -32,3 +32,3 @@ "tag": "next" | ||
"peerDependencies": { | ||
"@desk-framework/frame-core": "4.0.0-dev.10" | ||
"@desk-framework/frame-core": "4.0.0-dev.11" | ||
}, | ||
@@ -35,0 +35,0 @@ "devDependencies": { |
import { | ||
ActivationContext, | ||
ActivityContext, | ||
ConfigOptions, | ||
@@ -9,10 +9,10 @@ GlobalContext, | ||
import { TestTheme } from "../style/TestTheme.js"; | ||
import { TestActivationPath } from "./TestActivationPath.js"; | ||
import { TestNavigationPath } from "./TestNavigationPath.js"; | ||
import { TestRenderer } from "../renderer/TestRenderer.js"; | ||
import { TestViewportContext } from "./TestViewportContext.js"; | ||
/** Type definition for the global {@link app} context with test-specific render and activation contexts, set by the {@link useTestContext} function */ | ||
/** Type definition for the global {@link app} context with test-specific render and activity contexts, set by the {@link useTestContext} function */ | ||
export type TestContext = GlobalContext & { | ||
renderer: TestRenderer; | ||
activities: ActivationContext & { activationPath: TestActivationPath }; | ||
activities: ActivityContext & { navigationPath: TestNavigationPath }; | ||
}; | ||
@@ -80,6 +80,6 @@ | ||
// create test activation path and set initial path | ||
app.activities.activationPath = new TestActivationPath(options); | ||
// create test navigation path and set initial path | ||
app.activities.navigationPath = new TestNavigationPath(options); | ||
return app as TestContext; | ||
} |
@@ -14,3 +14,3 @@ import { Assertion, NegatedAssertion } from "./Assertion.js"; | ||
}; | ||
export * from "./app/TestActivationPath.js"; | ||
export * from "./app/TestNavigationPath.js"; | ||
export * from "./app/OutputAssertion.js"; | ||
@@ -17,0 +17,0 @@ export * from "./app/TestOutputElement.js"; |
@@ -331,5 +331,5 @@ import { app } from "@desk-framework/frame-core"; | ||
/** | ||
* Waits for the activation path to match the given string | ||
* Waits for the global navigation path to match the given string | ||
* | ||
* @summary This method starts checking the activation path periodically (using {@link GlobalContext.getPath()}), and waits for the path to match the provided string. If the path still doesn't match after the given timeout (number of milliseconds) this method throws an error. | ||
* @summary This method starts checking the navigation path periodically (using {@link GlobalContext.getPath()}), and waits for the path to match the provided string. If the path still doesn't match after the given timeout (number of milliseconds) this method throws an error. | ||
* @note This method is asynchronous and **must** be `await`-ed. | ||
@@ -336,0 +336,0 @@ * @param timeout Timeout, in milliseconds |
@@ -24,3 +24,3 @@ import { | ||
} | ||
override path = "count"; | ||
override navigationPageId = "count"; | ||
count = 0; | ||
@@ -27,0 +27,0 @@ onCountUp() { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
378435