Skip to content
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

Using 'text' as fixture variable name leads to javascript error in ui #44

Open
schorsch01 opened this issue Oct 18, 2010 · 0 comments
Open

Comments

@schorsch01
Copy link

Scenario:

  1. Use the variable name 'text' in a fixture

[FormatAs("Set surename of customer {text}")]
public void SetSurenameOfCustomer(string text)
{
Panel.Get("txtSurname").Text = text;
}

  1. Open StoryTeller and create a new test (or even open a test which uses this fixture)

  2. Switch to the edit view of the selected test

  3. Add the new fixture to the test and enter some text into the textbox

  4. Save and close the test

  5. Reopen the test

Output:
This text (= text of javascript function) is in the textbox of the fixture ->
"function(text) { if (arguments.length == 0) { return self.x_InnerText; } self.x_InnerText = text; }"

Workaround:
don't use 'text' as the variable name, change it to something other. f.e. 'surename'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant