-
Notifications
You must be signed in to change notification settings - Fork 675
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
testing: hammerhead testing build (#8261)
<!-- Thank you for your contribution. Before making a PR, please read our contributing guidelines at https://github.com/DevExpress/testcafe/blob/master/CONTRIBUTING.md#code-contribution We recommend creating a *draft* PR, so that you can mark it as 'ready for review' when you are done. --> ## Purpose Hammerhead returned invalid results. ## Approach Update testcafe-hammerhead package. ## References Hammerhead PR: DevExpress/testcafe-hammerhead#3016 Closes: #8237 ## Pre-Merge TODO - [ ] Write tests for your proposed changes - [ ] Make sure that existing tests do not fail --------- Co-authored-by: Bayheck <[email protected]>
- Loading branch information
Showing
5 changed files
with
38 additions
and
11 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
test/functional/fixtures/regression/gh-8261/pages/index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | ||
<title>gh-8261</title> | ||
</head> | ||
<body> | ||
<a href="example"> | ||
<div style="width: 100px; height: 100px"></div> | ||
</a> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
describe('[Regression](GH-8261)', function () { | ||
it('Element with first DOMRect from getClientRects with zero height/width should be visible', function () { | ||
return runTests('testcafe-fixtures/index.js', 'Element should be visible', { only: 'chrome' }); | ||
}); | ||
}); |
10 changes: 10 additions & 0 deletions
10
test/functional/fixtures/regression/gh-8261/testcafe-fixtures/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { Selector } from 'testcafe'; | ||
|
||
fixture('GH-8261- Element with first DOMRect from getClientRects with zero height/width should be visible') | ||
.page`http://localhost:3000/fixtures/regression/gh-8261/pages/index.html`; | ||
|
||
test('Element should be visible', async t => { | ||
const element = Selector('a'); | ||
|
||
await t.expect(element.visible).ok(); | ||
}); |