Skip to content

Commit

Permalink
Increase timeout task instead of element
Browse files Browse the repository at this point in the history
  • Loading branch information
dasansol92 committed Nov 8, 2023
1 parent 8003b3b commit a9fdf46
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ describe(
let loadedPolicyData: IndexedFleetEndpointPolicyResponse;

before(() => {
cy.task('indexFleetEndpointPolicy', { policyName: 'tests-serverless' }).then((response) => {
cy.task(
'indexFleetEndpointPolicy',
{ policyName: 'tests-serverless' },
{ timeout: 5 * 60 * 1000 }
).then((response) => {
loadedPolicyData = response as IndexedFleetEndpointPolicyResponse;
});
});
Expand All @@ -40,7 +44,7 @@ describe(
});

it('should display upselling section for protections', () => {
cy.getByTestSubj('endpointPolicy-protectionsLockedCard', { timeout: 5 * 60 * 1000 })
cy.getByTestSubj('endpointPolicy-protectionsLockedCard', { timeout: 60000 })
.should('exist')
.and('be.visible');
});
Expand Down

0 comments on commit a9fdf46

Please sign in to comment.