Skip to content

Commit 5b4979d

Browse files
authored
Add TypeScript definitions for disablePageReloads (DevExpress#4751)
1 parent 32005b2 commit 5b4979d

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

test/server/data/test-suites/typescript-defs/structure.ts

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import 'testcafe';
44
fixture
55
.skip
66
.only
7+
.disablePageCaching
78
('Fixture1')
89
.page('http://example.com')
910
.httpAuth({
@@ -43,6 +44,7 @@ test
4344
})
4445
.skip
4546
.only
47+
.disablePageCaching
4648
.page('http://example.com')
4749
.httpAuth({
4850
username: 'user',

ts-defs-src/test-api/structure.d.ts

+20
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,16 @@ interface FixtureFn {
8181
* Skips execution of all tests, except whose that are in this fixture.
8282
*/
8383
only: this;
84+
/**
85+
* Disables page caching for tests in this fixture.
86+
*/
87+
disablePageCaching: this;
88+
/**
89+
* WARNING: This feature is experimental and is not recommended for everyday use. It can be removed in the future TestCafe versions.
90+
*
91+
* Disables page reloading which would happen right before each test in this fixture.
92+
*/
93+
disablePageReloads: this;
8494
/**
8595
* Specifies the additional information for all tests in the fixture. This information can be used in reports.
8696
*
@@ -152,6 +162,16 @@ interface TestFn {
152162
* Skips execution of all tests, except this one.
153163
*/
154164
only: this;
165+
/**
166+
* Disables page caching for this test.
167+
*/
168+
disablePageCaching: this;
169+
/**
170+
* WARNING: This feature is experimental and is not recommended for everyday use. It can be removed in the future TestCafe versions.
171+
*
172+
* Disables page reloading which would happen right before this test.
173+
*/
174+
disablePageReloads: this;
155175
/**
156176
* Specifies the additional information for the test. This information can be used in reports.
157177
*

0 commit comments

Comments
 (0)