Skip to content

Commit

Permalink
Fix outdates Cypress tests
Browse files Browse the repository at this point in the history
Fix tests looking for <p> removed from the code in 0aa6c40
  • Loading branch information
AlexImb authored and thlassche committed Feb 3, 2020
1 parent c430cf8 commit e46be85
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cypress/integration/actions.spec.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
describe("Testing basic actions in the ui", () => {
it("Successfully opens page", () => {
cy.visit("/")
cy.get(".connection > p").should("contain", "Connected")
cy.get("header > .logo").should("be.visible")
cy.get(".metrics-container").should("be.visible")
})

Expand Down
10 changes: 8 additions & 2 deletions cypress/integration/rendering.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,13 @@ const deviceResolutions = {
quarter(1086, 772),
sixth(1086, 772)
],
raymarine: [[800, 480], [1280, 720], [1280, 800], [1920, 1080], [1920, 1200]],
raymarine: [
[800, 480],
[1280, 720],
[1280, 800],
[1920, 1080],
[1920, 1200]
],
garmin: [
[1280, 723],
halfHorizontalSplit(1280, 723),
Expand All @@ -53,7 +59,7 @@ for (let [device, resolutions] of Object.entries(deviceResolutions)) {

it("Successfully opens page", () => {
cy.visit("/")
cy.get(".connection > p").should("contain", "Connected")
cy.get("header > .logo").should("be.visible")
cy.get(".metrics-container").should("be.visible")
})

Expand Down
2 changes: 1 addition & 1 deletion cypress/integration/values.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ describe("Testing basic values rendering in the ui", () => {

it("Successfully opens page", () => {
cy.visit("/")
cy.get(".connection > p").should("contain", "Connected")
cy.get("header > .logo").should("be.visible")
cy.get(".metrics-container").should("be.visible")
})

Expand Down

0 comments on commit e46be85

Please sign in to comment.