Comments (3)
I have met this when tests as basic indent and unindent
fails as well, and would like to give more information :)
Pic below shows when the test accidentally fails, the state of formattedJSX
, which is serialized from window.store
is not updated according to the last await pressShiftTab(page)
(Confusing for me so far).
The callstack is: basic indent and unindent
-> await assertStoreMachJSX
-> expect(snapshot.trimStart(), formattedJSX).toEqual(formattedJSX);
from blocksuite.
Some findings over recent development:
- Some asserters are sensitive to mouse movement, adding
await page.mouse.move(100, 100)
makes it stable. - Some consecutive operations may be merged into unexpected undo stack items. Explicitly adding
page.captureSync()
in the application code makes it stable. - To investigate a flaky test, we can mark one test case as
test.only
, then performnpx playwright test --repeat-each=10
. It's also very helpful to runpnpm test -- --debug
withawait page.pause()
added before certain asserters.
cc @lawvs @himself65 @thorseraq
from blocksuite.
We can get reports about flaky test after #728, and we also have some examples about fixing flaky tests:
They are mostly about timeout.
Closing this issue since we plan to fix other flaky tests case-by-case.
from blocksuite.
Related Issues (20)
- code markup does not take care of link HOT 1
- TypeError: t.computedStyleMap is not a function HOT 6
- Unable to continuously input in database side detail
- Date picker cannot be closed in database side detail
- Can't blur side detail panel text cell on clicking empty area
- Handling of image caption overflow
- Supports searching for content other than titles in the database
- Bugs when importing a table from Notion HOT 2
- Improve interaction with Tables HOT 1
- bug: table view does not work in indented context HOT 1
- table view: type column name, select column data type with discard the already input column name HOT 1
- ⚠️🚨 Urgent Warning: Potential Scam with Clone Website block-suite.com 🚨⚠️ HOT 1
- Blocks toolbar design renovation
- Image block and code block toolbar renovation
- Wider selection box initiation areas HOT 2
- Edit the title of the task in the pop-up panel on the right. only support edit one character, and the cursor focus will be lost HOT 4
- terrible performance edgeless mode when a lot of pen writings are present HOT 3
- Edgeless elements toolbar design renovation
- createButtonPopper on a null element HOT 1
- Database side detail moves with viewport in edgeless
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 blocksuite.