from tests.support.classic.asserts import assert_error from tests.support.http_handlers.authentication import basic_authentication from . import send_alert_text def test_basic_auth_unsupported_operation(url, session): """ Basic auth dialogues are not included in HTML's definition of 'user prompts': those are limited to the 'simple dialogues' such as window.alert(), window.prompt() et al. and the print dialogue. """ session.url = basic_authentication(url) response = send_alert_text(session, "Federer") assert_error(response, "unsupported operation")