def test_con_logout():
    from selenium import webdriver
    import time
    from selenium.webdriver.chrome.options import Options
    from webdriver_manager.chrome import ChromeDriverManager

    opt = Options()
    opt.headless = True
    driver = webdriver.Chrome(ChromeDriverManager().install(), options=opt)

    driver.get('http://localhost:1667/#/')
    username = 'testuser1'
    driver.find_element_by_xpath('//*[@id="app"]/nav/div/ul/li[2]/a').click()
    time.sleep(2)
    # bejelentkezes
    driver.find_element_by_xpath('//input[@placeholder="Email"]').send_keys('<EMAIL>')
    driver.find_element_by_xpath('//input[@placeholder="Password"]').send_keys('<PASSWORD>$')
    driver.find_element_by_xpath('//*[@id="app"]/div/div/div/div/form/button').click()
    time.sleep(4)
    logedin_user = driver.find_element_by_xpath('//*[@id="app"]/nav/div/ul/li[4]/a').text
    # bejelentkezett allapot vizsgalat
    assert username == logedin_user

    # kijelentkezes
    driver.find_element_by_xpath('//*[@id="app"]/nav/div/ul/li[5]/a').click()
    # kijelentkezes megtortent vizsgalata
    signin_button = driver.find_element_by_xpath('//*[@id="app"]/nav/div/ul/li[2]/a').text
    assert signin_button == 'Sign in'
    print('Felhasznalo kijeletkezve')

    driver.close()
