mirror of
https://github.com/AppFlowy-IO/AppFlowy-Web.git
synced 2025-11-28 18:28:02 +08:00
fix: test
This commit is contained in:
@@ -33,10 +33,9 @@ describe('Editor - Drag and Drop Blocks', () => {
|
|||||||
getSource().closest('[data-block-type]').scrollIntoView().should('be.visible').click().then(($sourceBlock) => {
|
getSource().closest('[data-block-type]').scrollIntoView().should('be.visible').click().then(($sourceBlock) => {
|
||||||
// Use realHover to simulate user interaction which updates elementFromPoint
|
// Use realHover to simulate user interaction which updates elementFromPoint
|
||||||
cy.wrap($sourceBlock).realHover({ position: 'center' });
|
cy.wrap($sourceBlock).realHover({ position: 'center' });
|
||||||
cy.wait(1000); // Wait for hover controls to appear
|
|
||||||
|
|
||||||
// 2. Get the drag handle
|
// 2. Get the drag handle
|
||||||
cy.get('[data-testid="drag-block"]').should('exist').then(($handle) => {
|
cy.get('[data-testid="drag-block"]').should('be.visible').then(($handle) => {
|
||||||
const dataTransfer = new DataTransfer();
|
const dataTransfer = new DataTransfer();
|
||||||
|
|
||||||
// 3. Start dragging
|
// 3. Start dragging
|
||||||
|
|||||||
Reference in New Issue
Block a user