-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated Markdown parser in Concordion 3.0.0 changes table text layout #316
Comments
Could be fixed by #313 |
With Concordion 2.2.0, the table body is converted from Markdown to HTML as:
With Concordion 3.0.0, the table body is converted as:
|
Solving the issue as presented is complex but possible. See ac56c1f. However, this is implementation specific behaviour that we don't want to create new specifications for. It would be better if a fix for #313 could be implemented. This would require some minor changes to the Concordion tests that are relying on the format of #TEXT for a table row. |
The 8eab13e implementation for issue #313 would resolve this issue, with changes to the Markdown spec and the fixture class as follows: public class TestMarkdownUpdates extends CubanoDemoBrowserFixture {
public MultiValueResult parse(Map row) throws Exception {
System.out.println("-----------------");
System.out.println(row);
System.out.println("=-----------------=");
MultiValueResult mvr = new MultiValueResult();
mvr.put("id", 1);
mvr.put("result", "Passed");
getStoryboard().addSectionContainer(String.format("'%s' is '%s'", row.get("Outcome"), row.get("Comment")));
getStoryboard().addNotification("Hello", "Hello", StockCardImage.JSON, CardResult.SUCCESS);
return mvr;
}
} # Heading
## [Test](-)
Test1 .....
| [note][][An Id][] | Outcome | Comment | [Results][] |
| ----------------- | --------- |-------- | ----------- |
| | Scenario1 | True | Passed |
| | Scenario2 | False | Passed |
| | Scenario3 | True | Passed |
| | Scenario4 | False | Passed |
[note]: - "#out = parse(#ROW)"
[An Id]: - "c:echo=#out.id"
[Results]: - "?=#out.result" |
Report from a user:
Our test suite is using Markdown specifications. For logging purposes, our tests are using the special variable
#TEXT
to obtain the text of each row of a Concordion table. Prior to Concordion 3.0.0, individual cells in the row were delineated by\n
. With the updated Markdown parser in Concordion 3.0.0 this is no longer the case and the cells are only delineated by whitespace. This affects our ability to parse the contents of the row. What workarounds can we use to restore this behaviour so our logging works correctly?See attached test case for an example. This can be applied to the cubano-demo project. With the latest
cubano-concordion:1.0.2
package, the test fails with IndexOutOfBoundsException. Change back to the Concordion2.2.0
version using thebuild.gradle
configuration below, and everything works fine.TestMarkdownUpdates.java
TestMarkdownUpdates.md
The text was updated successfully, but these errors were encountered: