-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
feat(tests): add full e2e coverage for Popover component #5001
feat(tests): add full e2e coverage for Popover component #5001
Conversation
Codecov Report
@@ Coverage Diff @@
## development #5001 +/- ##
===============================================
+ Coverage 74.79% 74.81% +0.01%
===============================================
Files 277 277
Lines 8436 8436
Branches 1603 1603
===============================================
+ Hits 6310 6311 +1
+ Misses 1680 1677 -3
- Partials 446 448 +2
Continue to review full report at Codecov.
|
54fce07
to
276ac1b
Compare
@dmitry-zhemchugov All PR labels, reviewers, assignees should be similar to #4871 |
cypress/full/popover_page_spec.ts
Outdated
|
||
describe('Placement popover', () => { | ||
|
||
const basic = popover.exampleDemosArr.placement; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
placementDemo
cypress/support/base.component.ts
Outdated
@@ -55,6 +55,18 @@ export abstract class BaseComponent { | |||
cy.get(`${ baseSelector } input`).eq(inputIndex ? inputIndex : 0).dblclick(); | |||
} | |||
|
|||
typeOnInput(baseSelector: string, forInput: string, inputIndex?: number) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as clearInputAndSendKeys method, in this class
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need to remove it
cypress/support/popover.po.ts
Outdated
dynamicHtml: 'demo-popover-dynamic-html', | ||
appendToBody: 'demo-popover-container', | ||
visibilityEvents: 'demo-popover-events', | ||
eventTextBlock: 'pre.card.card-block.card-header.mb-3', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- bad selector, need to find more stable
- it should be not in the exampleDemosArr
cypress/support/popover.po.ts
Outdated
cy.get(`${baseSelector}`).should('not.to.have.descendants', this.containerPopover); | ||
} | ||
|
||
isEventShown(baseSelector1: string) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what does it mean baseSelector1 ?
cypress/support/popover.po.ts
Outdated
cy.get(`${baseSelector1}`).contains('shown'); | ||
} | ||
|
||
isEventHidden(baseSelector1: string) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what does it mean baseSelector1 ?
276ac1b
to
5244ee7
Compare
cypress/full/popover_page_spec.ts
Outdated
}); | ||
|
||
it('when user clicks on "Preconfigured popover" again, nothing happens', () => { | ||
popover.clickOnBtn(configuringDefaults); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2
const popover = new PopoverPo(); | ||
|
||
beforeEach(() => popover.navigateTo()); | ||
before(() => popover.navigateTo()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
beforeEach
5244ee7
to
a34bfd5
Compare
PR Checklist
Before creating new PR, please take a look at checklist below to make sure that you've done everything that needs to be done before we can merge it.