|
|
@@ -505,10 +505,14 @@ def test_static_agent_config_controls_are_aligned_for_chat_and_event_agents():
|
|
|
|
|
|
assert '<dialog id="chat-config-dialog"' in html
|
|
|
assert '<dialog id="event-config-dialog"' in html
|
|
|
- assert 'id="open-chat-config"' in html
|
|
|
- assert 'id="open-event-config"' in html
|
|
|
- assert 'id="open-chat-config-panel"' in html
|
|
|
- assert 'id="open-event-config-panel"' in html
|
|
|
+ assert html.count('id="open-chat-config-panel"') == 1
|
|
|
+ assert html.count('id="open-event-config-panel"') == 1
|
|
|
+ assert 'id="open-chat-config"' not in html
|
|
|
+ assert 'id="open-event-config"' not in html
|
|
|
+ assert '#open-chat-config"' not in js
|
|
|
+ assert '#open-event-config"' not in js
|
|
|
+ assert '#open-chat-config-panel"' in js
|
|
|
+ assert '#open-event-config-panel"' in js
|
|
|
assert 'id="close-chat-config"' in html
|
|
|
assert 'id="close-event-config"' in html
|
|
|
assert "chatConfigDialog.showModal()" in js
|