|
1 | | -beforeEach(() => { |
2 | | - cy.login('student_one', 'test'); |
3 | | - cy.visit('/course/1/simulations/1/'); |
4 | | -}); |
| 1 | +// beforeEach(() => { |
| 2 | +// cy.login('student_one', 'test'); |
| 3 | +// cy.visit('/course/1/simulations/1/'); |
| 4 | +// }); |
5 | 5 |
|
6 | | -describe('Verify the page', () => { |
7 | | - it('Is the correct page.', () => { |
8 | | - cy.title().should('contain', 'Simulation'); |
9 | | - cy.get('span.h2-secondary').should('contain', 'Simulation 1'); |
10 | | - cy.get('svg').should('be.visible'); |
11 | | - }); |
12 | | -}); |
| 6 | +// describe('Verify the page', () => { |
| 7 | +// it('Is the correct page.', () => { |
| 8 | +// cy.title().should('contain', 'Simulation'); |
| 9 | +// cy.get('span.h2-secondary').should('contain', 'Simulation 1'); |
| 10 | +// cy.get('svg').should('be.visible'); |
| 11 | +// }); |
| 12 | +// }); |
13 | 13 |
|
14 | | -describe('Simulation 1 Initial Setup', () => { |
15 | | - it('should load the correct page', () => { |
16 | | - cy.title().should('contain', 'Simulation'); |
17 | | - cy.get('span.h2-secondary').should('contain', 'Simulation 1'); |
18 | | - cy.get('svg').should('be.visible'); |
19 | | - }); |
20 | | - it('should display the initial graph seeding section', () => { |
21 | | - cy.get('h2.h2-primary').should('contain', 'Graph seeding'); |
22 | | - }); |
23 | | - it('should display the resulting graph coefficients section', () => { |
24 | | - cy.get('h2.h2-primary').should( |
25 | | - 'contain', 'Resulting graph coefficients'); |
26 | | - }); |
27 | | -}); |
| 14 | +// describe('Simulation 1 Initial Setup', () => { |
| 15 | +// it('should load the correct page', () => { |
| 16 | +// cy.title().should('contain', 'Simulation'); |
| 17 | +// cy.get('span.h2-secondary').should('contain', 'Simulation 1'); |
| 18 | +// cy.get('svg').should('be.visible'); |
| 19 | +// }); |
| 20 | +// it('should display the initial graph seeding section', () => { |
| 21 | +// cy.get('h2.h2-primary').should('contain', 'Graph seeding'); |
| 22 | +// }); |
| 23 | +// it('should display the resulting graph coefficients section', () => { |
| 24 | +// cy.get('h2.h2-primary').should( |
| 25 | +// 'contain', 'Resulting graph coefficients'); |
| 26 | +// }); |
| 27 | +// }); |
28 | 28 |
|
29 | | -describe('Graph Data', () => { |
30 | | - it('Graph Seeding', () => { |
31 | | - cy.get('h2.h2-primary') |
32 | | - .should('contain', 'Graph seeding'); |
33 | | - }); |
34 | | - it('Graph Coefficients', () => { |
35 | | - cy.get('h2.h2-primary') |
36 | | - .should('contain', 'Resulting graph coefficients'); |
37 | | - }); |
38 | | -}); |
| 29 | +// describe('Graph Data', () => { |
| 30 | +// it('Graph Seeding', () => { |
| 31 | +// cy.get('h2.h2-primary') |
| 32 | +// .should('contain', 'Graph seeding'); |
| 33 | +// }); |
| 34 | +// it('Graph Coefficients', () => { |
| 35 | +// cy.get('h2.h2-primary') |
| 36 | +// .should('contain', 'Resulting graph coefficients'); |
| 37 | +// }); |
| 38 | +// }); |
39 | 39 |
|
40 | | -describe('Null Hypothesis', () => { |
41 | | - it('should navigate through resulting graph coefficients', () => { |
42 | | - cy.get('#null-hypothesis').should( |
43 | | - 'contain', 'Null hypothesis'); |
44 | | - }); |
| 40 | +// describe('Null Hypothesis', () => { |
| 41 | +// it('should navigate through resulting graph coefficients', () => { |
| 42 | +// cy.get('#null-hypothesis').should( |
| 43 | +// 'contain', 'Null hypothesis'); |
| 44 | +// }); |
45 | 45 |
|
46 | | - it('should move on to alternative hypothesis', () => { |
47 | | - cy.get('button').contains('Continue').first().click(); |
48 | | - cy.get('#quiz-1').should('contain', 'Alternative hypothesis'); |
49 | | - }); |
50 | | -}); |
| 46 | +// it('should move on to alternative hypothesis', () => { |
| 47 | +// cy.get('button').contains('Continue').first().click(); |
| 48 | +// cy.get('#quiz-1').should('contain', 'Alternative hypothesis'); |
| 49 | +// }); |
| 50 | +// }); |
51 | 51 |
|
52 | | -describe('Alternative Hypothesis', () => { |
53 | | - it('should show alternate hypothesis A', () => { |
54 | | - cy.get('#gotoTesting2d').click(); |
55 | | - cy.get('#choice-A').should('contain', 'Check'); |
56 | | - cy.get('#choice-A').click(); |
57 | | - cy.get('#significance5').click(); |
58 | | - cy.get('#alphaNextButton').click(); |
59 | | - cy.get('[data-cy="pvalueSection"]').should('contain', 'Obtain'); |
60 | | - }); |
61 | | -}); |
| 52 | +// describe('Alternative Hypothesis', () => { |
| 53 | +// it('should show alternate hypothesis A', () => { |
| 54 | +// cy.get('#gotoTesting2d').click(); |
| 55 | +// cy.get('#choice-A').should('contain', 'Check'); |
| 56 | +// cy.get('#choice-A').click(); |
| 57 | +// cy.get('#significance5').click(); |
| 58 | +// cy.get('#alphaNextButton').click(); |
| 59 | +// cy.get('[data-cy="pvalueSection"]').should('contain', 'Obtain'); |
| 60 | +// }); |
| 61 | +// }); |
62 | 62 |
|
63 | | -describe('P-Value and Critical Value', () => { |
64 | | - it('allows entering a p-value and critical value and validating', () => { |
65 | | - cy.get('#gotoTesting2d').click(); |
66 | | - cy.get('#choice-A').click(); |
67 | | - cy.get('#significance5').click(); |
68 | | - cy.get('#alphaNextButton').click(); |
69 | | - cy.get('#pValue').type('0.05'); |
70 | | - cy.get('#pvalueInputButton').contains('Continue').click(); |
71 | | - cy.get('.answer-incorrect-container').should('exist'); |
72 | | - cy.get('[data-cy="pvalueanswer"]').invoke('text').then((text) => { |
73 | | - cy.get('#pValue').clear(); |
74 | | - cy.get('#pValue').type(text); |
75 | | - cy.get('#pvalueInputButton').contains('Continue').click(); |
76 | | - cy.get('.answer-correct-container').should('exist'); |
77 | | - const pValue = parseFloat(text); |
78 | | - if (pValue > 0.05) { |
79 | | - cy.get('#pGreaterThanAlpha').click(); |
80 | | - } else { |
81 | | - cy.get('#pLessThanAlpha').click(); |
82 | | - } |
83 | | - cy.get('[data-cy="pvalueComparisonButton"]').click(); |
84 | | - if (pValue > 0.05) { |
85 | | - cy.get('#failToRejectHypothesis').click(); |
86 | | - } else { |
87 | | - cy.get('#rejectHypothesis').click(); |
88 | | - } |
89 | | - cy.get('[data-cy="hypothesisTest1Button"]').click(); |
90 | | - }); |
91 | | - cy.get('#criticalvalue').type('1.96'); |
92 | | - cy.get('[data-cy="criticalValueButton"]').click(); |
93 | | - cy.get('#tGreaterThanCritical').click(); |
94 | | - cy.get('[data-cy="criticalValueCompareButton"]').click(); |
95 | | - }); |
96 | | -}); |
| 63 | +// describe('P-Value and Critical Value', () => { |
| 64 | +// it('allows entering a p-value and critical value and validating', () => { |
| 65 | +// cy.get('#gotoTesting2d').click(); |
| 66 | +// cy.get('#choice-A').click(); |
| 67 | +// cy.get('#significance5').click(); |
| 68 | +// cy.get('#alphaNextButton').click(); |
| 69 | +// cy.get('#pValue').type('0.05'); |
| 70 | +// cy.get('#pvalueInputButton').contains('Continue').click(); |
| 71 | +// cy.get('.answer-incorrect-container').should('exist'); |
| 72 | +// cy.get('[data-cy="pvalueanswer"]').invoke('text').then((text) => { |
| 73 | +// cy.get('#pValue').clear(); |
| 74 | +// cy.get('#pValue').type(text); |
| 75 | +// cy.get('#pvalueInputButton').contains('Continue').click(); |
| 76 | +// cy.get('.answer-correct-container').should('exist'); |
| 77 | +// const pValue = parseFloat(text); |
| 78 | +// if (pValue > 0.05) { |
| 79 | +// cy.get('#pGreaterThanAlpha').click(); |
| 80 | +// } else { |
| 81 | +// cy.get('#pLessThanAlpha').click(); |
| 82 | +// } |
| 83 | +// cy.get('[data-cy="pvalueComparisonButton"]').click(); |
| 84 | +// if (pValue > 0.05) { |
| 85 | +// cy.get('#failToRejectHypothesis').click(); |
| 86 | +// } else { |
| 87 | +// cy.get('#rejectHypothesis').click(); |
| 88 | +// } |
| 89 | +// cy.get('[data-cy="hypothesisTest1Button"]').click(); |
| 90 | +// }); |
| 91 | +// cy.get('#criticalvalue').type('1.96'); |
| 92 | +// cy.get('[data-cy="criticalValueButton"]').click(); |
| 93 | +// cy.get('#tGreaterThanCritical').click(); |
| 94 | +// cy.get('[data-cy="criticalValueCompareButton"]').click(); |
| 95 | +// }); |
| 96 | +// }); |
0 commit comments