Bug 32376: Remove creation of selenium_failure_2.png

This was for debugging purpose.

Test plan:
Run the tests and confirm that the screenshot is not generated when the
patch is applied

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Jonathan Druart 2022-11-30 08:32:20 +01:00 committed by Tomas Cohen Arazi
parent ab48b53d96
commit aa6d1ca0c7
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -94,7 +94,6 @@ SKIP: {
$driver->find_element('//*[@id="register-2FA"]')->click;
# Wait for the response then go to the page, don't wait for the redirect
$s->wait_for_ajax;
$driver->capture_screenshot('selenium_failure_2.png');
$driver->get($s->base_url . q|members/two_factor_auth.pl|);
is(
$driver->find_element( '//div[@id="registration-status-disabled"]/div[@class="two-factor-status"]' )->get_text,