Skip to content

Commit

Permalink
Revert "[Vis Augmenter / Feature Anywhere] Add tests in core OSD and …
Browse files Browse the repository at this point in the history
…AD plugin (#739)"

This reverts commit 07a67d7.
  • Loading branch information
manasvinibs committed Jul 12, 2023
1 parent 07a67d7 commit 4f115af
Show file tree
Hide file tree
Showing 16 changed files with 19 additions and 1,086 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,27 @@
* SPDX-License-Identifier: Apache-2.0
*/

import { createSampleDetector } from '../../../utils/helpers';
import { AD_URL } from '../../../utils/constants';

context('Sample detectors', () => {
// Helper fn that takes in a button test ID to determine
// the sample detector to create
const createSampleDetector = (createButtonDataTestSubj) => {
cy.visit(AD_URL.OVERVIEW);

cy.getElementByTestId('overviewTitle').should('exist');
cy.getElementByTestId('viewSampleDetectorLink').should('not.exist');
cy.getElementByTestId(createButtonDataTestSubj).click();
cy.visit(AD_URL.OVERVIEW);

// Check that the details page defaults to real-time, and shows detector is initializing
cy.getElementByTestId('viewSampleDetectorLink').click();
cy.getElementByTestId('detectorNameHeader').should('exist');
cy.getElementByTestId('sampleIndexDetailsCallout').should('exist');
cy.getElementByTestId('realTimeResultsHeader').should('exist');
cy.getElementByTestId('detectorStateInitializing').should('exist');
};

beforeEach(() => {
cy.deleteAllIndices();
cy.deleteADSystemIndices();
Expand Down

This file was deleted.

Loading

0 comments on commit 4f115af

Please sign in to comment.