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

(-)a/t/db_dependent/selenium/authentication_2fa.t (-9 / +8 lines)
Lines 75-88 SKIP: { Link Here
75
        is(
75
        is(
76
            $driver->find_element(
76
            $driver->find_element(
77
                '//div[@id="registration-status-disabled"]/div[@class="alert alert-info two-factor-status"]')->get_text,
77
                '//div[@id="registration-status-disabled"]/div[@class="alert alert-info two-factor-status"]')->get_text,
78
            'Status: Disabled',
78
            "Two-factor authentication: Disabled\nYour account is not protected with two-factor authentication.",
79
            '2FA is disabled'
79
            '2FA is disabled'
80
        );
80
        );
81
81
82
        is(
82
        is(
83
            $driver->find_element(
83
            $driver->find_element(
84
                '//div[@id="registration-status-enabled"]/div[@class="alert alert-info two-factor-status"]')->get_text,
84
                '//div[@id="registration-status-enabled"]/div[@class="alert alert-info two-factor-status"]')->get_text,
85
            '',    # 'Status: Enabled' is not shown
85
            '',    # 'Two-factor authentication: Enabled' is not shown
86
            '2FA is disabled'
86
            '2FA is disabled'
87
        );
87
        );
88
88
Lines 110-123 SKIP: { Link Here
110
        is(
110
        is(
111
            $driver->find_element(
111
            $driver->find_element(
112
                '//div[@id="registration-status-disabled"]/div[@class="alert alert-info two-factor-status"]')->get_text,
112
                '//div[@id="registration-status-disabled"]/div[@class="alert alert-info two-factor-status"]')->get_text,
113
            '',    # 'Status: Disabled' is not shown
113
            '',    # 'Two-factor authentication: Disabled' is not shown
114
            '2FA is enabled'
114
            '2FA is enabled'
115
        );
115
        );
116
116
117
        is(
117
        is(
118
            $driver->find_element(
118
            $driver->find_element(
119
                '//div[@id="registration-status-enabled"]/div[@class="alert alert-info two-factor-status"]')->get_text,
119
                '//div[@id="registration-status-enabled"]/div[@class="alert alert-info two-factor-status"]')->get_text,
120
            'Status: Enabled',
120
            "Two-factor authentication: Enabled\nYour account is protected with two-factor authentication.",
121
            '2FA is enabled'
121
            '2FA is enabled'
122
        );
122
        );
123
123
Lines 323-336 SKIP: { Link Here
323
        is(
323
        is(
324
            $driver->find_element(
324
            $driver->find_element(
325
                '//div[@id="registration-status-disabled"]/div[@class="alert alert-info two-factor-status"]')->get_text,
325
                '//div[@id="registration-status-disabled"]/div[@class="alert alert-info two-factor-status"]')->get_text,
326
            '',    # 'Status: Disabled' is not shown
326
            '',    # 'Two-factor authentication: Disabled' is not shown
327
            '2FA is enabled'
327
            '2FA is enabled'
328
        );
328
        );
329
329
330
        is(
330
        is(
331
            $driver->find_element(
331
            $driver->find_element(
332
                '//div[@id="registration-status-enabled"]/div[@class="alert alert-info two-factor-status"]')->get_text,
332
                '//div[@id="registration-status-enabled"]/div[@class="alert alert-info two-factor-status"]')->get_text,
333
            'Status: Enabled',
333
            "Two-factor authentication: Enabled\nYour account is protected with two-factor authentication.",
334
            '2FA is enabled'
334
            '2FA is enabled'
335
        );
335
        );
336
336
Lines 339-352 SKIP: { Link Here
339
        is(
339
        is(
340
            $driver->find_element(
340
            $driver->find_element(
341
                '//div[@id="registration-status-disabled"]/div[@class="alert alert-info two-factor-status"]')->get_text,
341
                '//div[@id="registration-status-disabled"]/div[@class="alert alert-info two-factor-status"]')->get_text,
342
            'Status: Disabled',
342
            "Two-factor authentication: Disabled\nYour account is not protected with two-factor authentication.",
343
            '2FA is disabled'
343
            '2FA is disabled'
344
        );
344
        );
345
345
346
        is(
346
        is(
347
            $driver->find_element(
347
            $driver->find_element(
348
                '//div[@id="registration-status-enabled"]/div[@class="alert alert-info two-factor-status"]')->get_text,
348
                '//div[@id="registration-status-enabled"]/div[@class="alert alert-info two-factor-status"]')->get_text,
349
            '',    # 'Status: Enabled' is not shown
349
            '',    # 'Two-factor authentication: Enabled' is not shown
350
            '2FA is disabled'
350
            '2FA is disabled'
351
        );
351
        );
352
352
353
- 

Return to bug 30724