registerTestSteps static method

void registerTestSteps([
  1. TestStepRegistry? registry
])

Registers the test steps to the optional registry. If not set, the default TestStepRegistry will be used.

Implementation

static void registerTestSteps([TestStepRegistry? registry]) {
  (registry ?? TestStepRegistry.instance).registerCustomSteps([
    TestStepBuilder(
      availableTestStep: AvailableTestStep(
        form: AssertFirestoreValueForm(),
        help: TestFirestoreTranslations
            .atf_firestore_help_assert_firestore_value,
        id: AssertFirestoreValueStep.id,
        keys: const {'collectionPath', 'documentId', 'equals', 'value'},
        quickAddValues: null,
        title: TestFirestoreTranslations
            .atf_firestore_title_assert_firestore_value,
        widgetless: true,
        type: null,
      ),
      testRunnerStepBuilder: AssertFirestoreValueStep.fromDynamic,
    ),
    TestStepBuilder(
      availableTestStep: AvailableTestStep(
        form: SetFirestoreValueForm(),
        help:
            TestFirestoreTranslations.atf_firestore_help_set_firestore_value,
        id: SetFirestoreValueStep.id,
        keys: const {'collectionPath', 'documentId', 'value'},
        quickAddValues: null,
        title:
            TestFirestoreTranslations.atf_firestore_title_set_firestore_value,
        widgetless: true,
        type: null,
      ),
      testRunnerStepBuilder: SetFirestoreValueStep.fromDynamic,
    ),
  ]);
}