mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-02-20 16:00:35 -05:00
36 lines
1010 B
TypeScript
36 lines
1010 B
TypeScript
const cSharpLocations = {
|
|
challenge:
|
|
'/learn/foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/write-your-first-c-sharp-code',
|
|
trophy:
|
|
'/learn/foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/trophy-write-your-first-code-using-c-sharp'
|
|
};
|
|
|
|
describe('C Sharp', () => {
|
|
before(() => {
|
|
cy.task('seed');
|
|
});
|
|
describe('Challenges', () => {
|
|
before(() => {
|
|
cy.visit(cSharpLocations.challenge);
|
|
});
|
|
|
|
it('renders the correct buttons', () => {
|
|
cy.contains('Check your answer').should('be.visible');
|
|
cy.contains('Ask for Help').should('be.visible');
|
|
});
|
|
});
|
|
|
|
describe('Trophy Challenges', () => {
|
|
before(() => {
|
|
cy.login();
|
|
cy.visit(cSharpLocations.trophy);
|
|
});
|
|
|
|
it('renders the correct buttons', () => {
|
|
cy.contains('Link Account').should('be.visible');
|
|
cy.contains('Verify Trophy').should('be.visible');
|
|
cy.contains('Ask for Help').should('be.visible');
|
|
});
|
|
});
|
|
});
|