Skip to content

Commit

Permalink
Merge pull request #1530 from riganti/fix/firefox-tests
Browse files Browse the repository at this point in the history
Fixed UI tests in Firefox
  • Loading branch information
exyi authored Dec 10, 2022
2 parents 70ca6f2 + 1fd6b23 commit 97179c4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
ItemTextBinding="{value: Text}"
ItemValueBinding="{value: Value}"
ItemTitleBinding="{value: Title}"
Size="3" />
Size="4" />

Selected: <span data-ui="result" InnerText="{value: SelectedValue}"></span>

Expand All @@ -23,7 +23,7 @@
ItemTextBinding="{value: Text}"
ItemValueBinding="{value: Value}"
ItemTitleBinding="{value: Title}"
Size="3" />
Size="4" />

Selected:
<dot:Repeater WrapperTagName="ul" DataSource={value: SelectedValues}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
Number of requests: <span data-ui="number">{{value: NumberOfRequests}}</span>
</p>

<button>button because of firefox</button>

<script type="text/javascript">
var fetchBackup = window.fetch;
window.fetch = function (url, init) {
Expand Down
2 changes: 1 addition & 1 deletion src/Samples/Tests/Tests/Control/ListBoxTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public void Control_ListBox()
var result = browser.Single("[data-ui=result]");
AssertUI.InnerTextEquals(result, "0");

AssertUI.Attribute(browser.Single("select[data-ui=single]"), "size", "3");
AssertUI.Attribute(browser.Single("select[data-ui=single]"), "size", "4");

var firstOption = browser.ElementAt("select[data-ui=single] option", 0);

Expand Down

0 comments on commit 97179c4

Please sign in to comment.