Skip to content

Commit

Permalink
Add TypeScript definitions for disablePageReloads (DevExpress#4751)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaypea authored Feb 26, 2020
1 parent 32005b2 commit 5b4979d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/server/data/test-suites/typescript-defs/structure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import 'testcafe';
fixture
.skip
.only
.disablePageCaching
('Fixture1')
.page('http://example.com')
.httpAuth({
Expand Down Expand Up @@ -43,6 +44,7 @@ test
})
.skip
.only
.disablePageCaching
.page('http://example.com')
.httpAuth({
username: 'user',
Expand Down
20 changes: 20 additions & 0 deletions ts-defs-src/test-api/structure.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,16 @@ interface FixtureFn {
* Skips execution of all tests, except whose that are in this fixture.
*/
only: this;
/**
* Disables page caching for tests in this fixture.
*/
disablePageCaching: this;
/**
* WARNING: This feature is experimental and is not recommended for everyday use. It can be removed in the future TestCafe versions.
*
* Disables page reloading which would happen right before each test in this fixture.
*/
disablePageReloads: this;
/**
* Specifies the additional information for all tests in the fixture. This information can be used in reports.
*
Expand Down Expand Up @@ -152,6 +162,16 @@ interface TestFn {
* Skips execution of all tests, except this one.
*/
only: this;
/**
* Disables page caching for this test.
*/
disablePageCaching: this;
/**
* WARNING: This feature is experimental and is not recommended for everyday use. It can be removed in the future TestCafe versions.
*
* Disables page reloading which would happen right before this test.
*/
disablePageReloads: this;
/**
* Specifies the additional information for the test. This information can be used in reports.
*
Expand Down

0 comments on commit 5b4979d

Please sign in to comment.