# Path: botlistbot/captions.py
# TEST = "{} Test".format(Emoji.ANCHOR)
# BACK_TO_MENU = "{} Back to Menu".format(Emoji.LEFTWARDS_BLACK_ARROW)
# EXIT = "🔙 Exit"
# REFRESH = "🔄 Refresh"
# ADD_BOT = "➕ Add new bot"
# EDIT_BOT = "🛠 Edit Bot"
# SEND_BOTLIST = "☑ Update BotList"
# SEND_ACTIVITY_LOGS = "Activity Logs"
# BACK = "{} Back".format(Emoji.BACK_WITH_LEFTWARDS_ARROW_ABOVE)
# BACK_TO_CATEGORY = "{} to Category".format(Emoji.BACK_WITH_LEFTWARDS_ARROW_ABOVE)
# APPROVE_BOTS = "Approve Bots"
# SEND_CONFIG_FILES = "Runtime Files"
# FIND_OFFLINE = "Find Offline Bots"
# APPROVE_SUGGESTIONS = "Approve Suggestions"
# PENDING_UPDATE = "Pending Bots"
# SUGGESTION_PENDING_EMOJI = "👓"
# CHANGE_SUGGESTION = "📝 Make Changes"
# DONE = "🔚 Done"
# SHARE = "Share"
# CATEGORIES = "📚 Categories"
# EXPLORE = "🔄 Explore"
# NEW_BOTS = "🆕 New Bots"
# SEARCH = "🔎 Search"
# CONTRIBUTING = "📤 Contributing"
# EXAMPLES = "📝 Examples"
# HELP = "❔ Help"
# ADMIN_MENU = "🛃 Admin Menu"
# SWITCH_PRIVATE = "📖️ Continue in private"
# FAVORITES = "💖 My Favorites"
# ADD_FAVORITE = "➕ Add"
# REMOVE_FAVORITE = "➖ Remove"
# REMOVE_FAVORITE_VERBOSE = "➖ Remove from 💖 Favorites"
# ADD_TO_FAVORITES = "Add to 💖 Favorites"
# PIN = "📍 Pin"
# def random_done_delete():


from botlistbot import captions
from tgintegration import BotIntegrationClient


def test_categories(client: BotIntegrationClient):
    # Responses implement __eq__
    assert (client.send_command_await("categories")
            == client.send_message_await(captions.CATEGORIES))

    cat = client.send_command_await("categories", num_expected=1)
    social = cat.inline_keyboards[0].press_button_await(pattern=r'.*Social')

# Path: botlistbot/captions.py
# TEST = "{} Test".format(Emoji.ANCHOR)
# BACK_TO_MENU = "{} Back to Menu".format(Emoji.LEFTWARDS_BLACK_ARROW)
# EXIT = "🔙 Exit"
# REFRESH = "🔄 Refresh"
# ADD_BOT = "➕ Add new bot"
# EDIT_BOT = "🛠 Edit Bot"
# SEND_BOTLIST = "☑ Update BotList"
# SEND_ACTIVITY_LOGS = "Activity Logs"
# BACK = "{} Back".format(Emoji.BACK_WITH_LEFTWARDS_ARROW_ABOVE)
# BACK_TO_CATEGORY = "{} to Category".format(Emoji.BACK_WITH_LEFTWARDS_ARROW_ABOVE)
# APPROVE_BOTS = "Approve Bots"
# SEND_CONFIG_FILES = "Runtime Files"
# FIND_OFFLINE = "Find Offline Bots"
# APPROVE_SUGGESTIONS = "Approve Suggestions"
# PENDING_UPDATE = "Pending Bots"
# SUGGESTION_PENDING_EMOJI = "👓"
# CHANGE_SUGGESTION = "📝 Make Changes"
# DONE = "🔚 Done"
# SHARE = "Share"
# CATEGORIES = "📚 Categories"
# EXPLORE = "🔄 Explore"
# NEW_BOTS = "🆕 New Bots"
# SEARCH = "🔎 Search"
# CONTRIBUTING = "📤 Contributing"
# EXAMPLES = "📝 Examples"
# HELP = "❔ Help"
# ADMIN_MENU = "🛃 Admin Menu"
# SWITCH_PRIVATE = "📖️ Continue in private"
# FAVORITES = "💖 My Favorites"
# ADD_FAVORITE = "➕ Add"
# REMOVE_FAVORITE = "➖ Remove"
# REMOVE_FAVORITE_VERBOSE = "➖ Remove from 💖 Favorites"
# ADD_TO_FAVORITES = "Add to 💖 Favorites"
# PIN = "📍 Pin"
# def random_done_delete():


# Path: tests/integration/test_navigation.py
from botlistbot import captions
from tgintegration import BotIntegrationClient



def test_categories(client: BotIntegrationClient):
    # Responses implement __eq__
    assert (client.send_command_await("categories")
            == client.send_message_await(captions.CATEGORIES))

    cat = client.send_command_await("categories", num_expected=1)
    social = cat.inline_keyboards[0].press_button_await(pattern=r'.*Social')

    ilkb = social.inline_keyboards[0]