fix failing cypress (#9998)

This commit is contained in:
Shailesh Parmar 2023-01-30 16:34:53 +05:30 committed by GitHub
parent bd0e307912
commit 0ceaf67e32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -135,10 +135,10 @@ describe('MyData page should work', () => {
it('My data and following section, CTA should work properly', () => { it('My data and following section, CTA should work properly', () => {
cy.get('[data-testid="my-data-container"]') cy.get('[data-testid="my-data-container"]')
.find('[data-testid*="My data"]') .find('[data-testid*="My data"]')
.should('have.length', FOLLOWING_MYDATA_COUNT + 1); .should('have.length.at.least', FOLLOWING_MYDATA_COUNT);
cy.get('[data-testid="following-data-container"]') cy.get('[data-testid="following-data-container"]')
.find('[data-testid*="Following data"]') .find('[data-testid*="Following data"]')
.should('have.length', FOLLOWING_MYDATA_COUNT); .should('have.length.at.least', FOLLOWING_MYDATA_COUNT);
interceptURL( interceptURL(
'GET', 'GET',
'/api/v1/search/query?q=*owner.id:*&from=0&size=10&index=*', '/api/v1/search/query?q=*owner.id:*&from=0&size=10&index=*',