File diff 1cc95d998f7c → e0b00ff2df58
roles/php_website/molecule/default/tests/test_parameters_optional.py
Show inline comments
 
@@ -230,9 +230,14 @@ def test_environment_indicator(host):
 

	
 
    page = host.run('curl https://parameters-optional.local/info.myphp')
 

	
 
    expected_content = """\
 
    <details open='true' style='position: fixed; left: 0; width: 100%; line-height: 1.5em; font-weight: bold; color: #00ff00;'>
 
        <summary style='background-color: #ff0000; list-style-type: none; position: fixed; bottom: 5px; z-index: 999999;'>&#128896;&#128898;</summary>
 
        <div style='background-color: #ff0000; width: 100%; text-align: center; position: fixed; bottom: 5px; z-index: 999998;'>parameters-optional</div>
 
    </details>"""
 

	
 
    assert page.rc == 0
 
    assert "<div id='website-environment' style='background-color: #ff0000; width: 100%; text-align: center; position: fixed; bottom: 5px; color: #00ff00; " \
 
        "font-weight: bold; z-index: 999999;'>parameters-optional</div></body>" in page.stdout
 
    assert expected_content in page.stdout
 

	
 

	
 
def test_php_rewrire_urls(host):