tolltips added to card deck; supported in game-kit.js, _wallet-tokens.js (we should rename this for broader concept than just wallet)

This commit is contained in:
Disco DeDisco
2026-03-24 23:29:32 -04:00
parent f5a5ed9d8d
commit 7370fd611f
4 changed files with 56 additions and 15 deletions

View File

@@ -1,3 +1,4 @@
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
@@ -83,3 +84,23 @@ class GameKitTest(FunctionalTest):
"#id_kit_bag_dialog .kit-bag-placeholder",
)
)
def test_kit_dialog_deck_tooltip_shows_name_count_availability_and_stock_version(self):
self.browser.get(self.gate_url)
self.browser.find_element(By.ID, "id_kit_btn").click()
deck_el = self.wait_for(
lambda: self.browser.find_element(
By.CSS_SELECTOR, "#id_kit_bag_dialog .kit-bag-deck"
)
)
ActionChains(self.browser).move_to_element(deck_el).perform()
tooltip = self.browser.find_element(
By.CSS_SELECTOR, "#id_kit_bag_dialog .kit-bag-deck .token-tooltip"
)
self.wait_for(lambda: self.assertTrue(tooltip.is_displayed()))
text = tooltip.text
self.assertIn("Earthman", text)
self.assertIn("(Default)", text)
self.assertIn("108", text)
self.assertIn("active", text)
self.assertIn("Stock version", text)