Skip to content

Commit ca9e91f

Browse files
authored
Merge pull request webdevcody#696 from vignesh-gupta/main
Fixed Failing test + Added badges
2 parents eb39700 + cc242dd commit ca9e91f

File tree

3 files changed

+21
-13
lines changed

3 files changed

+21
-13
lines changed

README.md

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,30 @@
44
<h1>Code Racer</h1>
55
</div>
66

7-
# [![View 👁️](https://img.shields.io/badge/Website-View%20🌐-red?style=for-the-badge&logo=appveyor)](https://code-racer-eight.vercel.app/)
8-
97
<div align="center">
108
Welcome to Code Racer, a community project built with <a href="https://nextjs.org/">Next.js</a>, <a href="https://tailwindcss.com">Tailwind CSS</a>, and <a href="https://www.typescriptlang.org">TypeScript</a>.
119
Code Racer is a multiplayer coding game where developers can compete against each other to solve programming challenges in real-time. Sharpen your coding skills, challenge your peers, and have fun while racing against the clock!
1210
</div>
1311

12+
<div align="center">
13+
<!-- TO ADD more Badges use -> https://shields.io/ -->
14+
15+
<img alt="GitHub contributors" src="https://img.shields.io/github/contributors-anon/webdevcody/code-racer">
16+
<img alt="Repo License" src="https://img.shields.io/github/license/webdevcody/code-racer">
17+
<img alt="Website Status" src="https://img.shields.io/website?url=https%3A%2F%2Fcode-racer-eight.vercel.app">
18+
19+
</div>
20+
21+
1422
## Table of Contents
1523

16-
- [:rocket:Features](#features)
17-
- [:hammer_and_wrench:Technologies Used](#technologies-used)
18-
- [:handshake:Contribution](#contribution)
24+
- [:rocket: Features](#features)
25+
- [:hammer_and_wrench: Technologies Used](#technologies-used)
26+
- [:handshake: Contribution](#contribution)
1927
- [:lock: License](#license)
2028
- [🙏🏻 Acknowledgements](#acknowledgements)
21-
- [:envelope:Contact](#contact)
22-
- [:clapper:Related Youtube Videos & Progress](#related-youtube-videos-progress)
29+
- [:envelope: Contact](#contact)
30+
- [:clapper: Related Youtube Videos & Progress](#related-youtube-videos-progress)
2331

2432
<a id="features"></a>
2533

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
export class RacePage {
2-
practiceCardlanguageDropdown(): Cypress.Chainable {
3-
return cy.get('[data-cy="practice-card"] [data-cy="language-dropdown"]');
2+
practiceCardLanguageDropdown(): Cypress.Chainable {
3+
return cy.get("[data-cy='practice-card'] [data-cy='language-dropdown']");
44
}
55
cppLanguageOption(): Cypress.Chainable {
6-
return cy.get('[data-cy="c++-value"]');
6+
return cy.get("[data-cy='c++-value']");
77
}
88
practiceButton(): Cypress.Chainable {
9-
return cy.get('[data-cy="practice-button"]');
9+
return cy.get("[data-cy='practice-button']");
1010
}
1111
codeSnippet(): Cypress.Chainable {
12-
return cy.get('[data-cy="code-snippet-preformatted"]');
12+
return cy.get("[data-cy='code-snippet-preformatted']");
1313
}
1414
}

packages/app/cypress/e2e/tests/TestPracticeRace.cy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ it("can successfully completed a practice race", () => {
2020
navbarComponent.race().should("be.visible").click();
2121

2222
// Find language selection and type snippet language
23-
racePage.practiceCardlanguageDropdown().should("be.visible").click();
23+
racePage.practiceCardLanguageDropdown().should("be.visible").click();
2424
cy.wait(TIME_TO_WAIT);
2525
cy.get("input").type("c++");
2626
cy.wait(TIME_TO_WAIT);

0 commit comments

Comments
 (0)