<commit_before>package integration;

import org.junit.Before;
import org.junit.Test;

import static com.codeborne.selenide.Condition.text;
import static com.codeborne.selenide.Selenide.$;

public class HoverTest extends IntegrationTest {
  @Before
  public void openTestPageWithJQuery() {
    openFile("page_with_jquery.html");
  }

  @Test
  public void canEmulateHover() {
    $("#hoverable").shouldHave(text("It's not hover"));

    $("#hoverable").hover();
    $("#hoverable").shouldHave(text("It's hover"));

    $("h1").hover();
    $("#hoverable").shouldHave(text("It's not hover"));
  }
}<commit_msg>fixed HoverTest: avoid depending on browser initial state<commit_after>package integration;

import org.junit.Before;
import org.junit.Test;

import static com.codeborne.selenide.Condition.text;
import static com.codeborne.selenide.Selenide.$;

public class HoverTest extends IntegrationTest {
  @Before
  public void openTestPageWithJQuery() {
    openFile("page_with_jquery.html");
  }

  @Test
  public void canEmulateHover() {
    $("#hoverable").hover();
    $("#hoverable").shouldHave(text("It's hover"));

    $("h1").hover();
    $("#hoverable").shouldHave(text("It's not hover"));
  }
}
{'fraction_non_alphanumeric': 0.1596009975062344, 'fraction_numerical': 0.0016625103906899418, 'mean_word_length': 4.990049751243781, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '810703', 'n_tokens_mistral': 385, 'n_tokens_neox': 378, 'n_words': 76}