Closed AndreyBelym closed 3 years ago
It's good example. But I suggest renaming it to Wait for a built-in page object property value
or simplified variant Wait for ...
.
[Won't do. This question is deleted. So it's impossible to know the task details.]
Test an email sent via a test case https://stackoverflow.com/questions/60179445/testcafe-any-recipes-available-for-email-integration
[Done - https://github.com/DevExpress/testcafe-examples/tree/master/examples/set-a-custom-referrer]
What about this one https://stackoverflow.com/questions/61116376/set-referrer-for-firefox-on-test-cafe
import { RequestHook } from 'testcafe';
fixture `fixture`
.page `http://example.com`;
export class MyRequestHook extends RequestHook {
constructor (requestFilterRules, responseEventConfigureOpts) {
super(requestFilterRules, responseEventConfigureOpts);
}
async onRequest (event) {
event.requestOptions.headers['Referer'] = 'http://my-modified-referer.com';
}
async onResponse (event) {
}
}
const hook = new MyRequestHook();
test.requestHooks(hook)('referer', async t => {
await t.navigateTo('https://www.whatismyreferer.com/');
await t.debug();
});
[Won't do. The task is not clear]
Progress bar testing example: https://stackoverflow.com/questions/61614885/how-to-test-dymamic-progress-bar-using-testcafe
+ https://stackoverflow.com/questions/1349404/generate-random-string-characters-in-javascript + https://stackoverflow.com/questions/1527803/generating-random-whole-numbers-in-javascript-in-a-specific-range
[x] How to capture client-side errors on a page [Already exists - https://github.com/DevExpress/testcafe-examples/tree/master/detached-examples/extended-error-tracking]
[x] How can my application code know whether the app is being tested with testcafe? [Already exists -https://github.com/DevExpress/testcafe-examples/tree/master/examples/check-if-opened-with-testcafe]
[x] How to click unrendered virtualized element in TestCafe [Won't do. It's about .exists method usage]
[x] How to add request logger for a test or a fixture and filter logs by a browser [Moved to https://github.com/DevExpress/testcafe-examples/issues/34]
[x] TestCafe with Electron: show and hide main window [Won't do. It's a very specific case.]
[x] How to check downloaded file name? [Already exists - https://github.com/DevExpress/testcafe-examples/tree/master/examples/check-downloaded-file-name-and-content]
[x] Conditional testing [Won't do. Customer can no use the .exists method]
[x] Selectors with dynamic classes and IDs [Won't do. The corresponding topic there is in the documentation.]
[x] How do I run tests on multiple browsers in lambdatest? - [Already exists - https://github.com/LambdaTest/testcafe-sample]
Moved to https://github.com/DevExpress/testcafe-examples/issues/41
QR Code from programmatic API - https://github.com/DevExpress/testcafe/issues/5528#issuecomment-690929810
Mocks
Actions
Download & Upload
[x] How to upload a file with TestCafe: https://stackoverflow.com/search?q=%5Btestcafe%5D+Upload (DONE)
[x] Check downloaded file content 1, 2, 3 (DONE)
Request Mocks
Selectors (DONE: https://github.com/DevExpress/testcafe-examples/pull/28)
ClientFunction (DONE: https://github.com/DevExpress/testcafe-examples/pull/22)
[x] Wait for a built-in page object property value - https://stackoverflow.com/questions/58373482/wait-for-css-property/58380117#58380117
iframe
is loaded usingClientFunction
: https://stackoverflow.com/questions/57787520/interacting-with-iframe-with-empty-src-attribute/57819981#57819981[x] How can my application code know whether the app is being tested with testcafe? (DONE: https://github.com/DevExpress/testcafe-examples/pull/26)
[x] Additional ClientFunction examples: + show/hide an element + with an argument + https://stackoverflow.com/questions/54231741/how-to-remove-style-properties-in-testcafe + https://stackoverflow.com/questions/55643047/how-to-select-div-with-pseudoelement-after-in-testcafe + https://stackoverflow.com/questions/56132480/run-command-in-the-browsers-console-during-the-test-in-testcafe
ClientScripts
Runner & CLI
Uncategorized Scenarios