BootstrapFormTestUtils
Utility class for testing Bootstrap dynamic forms
Static Methods
static assertBsFieldError() | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
Asserts that a Bootstrap field shows an error message | ||||||||||||
Presentation | ||||||||||||
Parameters
Returnsvoid |
static assertBsFieldValue() | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
Asserts that a Bootstrap field has a specific value | ||||||||||||
Presentation | ||||||||||||
Parameters
Returnsvoid |
static assertFormValue() | |||||||||
|---|---|---|---|---|---|---|---|---|---|
Asserts that the form has a specific value | |||||||||
Presentation | |||||||||
Parameters
Returnsvoid |
static assertHasClass() | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
Asserts that an element has a specific Bootstrap class | ||||||||||||
Presentation | ||||||||||||
Parameters
Returnsvoid |
static builder() |
|---|
Creates a new Bootstrap form config builder |
Presentation |
Returns |
static async createTest() | ||||||
|---|---|---|---|---|---|---|
Creates a Bootstrap dynamic form test setup with proper providers | ||||||
Presentation | ||||||
Parameters
ReturnsPromise< |
static getBsFieldElements() | |||||||||
|---|---|---|---|---|---|---|---|---|---|
Gets all Bootstrap field elements from the fixture | |||||||||
Presentation | |||||||||
Parameters
ReturnsNodeListOf<Element> |
static getFormErrors() | ||||||
|---|---|---|---|---|---|---|
Gets validation errors from the component | ||||||
Presentation | ||||||
Parameters
Returnsunknown[] |
static getFormValue() | ||||||
|---|---|---|---|---|---|---|
Gets the current form value from the component | ||||||
Presentation | ||||||
Parameters
ReturnsRecord<string, unknown> |
static isFormValid() | ||||||
|---|---|---|---|---|---|---|
Checks if the form is valid | ||||||
Presentation | ||||||
Parameters
Returnsboolean |
static async simulateBsButtonClick() | |||||||||
|---|---|---|---|---|---|---|---|---|---|
Simulates Bootstrap button click | |||||||||
Presentation | |||||||||
Parameters
ReturnsPromise<void> |
static async simulateBsCheckbox() | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
Simulates Bootstrap checkbox toggle | ||||||||||||
Presentation | ||||||||||||
Parameters
ReturnsPromise<void> |
static async simulateBsInput() | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
Simulates user input on a Bootstrap input field | ||||||||||||
Presentation | ||||||||||||
Parameters
ReturnsPromise<void> |
static async simulateBsRadio() | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
Simulates Bootstrap radio button selection | ||||||||||||
Presentation | ||||||||||||
Parameters
ReturnsPromise<void> |
static async simulateBsSelect() | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
Simulates user selection on a Bootstrap select | ||||||||||||
Presentation | ||||||||||||
Parameters
ReturnsPromise<void> |
static async simulateBsSlider() | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
Simulates Bootstrap slider (range) input (.form-range) | ||||||||||||
Presentation | ||||||||||||
Parameters
ReturnsPromise<void> |
static async simulateBsToggle() | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
Simulates Bootstrap toggle switch | ||||||||||||
Presentation | ||||||||||||
Parameters
ReturnsPromise<void> |
static async waitForInit() | ||||||
|---|---|---|---|---|---|---|
Waits for the Bootstrap dynamic form to initialize | ||||||
Presentation | ||||||
Parameters
ReturnsPromise<void> |