Add Discover page E2E tests with real API fixture data
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
50
cypress/e2e/discoverConformance.cy.js
Normal file
50
cypress/e2e/discoverConformance.cy.js
Normal file
@@ -0,0 +1,50 @@
|
||||
import { loginWithFixtures } from '../support/intercept';
|
||||
|
||||
describe('Discover Conformance Page', () => {
|
||||
beforeEach(() => {
|
||||
loginWithFixtures();
|
||||
cy.visit('/discover/log/297310264/conformance');
|
||||
cy.wait('@getLogCheckParams');
|
||||
});
|
||||
|
||||
it('page loads and loading overlay disappears', () => {
|
||||
cy.get('.z-\\[9999\\]', { timeout: 10000 }).should('not.exist');
|
||||
});
|
||||
|
||||
it('displays Rule Settings sidebar', () => {
|
||||
cy.get('.z-\\[9999\\]', { timeout: 10000 }).should('not.exist');
|
||||
cy.contains('Rule Settings').should('be.visible');
|
||||
});
|
||||
|
||||
it('displays Conformance Checking Results heading', () => {
|
||||
cy.get('.z-\\[9999\\]', { timeout: 10000 }).should('not.exist');
|
||||
cy.contains('Conformance Checking Results').should('be.visible');
|
||||
});
|
||||
|
||||
it('displays rule type radio options', () => {
|
||||
cy.get('.z-\\[9999\\]', { timeout: 10000 }).should('not.exist');
|
||||
cy.contains('Have activity').should('be.visible');
|
||||
cy.contains('Activity sequence').should('be.visible');
|
||||
cy.contains('Activity duration').should('be.visible');
|
||||
cy.contains('Processing time').should('be.visible');
|
||||
cy.contains('Waiting time').should('be.visible');
|
||||
cy.contains('Cycle time').should('be.visible');
|
||||
});
|
||||
|
||||
it('displays Clear and Apply buttons', () => {
|
||||
cy.get('.z-\\[9999\\]', { timeout: 10000 }).should('not.exist');
|
||||
cy.contains('button', 'Clear').should('be.visible');
|
||||
cy.contains('button', 'Apply').should('exist');
|
||||
});
|
||||
|
||||
it('displays Activity list area', () => {
|
||||
cy.get('.z-\\[9999\\]', { timeout: 10000 }).should('not.exist');
|
||||
cy.contains('Activity list').should('be.visible');
|
||||
});
|
||||
|
||||
it('displays default placeholder values in results', () => {
|
||||
cy.get('.z-\\[9999\\]', { timeout: 10000 }).should('not.exist');
|
||||
cy.contains('Conformance Rate').should('be.visible');
|
||||
cy.contains('Cases').should('be.visible');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user