|
1 | | -describe('Chart Section Tabs', () => { |
| 1 | +describe('Chart Section Tabs — E2E', () => { |
2 | 2 | before(() => { |
3 | 3 | cy.window().then((win) => { |
4 | 4 | win.localStorage.setItem('inferencex-star-modal-dismissed', String(Date.now())); |
5 | 5 | }); |
6 | 6 | cy.visit('/'); |
7 | 7 | }); |
8 | 8 |
|
9 | | - it('shows the tabs list on desktop', () => { |
10 | | - cy.get('[data-testid="chart-section-tabs"]').should('be.visible'); |
11 | | - }); |
12 | | - |
13 | | - it('has three tab triggers: Inference, Evaluation, Reliability', () => { |
14 | | - cy.get('[data-testid="tab-trigger-inference"]').should('be.visible'); |
15 | | - cy.get('[data-testid="tab-trigger-evaluation"]').should('be.visible'); |
16 | | - cy.get('[data-testid="tab-trigger-reliability"]').should('be.visible'); |
17 | | - }); |
18 | | - |
19 | | - it('Inference Performance tab is active by default', () => { |
20 | | - cy.get('[data-testid="tab-trigger-inference"]').should('have.attr', 'data-state', 'active'); |
21 | | - }); |
22 | | - |
23 | | - it('Evaluation and Reliability tabs are inactive by default', () => { |
24 | | - cy.get('[data-testid="tab-trigger-evaluation"]').should('have.attr', 'data-state', 'inactive'); |
25 | | - cy.get('[data-testid="tab-trigger-reliability"]').should('have.attr', 'data-state', 'inactive'); |
26 | | - }); |
27 | | - |
28 | | - it('clicking Evaluation tab makes it active', () => { |
29 | | - cy.get('[data-testid="tab-trigger-evaluation"]').click(); |
30 | | - cy.get('[data-testid="tab-trigger-evaluation"]').should('have.attr', 'data-state', 'active'); |
31 | | - cy.get('[data-testid="tab-trigger-inference"]').should('have.attr', 'data-state', 'inactive'); |
32 | | - }); |
33 | | - |
34 | | - it('switching to Evaluation shows Accuracy Evals content', () => { |
35 | | - // Already on evaluation from previous test |
36 | | - cy.get('[data-testid="evaluation-chart-display"]').should('exist'); |
37 | | - }); |
38 | | - |
39 | | - it('clicking Reliability tab makes it active', () => { |
40 | | - cy.get('[data-testid="tab-trigger-reliability"]').click(); |
41 | | - cy.get('[data-testid="tab-trigger-reliability"]').should('have.attr', 'data-state', 'active'); |
42 | | - }); |
43 | | - |
44 | | - it('switching to Reliability shows GPU Reliability content', () => { |
45 | | - // Already on reliability from previous test |
46 | | - cy.get('[data-testid="reliability-chart-display"]').should('exist'); |
47 | | - }); |
48 | | - |
49 | | - it('clicking back to Inference tab works', () => { |
50 | | - cy.get('[data-testid="tab-trigger-inference"]').click(); |
51 | | - cy.get('[data-testid="tab-trigger-inference"]').should('have.attr', 'data-state', 'active'); |
52 | | - }); |
53 | | - |
54 | | - it('switching to Inference shows Inference Performance content', () => { |
55 | | - // Already on inference from previous test |
56 | | - cy.get('[data-testid="inference-chart-display"]').should('exist'); |
57 | | - }); |
58 | | - |
59 | 9 | it('updates the URL path when switching tabs', () => { |
60 | 10 | cy.get('[data-testid="tab-trigger-evaluation"]').click(); |
61 | 11 | cy.url().should('include', '/evaluation'); |
62 | 12 |
|
| 13 | + cy.get('[data-testid="tab-trigger-historical"]').click(); |
| 14 | + cy.url().should('include', '/historical'); |
| 15 | + |
| 16 | + cy.get('[data-testid="tab-trigger-calculator"]').click(); |
| 17 | + cy.url().should('include', '/calculator'); |
| 18 | + |
63 | 19 | cy.get('[data-testid="tab-trigger-reliability"]').click(); |
64 | 20 | cy.url().should('include', '/reliability'); |
65 | 21 |
|
| 22 | + cy.get('[data-testid="tab-trigger-gpu-specs"]').click(); |
| 23 | + cy.url().should('include', '/gpu-specs'); |
| 24 | + |
66 | 25 | cy.get('[data-testid="tab-trigger-inference"]').click(); |
67 | 26 | cy.url().should('include', '/inference'); |
68 | 27 | }); |
|
0 commit comments