Backed out merge conflict remoted updates.
This commit is contained in:
parent
2040fd4b67
commit
8da8631781
|
@ -49,36 +49,36 @@ filterTests(['all'], () => {
|
||||||
|
|
||||||
it("should change the text of the headline", () => {
|
it("should change the text of the headline", () => {
|
||||||
const text = "Lorem ipsum dolor sit amet."
|
const text = "Lorem ipsum dolor sit amet."
|
||||||
cy.get(interact.SETTINGS).click()
|
cy.get("[data-cy=setting-text] input")
|
||||||
cy.get(interact.SETTINGS_INPUT)
|
|
||||||
.type(text)
|
.type(text)
|
||||||
.blur()
|
.blur()
|
||||||
cy.getComponent(headlineId).should("have.text", text)
|
cy.getComponent(headlineId).should("have.text", text)
|
||||||
})
|
})
|
||||||
|
|
||||||
it("should change the size of the headline", () => {
|
it("should change the size of the headline", () => {
|
||||||
cy.get(interact.DESIGN).click()
|
cy.get("[data-cy=setting-size]").scrollIntoView().click()
|
||||||
cy.contains("Typography").click()
|
cy.get("[data-cy=setting-size]").within(() => {
|
||||||
cy.get(interact.FONT_SIZE_PROP_CONTROL).click()
|
cy.get(".spectrum-Form-item li.spectrum-Menu-item").contains("3XL").click()
|
||||||
cy.contains("60px").click()
|
})
|
||||||
cy.getComponent(headlineId).should("have.css", "font-size", "60px")
|
|
||||||
|
cy.getComponent(headlineId).within(() => {
|
||||||
|
cy.get(".spectrum-Heading").should("have.css", "font-size", "60px")
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
it("should create a form and reset to match schema", () => {
|
it("should create a form and reset to match schema", () => {
|
||||||
cy.addComponent("Form", "Form").then(() => {
|
cy.addComponent("Form", "Form").then(() => {
|
||||||
cy.get(interact.SETTINGS).click()
|
cy.get("[data-cy=setting-dataSource]")
|
||||||
cy.get(interact.DATA_CY_DATASOURCE)
|
.contains("Custom")
|
||||||
.contains("Choose option")
|
|
||||||
.click()
|
.click()
|
||||||
cy.get(interact.DROPDOWN)
|
cy.get(interact.DROPDOWN)
|
||||||
.contains("dog")
|
.contains("dog")
|
||||||
.click()
|
.click()
|
||||||
cy.wait(500)
|
cy.wait(500)
|
||||||
cy.addComponent("Form", "Field Group").then(fieldGroupId => {
|
cy.addComponent("Form", "Field Group").then(fieldGroupId => {
|
||||||
cy.get(interact.SETTINGS).click()
|
cy.contains("Update form fields").click()
|
||||||
cy.contains("Update Form Fields").click()
|
cy.get(".spectrum-Modal")
|
||||||
cy.get(".modal")
|
.get(".confirm-wrap .spectrum-Button")
|
||||||
.get("button.primary")
|
|
||||||
.click()
|
.click()
|
||||||
cy.wait(500)
|
cy.wait(500)
|
||||||
cy.getComponent(fieldGroupId).within(() => {
|
cy.getComponent(fieldGroupId).within(() => {
|
||||||
|
@ -105,7 +105,7 @@ filterTests(['all'], () => {
|
||||||
cy.get(".nav-items-container .nav-item.selected .actions > div > .icon").click({
|
cy.get(".nav-items-container .nav-item.selected .actions > div > .icon").click({
|
||||||
force: true,
|
force: true,
|
||||||
})
|
})
|
||||||
cy.get(interact.DROPDOWN_CONTAINER)
|
cy.get(".spectrum-Popover.is-open li")
|
||||||
.contains("Delete")
|
.contains("Delete")
|
||||||
.click()
|
.click()
|
||||||
cy.get(".spectrum-Modal button")
|
cy.get(".spectrum-Modal button")
|
||||||
|
|
Loading…
Reference in New Issue