Skip to content

Commit

Permalink
chore: code review tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
kswenson committed Jun 5, 2024
1 parent 749a1c0 commit dcf3150
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions v3/cypress/e2e/cfm.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import { TableTileElements as table } from "../support/elements/table-tile"

context("CloudFileManager", () => {
beforeEach(function () {
const queryParams = "?mouseSensor"
const url = `${Cypress.config("index")}${queryParams}`
cy.visit(url)
cy.wait(2500)
const queryParams = "?mouseSensor"
const url = `${Cypress.config("index")}${queryParams}`
cy.visit(url)
cy.wait(2500)
})
it("Opens Mammals example document via CFM Open dialog", () => {
// hamburger menu is hidden initially
Expand All @@ -32,7 +32,7 @@ context("CloudFileManager", () => {
cfm.getModalDialog().should("not.exist")
cy.get(".codap-component.codap-case-table").contains(".title-bar", "Mammals").should("exist")
})
it("Opens a local document using different methods", () => {
it("Opens a local document using different methods", () => {
const fileName = "../v3/cypress/fixtures/mammals.codap"
const CSVFileName = "../v3/cypress/fixtures/map-data.csv"

Expand All @@ -46,9 +46,9 @@ context("CloudFileManager", () => {
cfm.getModalDialog().contains(".modal-dialog-title", "Open")
cfm.getModalDialog().contains("", "Local File").click()
cfm.getModalDialog()
.contains(".dropArea", "Drop file here or click here to select a file.")
.should("exist")
.click({force:true})
.contains(".dropArea", "Drop file here or click here to select a file.")
.should("exist")
.click({force:true})
cy.get('input[type=file]').selectFile(fileName)

// Verify table in Mammals exists
Expand Down Expand Up @@ -87,5 +87,5 @@ context("CloudFileManager", () => {

// Verify document was closed (Map data table doesn't exist)
c.checkComponentDoesNotExist("table")
})
})
})

0 comments on commit dcf3150

Please sign in to comment.