<!DOCTYPE html>
<script src="support/fake-selectmenu.js"></script>
<body>
<script>
  const selectmenu = createFakeSelectmenu('hello world');
  document.body.appendChild(selectmenu);

  const oldSelectedValue = selectmenu.querySelector('.fake-selectmenu-selected-value');
  const newSelectedValue = document.createElement('div');
  newSelectedValue.textContent = 'new selected value';

  const button = selectmenu.querySelector('.fake-selectmenu-internal-selectmenu-button');
  button.replaceChild(newSelectedValue, oldSelectedValue);
</script>
