Testing a Table ToggleColumn
I have the following in a relation manager:
and the following test:
I'd like to test the logic for the
ToggleColumn
. I can test the initial state based on the data I set up in the test using ->assertTableActionDataSet()
, but I want to
1. change the state of the toggle in the test and work the updateStateUsing()
function and
2. check if the toggle is disabled (or not) based on the setup data I feed it
I have read over the state testing docs, but they only seem to describe read-only tests.3 Replies
bump
Best method i've found to toggle the state is:
Not sure how you can test if its disabled, but you can assert its state with
Thanks, @Lind , that first function does help me call the update function. Still trying to figure out how to check if the ToggleColumn is disabled or not.