1
0
Fork 0
mirror of synced 2024-06-18 18:35:37 +12:00

Lint fixes

This commit is contained in:
Conor_Mack 2020-06-24 16:20:58 +01:00
parent fcff2d928a
commit 4c7bdcded1
2 changed files with 19 additions and 17 deletions

View file

@ -104,24 +104,24 @@ Cypress.Commands.add("addButtonComponent", () => {
cy.get("[data-cy=Button]").click()
})
Cypress.Commands.add('navigateToFrontend', () => {
cy.wait(4000)
Cypress.Commands.add("navigateToFrontend", () => {
cy.wait(4000)
cy.get(".close").click()
cy.contains('frontend').click()
cy.wait(2000)
cy.contains("frontend").click()
cy.wait(2000)
cy.get(".close").click()
})
Cypress.Commands.add("createScreen", (screenName, route) => {
cy.get(".newscreen").click()
cy.get(".uk-input:first").type(screenName)
if(route) {
cy.get(".uk-input:last").type(route)
}
cy.get('.uk-modal-footer').within(() => {
cy.contains('Create Screen').click()
})
cy.get('.nav-items-container').within(() => {
cy.contains(screenName).should('exist')
})
})
cy.get(".newscreen").click()
cy.get(".uk-input:first").type(screenName)
if (route) {
cy.get(".uk-input:last").type(route)
}
cy.get(".uk-modal-footer").within(() => {
cy.contains("Create Screen").click()
})
cy.get(".nav-items-container").within(() => {
cy.contains(screenName).should("exist")
})
})

View file

@ -29,7 +29,9 @@ export const searchAllComponents = (components, phrase) => {
}
export const getExactComponent = (components, name, isScreen = false) => {
return components.find(c => isScreen ? c.props._instanceName === name : c._instanceName === name)
return components.find(c =>
isScreen ? c.props._instanceName === name : c._instanceName === name
)
}
export const getAncestorProps = (components, name, found = []) => {