Skip to content

Commit

Permalink
Try to fix flaky tests
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Ho <[email protected]>
  • Loading branch information
derek-ho committed Apr 22, 2024
1 parent f99c195 commit ce64989
Showing 1 changed file with 15 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,10 @@ describe('Multi-datasources enabled', () => {
it('Checks Get Started Tab', () => {
// Remote cluster purge cache
cy.visit(
`http://localhost:5601/app/security-dashboards-plugin${externalDataSourceUrl}#/getstarted`
`http://localhost:5601/app/security-dashboards-plugin${externalDataSourceUrl}#/getstarted`,
{
failOnStatusCode: false,
}
);

cy.contains('h1', 'Get started');
Expand All @@ -106,7 +109,9 @@ describe('Multi-datasources enabled', () => {
});

it('Checks Auth Tab', () => {
cy.visit(`http://localhost:5601/app/security-dashboards-plugin${externalDataSourceUrl}#/auth`);
cy.visit(`http://localhost:5601/app/security-dashboards-plugin${externalDataSourceUrl}#/auth`, {
failOnStatusCode: false,
});

cy.get('.panel-header-count').first().invoke('text').should('contain', '(2)');
});
Expand All @@ -125,7 +130,10 @@ describe('Multi-datasources enabled', () => {
},
}).then(() => {
cy.visit(
`http://localhost:5601/app/security-dashboards-plugin${externalDataSourceUrl}#/users`
`http://localhost:5601/app/security-dashboards-plugin${externalDataSourceUrl}#/users`,
{
failOnStatusCode: false,
}
);

cy.get('[data-test-subj="tableHeaderCell_username_0"]').click();
Expand All @@ -145,7 +153,10 @@ describe('Multi-datasources enabled', () => {
},
}).then(() => {
cy.visit(
`http://localhost:5601/app/security-dashboards-plugin${externalDataSourceUrl}#/permissions`
`http://localhost:5601/app/security-dashboards-plugin${externalDataSourceUrl}#/permissions`,
{
failOnStatusCode: false,
}
);

// Permission exists on the remote data source
Expand Down

0 comments on commit ce64989

Please sign in to comment.