View | Details | Raw Unified | Return to bug 28787
Collapse All | Expand All

(-)a/t/db_dependent/selenium/authentication_2fa.t (-13 / +14 lines)
Lines 150-156 SKIP: { Link Here
150
    };
150
    };
151
151
152
    subtest "Send OTP code" => sub {
152
    subtest "Send OTP code" => sub {
153
        plan tests => 4;
153
        plan tests => 3;
154
154
155
        # Make sure the send won't fail because of invalid email addresses
155
        # Make sure the send won't fail because of invalid email addresses
156
        $patron->library->set(
156
        $patron->library->set(
Lines 186-202 SKIP: { Link Here
186
            'Email not sent will display an error'
186
            'Email not sent will display an error'
187
        );
187
        );
188
188
189
        $patron->email('test@example.org');
189
        # This test will only pass if an SMTP server is defined
190
        $patron->store;
190
        # It cannot be mocked from selenium tests
191
        $driver->find_element('//a[@id="send_otp"]')->click;
191
        #$patron->email('test@example.org');
192
        $s->wait_for_ajax;
192
        #$patron->store;
193
        my $message =
193
        #$driver->find_element('//a[@id="send_otp"]')->click;
194
          $driver->find_element('//div[@id="email_success"]')->get_text;
194
        #$s->wait_for_ajax;
195
        is(
195
        #my $message =
196
            $message,
196
        #  $driver->find_element('//div[@id="email_success"]')->get_text;
197
            "The code has been sent by email, please check your inbox.",
197
        #is(
198
            'The email must have been sent correctly'
198
        #    $message,
199
        );
199
        #    "The code has been sent by email, please check your inbox.",
200
        #    'The email must have been sent correctly'
201
        #);
200
    };
202
    };
201
203
202
    subtest "Disable" => sub {
204
    subtest "Disable" => sub {
203
- 

Return to bug 28787