Skip to content

Commit feaa9e0

Browse files
Merge pull request #283 from topcoder-platform/TCA-60_cypress
TCA-60 Hello World Cypress Test -> dev
2 parents 4af63bb + 1cd35ea commit feaa9e0

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

cypress/e2e/home/home.spec.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
describe('Landing Page', () => {
2-
beforeEach(() => cy.visit('/'))
3-
it('loads landing page should be successfully', () => {
4-
cy.get('[data-cy="root"]').should('be.visible')
5-
})
2+
3+
beforeEach(() => cy.visit('/'))
4+
5+
it('loads landing page should be successfully', () => {
6+
cy.get('[data-id="root"]').should('be.visible')
7+
})
68
})

public/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
<body>
3434
<noscript>You need to enable JavaScript to run this app.</noscript>
35-
<div id="root" data-cy="root"></div>
35+
<div id="root" data-id="root"></div>
3636
<!--
3737
This HTML file is a template.
3838
If you open it directly in the browser, you will see an empty page.
@@ -45,4 +45,4 @@
4545
-->
4646
</body>
4747

48-
</html>
48+
</html>

0 commit comments

Comments
 (0)