Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 2.3 e2e boxgen,move-to-other-layers,qrcode #196

Closed
wants to merge 5 commits into from
Closed

Conversation

adamflux
Copy link

boxgen.spec.ts
move-to-other-layers.spec.ts
qrcode.spec.ts

.should('contain', 'Top')
.should('contain', 'Bottom')
.should('contain', 'Front')
.should('contain', 'Back')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <@typescript-eslint/semi> reported by reviewdog 🐶
Missing semicolon.

Suggested change
.should('contain', 'Back')
.should('contain', 'Back');

Comment on lines 14 to 15
.then((html) => expect(md5(html)).equal('d41d8cd98f00b204e9800998ecf8427e'));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <padded-blocks> reported by reviewdog 🐶
Block must not be padded by blank lines.

Suggested change
.then((html) => expect(md5(html)).equal('d41d8cd98f00b204e9800998ecf8427e'));
.then((html) => expect(md5(html)).equal('d41d8cd98f00b204e9800998ecf8427e'));


it('move', () => {
cy.clickToolBtn('Line');
cy.get('svg#svgcontent')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [eslint] <cypress/no-force> reported by reviewdog 🐶
Do not use force on click and type calls

it('move', () => {
cy.clickToolBtn('Line');
cy.get('svg#svgcontent')
.trigger('mousedown', { which: 1, pageX: 100, pageY: 100, force: true })

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <object-curly-newline> reported by reviewdog 🐶
Expected a line break after this opening brace.

Suggested change
.trigger('mousedown', { which: 1, pageX: 100, pageY: 100, force: true })
.trigger('mousedown', {
which: 1, pageX: 100, pageY: 100, force: true })

it('move', () => {
cy.clickToolBtn('Line');
cy.get('svg#svgcontent')
.trigger('mousedown', { which: 1, pageX: 100, pageY: 100, force: true })

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <object-curly-newline> reported by reviewdog 🐶
Expected a line break before this closing brace.

Suggested change
.trigger('mousedown', { which: 1, pageX: 100, pageY: 100, force: true })
.trigger('mousedown', { which: 1, pageX: 100, pageY: 100, force: true
})

cy.clickToolBtn('Line');
cy.get('svg#svgcontent')
.trigger('mousedown', { which: 1, pageX: 100, pageY: 100, force: true })
.trigger('mousemove', { which: 1, pageX: 200, pageY: 200, shiftKey: true, force: true })

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <object-curly-newline> reported by reviewdog 🐶
Expected a line break after this opening brace.

Suggested change
.trigger('mousemove', { which: 1, pageX: 200, pageY: 200, shiftKey: true, force: true })
.trigger('mousemove', {
which: 1, pageX: 200, pageY: 200, shiftKey: true, force: true })

cy.clickToolBtn('Line');
cy.get('svg#svgcontent')
.trigger('mousedown', { which: 1, pageX: 100, pageY: 100, force: true })
.trigger('mousemove', { which: 1, pageX: 200, pageY: 200, shiftKey: true, force: true })

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <object-curly-newline> reported by reviewdog 🐶
Expected a line break before this closing brace.

Suggested change
.trigger('mousemove', { which: 1, pageX: 200, pageY: 200, shiftKey: true, force: true })
.trigger('mousemove', { which: 1, pageX: 200, pageY: 200, shiftKey: true, force: true
})

Comment on lines +14 to +16
cy.get(
'[class*="src-web-app-components-beambox-right-panel-AddLayerButton-module__btn"]'
).click({ force: true });

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [eslint] <cypress/no-force> reported by reviewdog 🐶
Do not use force on click and type calls

cy.checkToolBtnActive('Cursor');
cy.get('.layers > .tab-icon').click();
cy.get(
'[class*="src-web-app-components-beambox-right-panel-AddLayerButton-module__btn"]'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <@typescript-eslint/comma-dangle> reported by reviewdog 🐶
Missing trailing comma.

Suggested change
'[class*="src-web-app-components-beambox-right-panel-AddLayerButton-module__btn"]'
'[class*="src-web-app-components-beambox-right-panel-AddLayerButton-module__btn"]',

cy.get('.react-contextmenu')
.contains('Move elements to:')
.trigger('mouseover');
cy.wait(1000);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <cypress/no-unnecessary-waiting> reported by reviewdog 🐶
Do not wait for arbitrary time periods

@dkdkwizard dkdkwizard closed this Sep 2, 2024
@dkdkwizard dkdkwizard deleted the add-2.3-e2e branch September 2, 2024 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants