@IgnoreBrowser(value = "internet.*", version = "8\\.*", reason="See http://jira.xwiki.org/browse/XE-1146"),
@IgnoreBrowser(value = "internet.*", version = "9\\.*", reason="See http://jira.xwiki.org/browse/XE-1177")
})
public void testKeyboardShortcuts()
{
ViewPage vp = util.gotoPage("Sandbox", "WebHome");
// Test default edit mode (WYSIWYG for Sandbox.WebHome) key
vp.sendKeys("e");
// Test Cancel key
vp.sendKeys(Keys.chord(Keys.ALT, "c"));
vp.waitUntilPageIsLoaded();
Assert.assertTrue(util.isInViewMode());
// Test Wiki edit key
vp.sendKeys("k");
vp.waitUntilPageIsLoaded();
Assert.assertTrue(util.isInWikiEditMode());
// Test WYSIWYG edit mode key
vp = this.util.gotoPage("Sandbox", "WebHome");
vp.sendKeys("g");
// Test Inline Form edit mode key
vp = this.util.gotoPage("Sandbox", "WebHome");
vp.sendKeys("f");
vp.waitUntilPageIsLoaded();
Assert.assertTrue(util.isInInlineEditMode());
// Test Rights edit mode key
vp = this.util.gotoPage("Sandbox", "WebHome");
vp.sendKeys("r");
vp.waitUntilPageIsLoaded();
Assert.assertTrue(util.isInRightsEditMode());
// Test Object edit mode key
vp = this.util.gotoPage("Sandbox", "WebHome");
vp.sendKeys("o");
vp.waitUntilPageIsLoaded();
Assert.assertTrue(util.isInObjectEditMode());
// Test Class edit mode key
vp = this.util.gotoPage("Sandbox", "WebHome");
vp.sendKeys("s");
vp.waitUntilPageIsLoaded();
Assert.assertTrue(util.isInClassEditMode());
// Test Delete key
vp = this.util.gotoPage("Sandbox", "WebHome");
vp.sendKeys(Keys.DELETE);
vp.waitUntilPageIsLoaded();
Assert.assertTrue(util.isInDeleteMode());
// Test Rename key
vp = this.util.gotoPage("Sandbox", "WebHome");
vp.sendKeys(Keys.F2);
vp.waitUntilPageIsLoaded();
Assert.assertTrue(util.isInRenameMode());
// Test View Source key
vp = this.util.gotoPage("Sandbox", "WebHome");
vp.sendKeys("d");
vp.waitUntilPageIsLoaded();
Assert.assertTrue(util.isInSourceViewMode());
}