Replace postForm() with postFormData() #144
GitHub Actions / Test Results
succeeded
Dec 18, 2023 in 0s
Test Results ✅
✅ strcalc/build/test-results/test-frontend-browser/TESTS-TestSuites.xml
11 tests were completed in 6s with 11 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
components/app.test.js | 1✅ | 9ms | ||
components/calculator.test.js | 3✅ | 113ms | ||
components/calculators.test.js | 1✅ | 34ms | ||
components/request.test.js | 5✅ | 14ms | ||
main.test.js | 1✅ | 72ms |
✅ components/app.test.js
✅ initial state after calling App.init() > contains the "Hello, World!" title
✅ components/calculator.test.js
✅ Calculator > renders form and result placeholder
✅ Calculator > updates result placeholder with successful result
✅ Calculator > updates result placeholder with error message
✅ components/calculators.test.js
✅ calculators > defaultPost requests expected backend
✅ components/request.test.js
✅ Request > post > succeeds
✅ Request > post > rejects with an error if the response contains "error"
✅ Request > post > rejects with an error if the response status is not OK
✅ Request > post > rejects with default status text if no response body
✅ Request > postFormData > succeeds
✅ main.test.js
✅ String Calculator UI on initial page load > contains the "Hello, World!" placeholder
✅ strcalc/build/test-results/test-frontend/TESTS-TestSuites.xml
11 tests were completed in 2s with 11 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
components/app.test.js | 1✅ | 51ms | ||
components/calculator.test.js | 3✅ | 179ms | ||
components/calculators.test.js | 1✅ | 53ms | ||
components/request.test.js | 5✅ | 27ms | ||
main.test.js | 1✅ | 506ms |
✅ components/app.test.js
✅ initial state after calling App.init() > contains the "Hello, World!" title
✅ components/calculator.test.js
✅ Calculator > renders form and result placeholder
✅ Calculator > updates result placeholder with successful result
✅ Calculator > updates result placeholder with error message
✅ components/calculators.test.js
✅ calculators > defaultPost requests expected backend
✅ components/request.test.js
✅ Request > post > succeeds
✅ Request > post > rejects with an error if the response contains "error"
✅ Request > post > rejects with an error if the response status is not OK
✅ Request > post > rejects with default status text if no response body
✅ Request > postFormData > succeeds
✅ main.test.js
✅ String Calculator UI on initial page load > contains the "Hello, World!" placeholder
✅ strcalc/build/test-results/test-large/TESTS-TestSuites.xml
1 tests were completed in 1s with 1 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
WebApplicationTest | 1✅ | 1s |
✅ WebApplicationTest
com.mike_bland.training.testing.stringcalculator.WebApplicationTest
✅ testTitle()
✅ strcalc/build/test-results/test-medium-coverage/TESTS-TestSuites.xml
3 tests were completed in 2s with 3 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
ServletContractTest | 3✅ | 2s |
✅ ServletContractTest
com.mike_bland.training.testing.stringcalculator.ServletContractTest
✅ getAddEndpointReturnsPlaceholderString()
✅ addRequestSuccess()
✅ addRequestError()
✅ strcalc/build/test-results/test-medium/TESTS-TestSuites.xml
2 tests were completed in 3s with 2 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
ServletContractTest | 2✅ | 3s |
✅ ServletContractTest
com.mike_bland.training.testing.stringcalculator.ServletContractTest
✅ productionImplementationTemporarilyReturnsError()
✅ servesLandingPage()
✅ strcalc/build/test-results/test/TESTS-TestSuites.xml
1 tests were completed in 25ms with 1 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
TemporaryStringCalculatorTest | 1✅ | 25ms |
✅ TemporaryStringCalculatorTest
com.mike_bland.training.testing.stringcalculator.TemporaryStringCalculatorTest
✅ alwaysThrows()
Loading