package com.dunerealms.menus;
import java.util.List;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class SuppliedDocumentTest {
@Test void actionsKeepTheirOriginalOpaqueSlotsWithoutAnExtraConfirmation(){
String html=SuppliedDocument.html("hub","Dune Realms","",List.of(new Card(10,"Travel",List.of("Imperial passage"),"compass"),new Card(51,"Collect",List.of(),"chest")),List.of());
assertTrue(html.contains("data-slot='10'"));assertTrue(html.contains("data-slot='51'"));assertFalse(html.contains("data-pick"));assertFalse(html.contains("Confirm"));
}
@Test void playerControlledTextCannotInjectActionsOrMarkup(){
String html=SuppliedDocument.html("exchange","","quoted",List.of(new Card(12,"