<commit_before>package guitests;

import static org.junit.Assert.*;

import java.util.ArrayList;
import java.util.List;

import org.junit.Test;

import backend.resource.TurboIssue;
import javafx.application.Platform;
import javafx.scene.control.TextField;
import ui.UI;
import util.events.ShowIssuePickerEvent;

public class IssuePickerTest extends UITest {

    private static final String QUERY_FIELD_ID = "#issuepickerQueryField";

    @Test
    public void showIssuePicker_typeQuery_displaysCorrectly() {
        triggerIssuePicker(new ArrayList<>());
        TextField issuePickerTextField = find(QUERY_FIELD_ID);
        click(issuePickerTextField);
        type("world");
        assertEquals("world", issuePickerTextField.getText());
    }

    private void triggerIssuePicker(List<TurboIssue> allIssues) {
        Platform.runLater(stage::hide);
        UI.events.triggerEvent(new ShowIssuePickerEvent(allIssues, false));
        waitUntilNodeAppears(QUERY_FIELD_ID);
    }
}<commit_msg>Fixes syntax in issue picker tests<commit_after>package guitests;

import static org.junit.Assert.*;

import java.util.ArrayList;
import java.util.List;

import org.junit.Test;
import org.loadui.testfx.GuiTest;

import backend.resource.TurboIssue;
import javafx.application.Platform;
import javafx.scene.control.TextField;
import ui.UI;
import util.events.ShowIssuePickerEvent;

public class IssuePickerTest extends UITest {

    private static final String QUERY_FIELD_ID = "#issuepickerQueryField";

    @Test
    public void showIssuePicker_typeQuery_displaysCorrectly() {
        triggerIssuePicker(new ArrayList<>());
        TextField issuePickerTextField = GuiTest.find(QUERY_FIELD_ID);
        clickOn(issuePickerTextField);
        type("world");
        assertEquals("world", issuePickerTextField.getText());
    }

    private void triggerIssuePicker(List<TurboIssue> allIssues) {
        Platform.runLater(getStage()::hide);
        UI.events.triggerEvent(new ShowIssuePickerEvent(allIssues, false));
        waitUntilNodeAppears(QUERY_FIELD_ID);
    }
}
{'fraction_non_alphanumeric': 0.0965082444228904, 'fraction_numerical': 0.0, 'mean_word_length': 4.545698924731183, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '967098', 'n_tokens_mistral': 608, 'n_tokens_neox': 574, 'n_words': 115}