Skip to content

Commit

Permalink
Skip service inventory API call tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gbamparop committed Apr 11, 2022
1 parent 4bb24eb commit 12cbeae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ describe('Home page', () => {
cy.visit(serviceInventoryHref);

cy.contains('Services');
cy.contains('opbeans-rum').realClick();
cy.contains('opbeans-rum').click();

cy.get('[data-test-subj="headerFilterTransactionType"]').should(
'have.value',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ describe('When navigating to the service inventory', () => {
cy.contains('h1', 'opbeans-node');
});

describe('Calls APIs', () => {
describe.skip('Calls APIs', () => {
beforeEach(() => {
apiRequestsToIntercept.map(({ endpoint, aliasName }) => {
cy.intercept('GET', endpoint).as(aliasName);
Expand All @@ -86,7 +86,7 @@ describe('When navigating to the service inventory', () => {
});

it('with the correct environment when changing the environment', () => {
cy.wait(aliasNames, { requestTimeout: 30000 });
cy.wait(aliasNames);

cy.get('[data-test-subj="environmentFilter"]').select('production');

Expand All @@ -97,13 +97,13 @@ describe('When navigating to the service inventory', () => {
});

it('when clicking the refresh button', () => {
cy.wait(aliasNames, { requestTimeout: 30000 });
cy.wait(aliasNames);
cy.contains('Refresh').click();
cy.wait(aliasNames);
});

it('when selecting a different time range and clicking the update button', () => {
cy.wait(aliasNames, { requestTimeout: 30000 });
cy.wait(aliasNames);

cy.selectAbsoluteTimeRange(
moment(timeRange.rangeFrom).subtract(5, 'm').toISOString(),
Expand Down

0 comments on commit 12cbeae

Please sign in to comment.