package seedu.address.ui;

import static org.junit.Assert.assertEquals;

import org.junit.After;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.testfx.api.FxRobot;
import org.testfx.api.FxToolkit;

import javafx.scene.web.WebView;
import seedu.address.testutil.GuiTests;

@Category({GuiTests.class})
public class HelpWindowTest extends FxRobot {

    private HelpWindow helpWindow;

    private WebView webView;

    @BeforeClass
    public static void setupFxToolkit() throws Exception {
        FxToolkit.registerPrimaryStage();
    }

    @Before
    public void setupHelpWindow() throws Exception {
        FxToolkit.registerStage(() -> {
            helpWindow = new HelpWindow();
            return helpWindow.getRoot();
        });
        FxToolkit.showStage();
        webView = lookup("#webView").query();
    }

    @After
    public void teardownHelpWindow() throws Exception {
        FxToolkit.cleanupStages();
    }

    @Test
    public void constructor() {
        assertEquals("https://github.com/se-edu/addressbook-level4/blob/master/docs/UserGuide.md",
                     webView.getEngine().getLocation());
    }

}

@@ -66,16 +66,18 @@
 quals;%0A%0A
+//
 import o
@@ -92,16 +92,18 @@
 .After;%0A
+//
 import o
@@ -119,16 +119,17 @@
 Before;%0A
+%0A
 import o
@@ -629,24 +629,26 @@
 %0A    %7D%0A%0A    
+/*
 @Before%0A    
@@ -748,16 +748,23 @@
         
+return 
 helpWind
@@ -790,32 +790,34 @@
 ();%0A            
+//
 return helpWindo
@@ -1028,24 +1028,27 @@
 ges();%0A    %7D
+**/
 %0A%0A    @Test%0A

remove unsued imports