Skip to content
Snippets Groups Projects
Commit d90d6a2b authored by Robert Goldmann's avatar Robert Goldmann
Browse files

#596 - removed hotkey to create a new recurring transaction

parent adde8a71
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,6 @@ import java.text.MessageFormat;
public enum GeneralHotKey implements HotKey
{
CREATE_TRANSACTION("hotkeys.transactions.new.normal", false),
CREATE_RECURRING_TRANSACTION("hotkeys.transactions.new.repeating", false),
CREATE_TRANSFER_TRANSACTION("hotkeys.transactions.new.transfer", false),
CREATE_TRANSACTION_FROM_TEMPLATE("hotkeys.transactions.new.template", false),
SAVE_TRANSACTION("hotkeys.transactions.save", true),
......
......@@ -473,8 +473,6 @@ home.first.use.home=Los geht's!
hotkeys.general=Allgemein
hotkeys.transactions.new.normal=Neue Buchung anlegen
hotkeys.transactions.new.normal.key=n
hotkeys.transactions.new.repeating=Neue wiederholende Buchung anlegen
hotkeys.transactions.new.repeating.key=r
hotkeys.transactions.new.transfer=Neue Umbuchung anlegen
hotkeys.transactions.new.transfer.key=t
hotkeys.transactions.new.template=Neue Buchung aus Vorlage anlegen
......
......@@ -474,8 +474,6 @@ home.first.use.home=Let''s go!
hotkeys.general=General
hotkeys.transactions.new.normal=Create a transaction
hotkeys.transactions.new.normal.key=n
hotkeys.transactions.new.repeating=Create a recuring transaction
hotkeys.transactions.new.repeating.key=r
hotkeys.transactions.new.transfer=Create a transfer
hotkeys.transactions.new.transfer.key=t
hotkeys.transactions.new.template=Create a transaction from template
......
......@@ -6,14 +6,6 @@ Mousetrap.bind('n', function()
}
});
Mousetrap.bind('r', function()
{
if(areHotKeysEnabled())
{
window.location.href = rootURL + '/transactions/newTransaction/normal';
}
});
Mousetrap.bind('t', function()
{
if(areHotKeysEnabled())
......
......@@ -61,18 +61,6 @@ class HotkeyTest extends SeleniumTestBase
assertThat(driver.getCurrentUrl()).endsWith("/newTransaction/normal");
}
@Test
void hotkey_newTransaction_recurring()
{
driver.findElement(By.tagName("body")).sendKeys("r");
WebDriverWait wait = new WebDriverWait(driver, 5);
wait.until(ExpectedConditions.presenceOfElementLocated(By.cssSelector("form[name='NewTransaction']")));
assertThat(driver.getCurrentUrl()).endsWith("/newTransaction/normal");
// TODO: assert that repeating options are shown automatically
}
@Test
void hotkey_newTransaction_transfer()
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment