Skip to content

Commit

Permalink
Move table tag to the form
Browse files Browse the repository at this point in the history
Ported from:
* c34ea9c

It was moved because HTML was not valid.
  • Loading branch information
MantasVaitkunas committed Jan 17, 2017
1 parent 4d08366 commit 289e879
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
2 changes: 1 addition & 1 deletion source/Application/views/admin/tpl/order_downloads.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
<input type="hidden" name="cl" value="order_downloads">
</form>

<table cellspacing="0" cellpadding="0" border="0" width="98%">
<form name="search" id="search" action="[{$oViewConf->getSelfLink()}]" method="post">
[{$oViewConf->getHiddenSid()}]
<input type="hidden" name="cl" value="order_downloads">
<input type="hidden" name="oxid" value="[{$oxid}]">
<input type="hidden" name="fnc" value="resetDownloadLink">
<input type="hidden" name="oxorderfileid" value="[{$oxid}]">
<table cellspacing="0" cellpadding="0" border="0" width="98%">
<tr>
[{block name="admin_order_downloads_header"}]
<td class="listheader" height="15">&nbsp;&nbsp;&nbsp;[{oxmultilang ident="GENERAL_ITEMNR"}]</td>
Expand Down
28 changes: 15 additions & 13 deletions tests/Acceptance/Admin/FunctionalityInAdminTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,16 @@ public function testDownloadableFiles()
$this->loginAdmin("Administer Orders", "Orders");
$this->clickAndWaitFrame("link=12", "edit");
$this->openTab("Downloads");
$this->assertEquals("1002-1", $this->getText("//div[2]/table/tbody/tr[2]/td[1]"));
$this->assertEquals("Test product 2 [EN] šÄßüл", $this->getText("//div[2]/table/tbody/tr[2]/td[2]"));
$this->assertEquals("testFile3", $this->getText("//div[2]/table/tbody/tr[2]/td[3]"));
$this->assertEquals("0000-00-00 00:00:00", $this->getText("//div[2]/table/tbody/tr[2]/td[4]"));
$this->assertEquals("0000-00-00 00:00:00", $this->getText("//div[2]/table/tbody/tr[2]/td[5]"));
$this->assertEquals("0", $this->getText("//div[2]/table/tbody/tr[2]/td[6]"));
$this->assertEquals("20", $this->getText("//div[2]/table/tbody/tr[2]/td[7]"));
$this->assertEquals("0", $this->getText("//div[2]/table/tbody/tr[2]/td[9]"));
$this->getElement("//tr[@id='file.1']/td[1]");
$firstDownloadableProductLocator = "//tr[@id='file.1']";
$this->assertEquals("1002-1", $this->getText("{$firstDownloadableProductLocator}/td[1]"));
$this->assertEquals("Test product 2 [EN] šÄßüл", $this->getText("$firstDownloadableProductLocator/td[2]"));
$this->assertEquals("testFile3", $this->getText("$firstDownloadableProductLocator/td[3]"));
$this->assertEquals("0000-00-00 00:00:00", $this->getText("$firstDownloadableProductLocator/td[4]"));
$this->assertEquals("0000-00-00 00:00:00", $this->getText("$firstDownloadableProductLocator/td[5]"));
$this->assertEquals("0", $this->getText("$firstDownloadableProductLocator/td[6]"));
$this->assertEquals("20", $this->getText("$firstDownloadableProductLocator/td[7]"));
$this->assertEquals("0", $this->getText("$firstDownloadableProductLocator/td[9]"));
$this->openTab("Main");
$this->click("link=Current Date");
$this->clickAndWait("saveFormButton");
Expand All @@ -117,11 +119,11 @@ public function testDownloadableFiles()
$this->loginAdmin("Administer Orders", "Orders");
$this->clickAndWaitFrame("link=12", "edit");
$this->openTab("Downloads");
$this->assertEquals("1002-1", $this->getText("//div[2]/table/tbody/tr[2]/td[1]"));
$this->assertEquals("Test product 2 [EN] šÄßüл", $this->getText("//div[2]/table/tbody/tr[2]/td[2]"));
$this->assertEquals("testFile3", $this->getText("//div[2]/table/tbody/tr[2]/td[3]"));
$this->assertEquals("20", $this->getText("//div[2]/table/tbody/tr[2]/td[7]"));
$this->assertEquals("0", $this->getText("//div[2]/table/tbody/tr[2]/td[9]"));
$this->assertEquals("1002-1", $this->getText("$firstDownloadableProductLocator/td[1]"));
$this->assertEquals("Test product 2 [EN] šÄßüл", $this->getText("$firstDownloadableProductLocator/td[2]"));
$this->assertEquals("testFile3", $this->getText("$firstDownloadableProductLocator/td[3]"));
$this->assertEquals("20", $this->getText("$firstDownloadableProductLocator/td[7]"));
$this->assertEquals("0", $this->getText("$firstDownloadableProductLocator/td[9]"));
}

/**
Expand Down

0 comments on commit 289e879

Please sign in to comment.