Comments (3)
We appreciate you taking the time to share information about this issue. We reproduced the bug and added this ticket to our internal task queue. We'll update this thread once we have news.
from testcafe.
Hello,
The issue is similar to this one: #8123. It is caused by the 'service worker'.
As a workaround, you can run your test as follows:
import { Selector, Role } from 'testcafe';
const role = Role('https://www.saucedemo.com/', async t => {
await t
.typeText(Selector('[data-test="username"]'), 'standard_user')
.typeText(Selector('#password'), 'secret_sauce')
.click(Selector('#login-button'))
}, { "preserveurl": true});
fixtureMy fixture
.page[https://www.saucedemo.com/
](https://www.saucedemo.com/%60)
.beforeEach(async t => {
const idConnection = t.testRun.browserConnection.id;
const cdpClient = t.testRun.browserConnection.getNativeAutomation(idConnection)._client;
await cdpClient.Network.setBypassServiceWorker()
await t.useRole(role);
});
test('test1', async t => {
await t.navigateTo(`/inventory.html`) // or [https://www.saucedemo.com/inventory.html](https://www.saucedemo.com/inventory.html)
await t.click(Selector('#react-burger-menu-btn'))
.click(Selector('a#reset_sidebar_link'))
.click(Selector('#shopping_cart_container'));
});
from testcafe.
Thank you Adil
from testcafe.
Related Issues (20)
- Evidence is not generated (screenshots & videos), and results are not sent to slack from scripts run on Jenkins.
- TestCafe does not generate screenshots or videos, and the results are not sent to Slack on Jenkins. HOT 1
- Non Responsive Ui Button HOT 4
- Testcafe 3.5.0 don't support EcmaScript 2022 syntax HOT 7
- Is it possible to get browserstack/lambdatest session url from t object? HOT 1
- Intermittent "TypeError: Cannot destructure property 'config' of 'this.openedBrowsers[browserId]' as it is undefined" error after completing tests execution HOT 2
- Unable to run the tests in ESM HOT 1
- Native Automation requires https protocol HOT 5
- chrome:emulation:device=iphone X t.click() produces t.rightClick() shortcut menu HOT 3
- Testcafe slow compile time with big project HOT 5
- "callsite" exception in Testcafe 3.5.0 HOT 2
- Testcafe security vulnerabilities HOT 2
- TestCafe fails with latest stable chrome version 122.0.6261.57 HOT 32
- Spec reporter throws JS error when using t.report and having a reporter onBeforeWrite hook set HOT 3
- Tests began failing after moving to new environment HOT 4
- Edge occassionally shows a "set up/signin" modal after startup, causing testcafe to fail HOT 4
- Running Chrome Device Emulation w/ Tablets not able to perform left clicks anymore HOT 4
- Headless test execution failing while passing successfully without headless. HOT 10
- Testcafe fails when using t.navigateTo() in latest chromium based browsers. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from testcafe.