React NativeTesting (Unit, Component & E2E)

125 items

1

Detox vs Appium vs Maestro: Gray-Box vs Black-Box E2E

Flashcard
2

PR Quality Gates: Lint, Typecheck and Tests in CI

Flashcard
3

Flaky Tests: Causes and Fixes

Flashcard
4

Testing Navigation-Dependent Components

Slides / Video
5

Asserting Element Presence

Code Quiz
6

Detox waitFor Synchronization

Code Quiz
7

Rendering With a Context Provider

Code Quiz
8

Mocking Network Requests in Tests

Slides / Video
9

Testing Async Code with async/await

Code Quiz
10

Faking Timers with jest.useFakeTimers

Code Quiz
11

Rendering with RNTL render

Code Quiz
12

Querying by Text with getByText

Code Quiz
13

Spying with jest.spyOn

Code Quiz
14

Accessibility Queries getByRole

Code Quiz
15

Querying by testID with getByTestId

Code Quiz
16

getBy vs queryBy vs findBy

Code Quiz
17

Simulating User Events with fireEvent

Slides / Video
18

Using testID for Element Selection

Slides / Video
19

Querying Elements in Tests

Slides / Video
20

Rendering Components with render()

Slides / Video
21

React Native Testing Library Overview

Slides / Video
22

Mocking Native Modules & Timers

Slides / Video
23

Mocking Functions with jest.fn & Spies

Slides / Video
24

Mocking Modules with jest.mock

Slides / Video
25

Setup & Teardown: beforeEach, afterEach

Slides / Video
26

Common Jest Matchers

Slides / Video
27

Test Structure: describe, it, expect

Slides / Video
28

Wrong Setup Hook for Reset

Code Quiz
29

Over-Mocking the react-native Module

Code Quiz
30

jest.mock Factory Returns Nothing

Code Quiz
31

Matcher Not Actually Invoked

Code Quiz
32

jest.fn Missing Parentheses

Code Quiz
33

Broken describe Block Syntax

Code Quiz
34

Jest Preset for React Native

Code Quiz
35

Comparing Objects with toBe

Code Quiz
36

Unit Testing Functions & Utilities

Slides / Video
37

Simulators vs Real Devices

Flashcard
38

Configuring Jest for React Native

Slides / Video
39

Jest as the Default Test Runner

Slides / Video
40

Testing Pyramid: Unit, Component, E2E

Slides / Video
41

What & What Not to Test

Slides / Video
42

Running Tests in CI/CD Pipelines

Slides / Video
43

Test Coverage Reports & Thresholds

Slides / Video
44

Writing E2E Test Flows on Device

Slides / Video
45

Maestro as an E2E Testing Alternative

Slides / Video
46

Enabling Jest Coverage Reports

Code Quiz
47

Detox Visibility Expectation

Code Quiz
48

Mocking Navigation Prop

Code Quiz
49

Mocking Fetch in a Test

Code Quiz
50

Detox Test Structure Basics

Code Quiz
51

Detox Tap and Type Actions

Code Quiz
52

Cleaning Up Between Tests

Code Quiz
53

Detox for End-to-End Testing

Slides / Video
54

Testing a Custom Hook

Code Quiz
55

Wrapping State Updates in act

Code Quiz
56

Firing a Press Event

Code Quiz
57

Snapshot Testing a Component

Code Quiz
58

Verifying a Callback Prop

Code Quiz
59

Waiting for Async UI

Code Quiz
60

Simulating Text Input

Code Quiz
61

Testing Components with Providers

Slides / Video
62

Simulating Events with fireEvent

Quiz
63

Coverage Thresholds

Quiz
64

Detox Synchronization

Quiz
65

Testing Custom Hooks

Quiz
66

Testing Props and Conditional Rendering

Quiz
67

Maestro E2E Flows

Quiz
68

Snapshot Testing Trade-offs

Quiz
69

Async Queries and waitFor

Quiz
70

Testing with Context Providers

Quiz
71

Detox Matchers and Actions

Quiz
72

Rendering with render()

Quiz
73

jest.fn vs jest.spyOn

Quiz
74

Mocking fetch Requests

Quiz
75

Common Jest Matchers

Quiz
76

Testing State Changes

Quiz
77

Test Structure Basics

Quiz
78

Setup and Teardown Hooks

Quiz
79

Testing with Navigation

Quiz
80

Mocking Native Modules

Quiz
81

Querying by testID and Text

Quiz
82

Faking Timers

Quiz
83

Unit Testing Pure Functions

Quiz
84

Handling act() Warnings

Quiz
85

Running Tests in CI

Quiz
86

Detox E2E Fundamentals

Quiz
87

Testing Pyramid Strategy

Quiz
88

Jest Config for React Native

Quiz
89

Mocking Modules with jest.mock

Quiz
90

Snapshot Testing Components

Slides / Video
91

Testing Hooks with renderHook

Slides / Video
92

Asserting Component Output

Slides / Video
93

Simulators/Emulators vs Real Devices

Flashcard
94

Detox for End-to-End Testing

Flashcard
95

Mocking with jest.mock and jest.fn

Flashcard
96

Testing Async UI with waitFor

Flashcard
97

Test Coverage Reporting

Flashcard
98

Updating Stale Snapshots

Flashcard
99

Simulating Events with fireEvent

Flashcard
100

Testing Hooks with renderHook

Flashcard
101

Maestro for E2E Flow Testing

Flashcard
102

Querying Elements in RNTL

Flashcard
103

Setup and Teardown Hooks

Flashcard
104

Using testID for Selection

Flashcard
105

Snapshot Testing Components

Flashcard
106

Providing Context and Store Wrappers

Flashcard
107

Writing E2E Test Flows

Flashcard
108

Jest Matchers and expect

Flashcard
109

The Testing Pyramid

Flashcard
110

Mocking Navigation in Tests

Flashcard
111

Appium as an E2E Alternative

Flashcard
112

React Native Testing Library Philosophy

Flashcard
113

Wrapping Updates in act()

Flashcard
114

Rendering Components with render()

Flashcard
115

Mocking Native Modules and AsyncStorage

Flashcard
116

Mocking Timers with useFakeTimers

Flashcard
117

Configuring the react-native Preset

Flashcard
118

Mocking Network Calls

Flashcard
119

Running Tests in CI/CD

Flashcard
120

Structuring Tests with describe and it

Flashcard
121

Debugging Failing Tests

Flashcard
122

Jest as the Default Test Runner

Flashcard
123

Unit Testing Pure Functions

Flashcard
124

Spying with jest.spyOn

Flashcard
125

Testing Async UI with waitFor & findBy

Slides / Video
FlashcardIntermediate

Detox vs Appium vs Maestro: Gray-Box vs Black-Box E2E

Detox is gray-box and syncs with the app internally, while Appium and Maestro are black-box tools that interact only through the UI.

Question

How do Detox, Appium, and Maestro differ in their E2E testing approach?

Click to reveal answer