tim_vdv
testing panels in pest?
Hello, I'm writing my tests for both the Admin and App panels using a LoginHelper. The LoginHelper contains a login function for both the Admin and App panels. In each test file, I utilize the LoginHelper with the appropriate function based on the nature of the test (admin or app). Example below:
LoginHelper.php:
TestFile:
8 replies
detect the removal of a repeater
Hello, there's an deleteAction which you can add to the Repeater component. In the deleteAction you return the $action with an ->after method. In this after method you can call your function to calculate the costs. Example below:
Repeater::make('members')
->schema([
// ...
])
->deleteAction(
fn (Action $action) => $action->after(fn() => yourFunction()),
)
2 replies