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)" (#748)

This reverts commit 07a67d7.

Signed-off-by: manasvinibs <manasvis@amazon.com>
(cherry picked from commit 99e13f4)
  • Loading branch information
manasvinibs authored and github-actions[bot] committed Jul 12, 2023
1 parent 3958b1a commit de390d8
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 de390d8

Please sign in to comment.