Merge branch 'develop' of github.com:Budibase/budibase into new-design-ui
This commit is contained in:
commit
f4eb6f36bd
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"version": "1.0.176-alpha.0",
|
"version": "1.0.177",
|
||||||
"npmClient": "yarn",
|
"npmClient": "yarn",
|
||||||
"packages": [
|
"packages": [
|
||||||
"packages/*"
|
"packages/*"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@budibase/backend-core",
|
"name": "@budibase/backend-core",
|
||||||
"version": "1.0.176-alpha.0",
|
"version": "1.0.177",
|
||||||
"description": "Budibase backend core libraries used in server and worker",
|
"description": "Budibase backend core libraries used in server and worker",
|
||||||
"main": "src/index.js",
|
"main": "src/index.js",
|
||||||
"author": "Budibase",
|
"author": "Budibase",
|
||||||
|
|
|
@ -50,6 +50,7 @@ module.exports = {
|
||||||
process.env.GLOBAL_CLOUD_BUCKET_NAME || "prod-budi-tenant-uploads",
|
process.env.GLOBAL_CLOUD_BUCKET_NAME || "prod-budi-tenant-uploads",
|
||||||
USE_COUCH: process.env.USE_COUCH || true,
|
USE_COUCH: process.env.USE_COUCH || true,
|
||||||
DISABLE_DEVELOPER_LICENSE: process.env.DISABLE_DEVELOPER_LICENSE,
|
DISABLE_DEVELOPER_LICENSE: process.env.DISABLE_DEVELOPER_LICENSE,
|
||||||
|
DEFAULT_LICENSE: process.env.DEFAULT_LICENSE,
|
||||||
_set(key, value) {
|
_set(key, value) {
|
||||||
process.env[key] = value
|
process.env[key] = value
|
||||||
module.exports[key] = value
|
module.exports[key] = value
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "@budibase/bbui",
|
"name": "@budibase/bbui",
|
||||||
"description": "A UI solution used in the different Budibase projects.",
|
"description": "A UI solution used in the different Budibase projects.",
|
||||||
"version": "1.0.176-alpha.0",
|
"version": "1.0.177",
|
||||||
"license": "MPL-2.0",
|
"license": "MPL-2.0",
|
||||||
"svelte": "src/index.js",
|
"svelte": "src/index.js",
|
||||||
"module": "dist/bbui.es.js",
|
"module": "dist/bbui.es.js",
|
||||||
|
@ -38,7 +38,7 @@
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@adobe/spectrum-css-workflow-icons": "^1.2.1",
|
"@adobe/spectrum-css-workflow-icons": "^1.2.1",
|
||||||
"@budibase/string-templates": "^1.0.176-alpha.0",
|
"@budibase/string-templates": "^1.0.177",
|
||||||
"@spectrum-css/actionbutton": "^1.0.1",
|
"@spectrum-css/actionbutton": "^1.0.1",
|
||||||
"@spectrum-css/actiongroup": "^1.0.1",
|
"@spectrum-css/actiongroup": "^1.0.1",
|
||||||
"@spectrum-css/avatar": "^3.0.2",
|
"@spectrum-css/avatar": "^3.0.2",
|
||||||
|
|
|
@ -7,13 +7,7 @@ filterTests(["all"], () => {
|
||||||
cy.login()
|
cy.login()
|
||||||
|
|
||||||
// Template navigation
|
// Template navigation
|
||||||
cy.request(`${Cypress.config().baseUrl}/api/applications?status=all`)
|
cy.visit(`${Cypress.config().baseUrl}/builder/portal/apps/templates`)
|
||||||
.its("body")
|
|
||||||
.then(val => {
|
|
||||||
if (val.length > 0) {
|
|
||||||
cy.get(".spectrum-Button").contains("Templates").click({force: true})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
// Filter HR Templates
|
// Filter HR Templates
|
||||||
cy.get(".template-category-filters").within(() => {
|
cy.get(".template-category-filters").within(() => {
|
||||||
|
|
|
@ -8,13 +8,13 @@ filterTests(["all"], () => {
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.login()
|
cy.login()
|
||||||
cy.deleteApp(templateName)
|
cy.deleteApp(templateName)
|
||||||
cy.visit(`${Cypress.config().baseUrl}/builder`, {
|
// Template navigation
|
||||||
|
cy.visit(`${Cypress.config().baseUrl}/builder/portal/apps/templates`, {
|
||||||
onBeforeLoad(win) {
|
onBeforeLoad(win) {
|
||||||
cy.stub(win, 'open')
|
cy.stub(win, 'open')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
cy.wait(2000)
|
cy.wait(2000)
|
||||||
cy.templateNavigation()
|
|
||||||
})
|
})
|
||||||
|
|
||||||
it("should create and publish app with Job Application Tracker template", () => {
|
it("should create and publish app with Job Application Tracker template", () => {
|
||||||
|
@ -35,19 +35,10 @@ filterTests(["all"], () => {
|
||||||
cy.get(".spectrum-Button").contains("Create app").click({ force: true })
|
cy.get(".spectrum-Button").contains("Create app").click({ force: true })
|
||||||
})
|
})
|
||||||
|
|
||||||
// Publish App
|
// Publish App & Verify it opened
|
||||||
cy.wait(2000) // Wait for app to generate
|
cy.wait(2000) // Wait for app to generate
|
||||||
cy.get(".toprightnav").contains("Publish").click({ force: true })
|
cy.publishApp(true)
|
||||||
cy.get(".spectrum-Dialog-grid").within(() => {
|
cy.window().its('open').should('be.calledOnce')
|
||||||
cy.get(".spectrum-Button").contains("Publish").click({ force: true })
|
|
||||||
})
|
|
||||||
|
|
||||||
// Verify Published app
|
|
||||||
cy.wait(2000) // Wait for App to publish and modal to appear
|
|
||||||
cy.get(".spectrum-Dialog-grid").within(() => {
|
|
||||||
cy.get(".spectrum-Button").contains("View App").click({ force: true })
|
|
||||||
cy.window().its('open').should('be.calledOnce')
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
|
|
||||||
it("should add active/inactive vacancies", () => {
|
it("should add active/inactive vacancies", () => {
|
||||||
|
|
|
@ -7,13 +7,7 @@ filterTests(["all"], () => {
|
||||||
cy.login()
|
cy.login()
|
||||||
|
|
||||||
// Template navigation
|
// Template navigation
|
||||||
cy.request(`${Cypress.config().baseUrl}/api/applications?status=all`)
|
cy.visit(`${Cypress.config().baseUrl}/builder/portal/apps/templates`)
|
||||||
.its("body")
|
|
||||||
.then(val => {
|
|
||||||
if (val.length > 0) {
|
|
||||||
cy.get(".spectrum-Button").contains("Templates").click({force: true})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
// Filter IT Templates
|
// Filter IT Templates
|
||||||
cy.get(".template-category-filters").within(() => {
|
cy.get(".template-category-filters").within(() => {
|
||||||
|
|
|
@ -8,13 +8,13 @@ filterTests(["all"], () => {
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.login()
|
cy.login()
|
||||||
cy.deleteApp(templateName)
|
cy.deleteApp(templateName)
|
||||||
cy.visit(`${Cypress.config().baseUrl}/builder`, {
|
// Template navigation
|
||||||
|
cy.visit(`${Cypress.config().baseUrl}/builder/portal/apps/templates`, {
|
||||||
onBeforeLoad(win) {
|
onBeforeLoad(win) {
|
||||||
cy.stub(win, 'open')
|
cy.stub(win, 'open')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
cy.wait(2000)
|
cy.wait(2000)
|
||||||
cy.templateNavigation()
|
|
||||||
})
|
})
|
||||||
|
|
||||||
it("should create and publish app with IT Ticketing System template", () => {
|
it("should create and publish app with IT Ticketing System template", () => {
|
||||||
|
@ -35,19 +35,10 @@ filterTests(["all"], () => {
|
||||||
cy.get(".spectrum-Button").contains("Create app").click({ force: true })
|
cy.get(".spectrum-Button").contains("Create app").click({ force: true })
|
||||||
})
|
})
|
||||||
|
|
||||||
// Publish App
|
// Publish App & Verify it opened
|
||||||
cy.wait(2000) // Wait for app to generate
|
cy.wait(2000) // Wait for app to generate
|
||||||
cy.get(".toprightnav").contains("Publish").click({ force: true })
|
cy.publishApp(true)
|
||||||
cy.get(".spectrum-Dialog-grid").within(() => {
|
cy.window().its('open').should('be.calledOnce')
|
||||||
cy.get(".spectrum-Button").contains("Publish").click({ force: true })
|
|
||||||
})
|
|
||||||
|
|
||||||
// Verify Published app
|
|
||||||
cy.wait(2000) // Wait for App to publish and modal to appear
|
|
||||||
cy.get(".spectrum-Dialog-grid").within(() => {
|
|
||||||
cy.get(".spectrum-Button").contains("View App").click({ force: true })
|
|
||||||
cy.window().its('open').should('be.calledOnce')
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
|
|
||||||
xit("should filter tickets by status", () => {
|
xit("should filter tickets by status", () => {
|
||||||
|
|
|
@ -7,13 +7,7 @@ filterTests(["all"], () => {
|
||||||
cy.login()
|
cy.login()
|
||||||
|
|
||||||
// Template navigation
|
// Template navigation
|
||||||
cy.request(`${Cypress.config().baseUrl}/api/applications?status=all`)
|
cy.visit(`${Cypress.config().baseUrl}/builder/portal/apps/templates`)
|
||||||
.its("body")
|
|
||||||
.then(val => {
|
|
||||||
if (val.length > 0) {
|
|
||||||
cy.get(".spectrum-Button").contains("Templates").click({force: true})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
// Filter Admin Panels Templates
|
// Filter Admin Panels Templates
|
||||||
cy.get(".template-category-filters").within(() => {
|
cy.get(".template-category-filters").within(() => {
|
||||||
|
|
|
@ -7,13 +7,7 @@ filterTests(["all"], () => {
|
||||||
cy.login()
|
cy.login()
|
||||||
|
|
||||||
// Template navigation
|
// Template navigation
|
||||||
cy.request(`${Cypress.config().baseUrl}/api/applications?status=all`)
|
cy.visit(`${Cypress.config().baseUrl}/builder/portal/apps/templates`)
|
||||||
.its("body")
|
|
||||||
.then(val => {
|
|
||||||
if (val.length > 0) {
|
|
||||||
cy.get(".spectrum-Button").contains("Templates").click({force: true})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
// Filter Approval Apps Templates
|
// Filter Approval Apps Templates
|
||||||
cy.get(".template-category-filters").within(() => {
|
cy.get(".template-category-filters").within(() => {
|
||||||
|
|
|
@ -7,13 +7,7 @@ filterTests(["all"], () => {
|
||||||
cy.login()
|
cy.login()
|
||||||
|
|
||||||
// Template navigation
|
// Template navigation
|
||||||
cy.request(`${Cypress.config().baseUrl}/api/applications?status=all`)
|
cy.visit(`${Cypress.config().baseUrl}/builder/portal/apps/templates`)
|
||||||
.its("body")
|
|
||||||
.then(val => {
|
|
||||||
if (val.length > 0) {
|
|
||||||
cy.get(".spectrum-Button").contains("Templates").click({force: true})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
// Filter Business Apps Templates
|
// Filter Business Apps Templates
|
||||||
cy.get(".template-category-filters").within(() => {
|
cy.get(".template-category-filters").within(() => {
|
||||||
|
|
|
@ -7,13 +7,7 @@ filterTests(["all"], () => {
|
||||||
cy.login()
|
cy.login()
|
||||||
|
|
||||||
// Template navigation
|
// Template navigation
|
||||||
cy.request(`${Cypress.config().baseUrl}/api/applications?status=all`)
|
cy.visit(`${Cypress.config().baseUrl}/builder/portal/apps/templates`)
|
||||||
.its("body")
|
|
||||||
.then(val => {
|
|
||||||
if (val.length > 0) {
|
|
||||||
cy.get(".spectrum-Button").contains("Templates").click({force: true})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
// Filter Directories Templates
|
// Filter Directories Templates
|
||||||
cy.get(".template-category-filters").within(() => {
|
cy.get(".template-category-filters").within(() => {
|
||||||
|
|
|
@ -7,13 +7,7 @@ filterTests(["all"], () => {
|
||||||
cy.login()
|
cy.login()
|
||||||
|
|
||||||
// Template navigation
|
// Template navigation
|
||||||
cy.request(`${Cypress.config().baseUrl}/api/applications?status=all`)
|
cy.visit(`${Cypress.config().baseUrl}/builder/portal/apps/templates`)
|
||||||
.its("body")
|
|
||||||
.then(val => {
|
|
||||||
if (val.length > 0) {
|
|
||||||
cy.get(".spectrum-Button").contains("Templates").click({force: true})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
// Filter Forms Templates
|
// Filter Forms Templates
|
||||||
cy.get(".template-category-filters").within(() => {
|
cy.get(".template-category-filters").within(() => {
|
||||||
|
|
|
@ -7,13 +7,7 @@ filterTests(["all"], () => {
|
||||||
cy.login()
|
cy.login()
|
||||||
|
|
||||||
// Template navigation
|
// Template navigation
|
||||||
cy.request(`${Cypress.config().baseUrl}/api/applications?status=all`)
|
cy.visit(`${Cypress.config().baseUrl}/builder/portal/apps/templates`)
|
||||||
.its("body")
|
|
||||||
.then(val => {
|
|
||||||
if (val.length > 0) {
|
|
||||||
cy.get(".spectrum-Button").contains("Templates").click({force: true})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
// Filter Healthcare Templates
|
// Filter Healthcare Templates
|
||||||
cy.get(".template-category-filters").within(() => {
|
cy.get(".template-category-filters").within(() => {
|
||||||
|
|
|
@ -7,13 +7,7 @@ filterTests(["all"], () => {
|
||||||
cy.login()
|
cy.login()
|
||||||
|
|
||||||
// Template navigation
|
// Template navigation
|
||||||
cy.request(`${Cypress.config().baseUrl}/api/applications?status=all`)
|
cy.visit(`${Cypress.config().baseUrl}/builder/portal/apps/templates`)
|
||||||
.its("body")
|
|
||||||
.then(val => {
|
|
||||||
if (val.length > 0) {
|
|
||||||
cy.get(".spectrum-Button").contains("Templates").click({force: true})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
// Filter Legal Templates
|
// Filter Legal Templates
|
||||||
cy.get(".template-category-filters").within(() => {
|
cy.get(".template-category-filters").within(() => {
|
||||||
|
|
|
@ -7,13 +7,7 @@ filterTests(["all"], () => {
|
||||||
cy.login()
|
cy.login()
|
||||||
|
|
||||||
// Template navigation
|
// Template navigation
|
||||||
cy.request(`${Cypress.config().baseUrl}/api/applications?status=all`)
|
cy.visit(`${Cypress.config().baseUrl}/builder/portal/apps/templates`)
|
||||||
.its("body")
|
|
||||||
.then(val => {
|
|
||||||
if (val.length > 0) {
|
|
||||||
cy.get(".spectrum-Button").contains("Templates").click({force: true})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
// Filter Logistics Templates
|
// Filter Logistics Templates
|
||||||
cy.get(".template-category-filters").within(() => {
|
cy.get(".template-category-filters").within(() => {
|
||||||
|
|
|
@ -7,13 +7,7 @@ filterTests(["all"], () => {
|
||||||
cy.login()
|
cy.login()
|
||||||
|
|
||||||
// Template navigation
|
// Template navigation
|
||||||
cy.request(`${Cypress.config().baseUrl}/api/applications?status=all`)
|
cy.visit(`${Cypress.config().baseUrl}/builder/portal/apps/templates`)
|
||||||
.its("body")
|
|
||||||
.then(val => {
|
|
||||||
if (val.length > 0) {
|
|
||||||
cy.get(".spectrum-Button").contains("Templates").click({force: true})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
// Filter Manufacturing Templates
|
// Filter Manufacturing Templates
|
||||||
cy.get(".template-category-filters").within(() => {
|
cy.get(".template-category-filters").within(() => {
|
||||||
|
|
|
@ -0,0 +1,44 @@
|
||||||
|
import filterTests from "../../../support/filterTests"
|
||||||
|
|
||||||
|
filterTests(["all"], () => {
|
||||||
|
context("Lead Generation Form Template Functionality", () => {
|
||||||
|
const templateName = "Lead Generation Form"
|
||||||
|
const templateNameParsed = templateName.toLowerCase().replace(/\s+/g, '-')
|
||||||
|
|
||||||
|
before(() => {
|
||||||
|
cy.login()
|
||||||
|
cy.deleteApp(templateName)
|
||||||
|
// Template navigation
|
||||||
|
cy.visit(`${Cypress.config().baseUrl}/builder/portal/apps/templates`, {
|
||||||
|
onBeforeLoad(win) {
|
||||||
|
cy.stub(win, 'open')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
cy.wait(2000)
|
||||||
|
})
|
||||||
|
|
||||||
|
it("should create and publish app with Lead Generation Form template", () => {
|
||||||
|
// Select Lead Generation Form template
|
||||||
|
cy.get(".template-thumbnail-text")
|
||||||
|
.contains(templateName).parentsUntil(".template-grid").within(() => {
|
||||||
|
cy.get(".spectrum-Button").contains("Use template").click({ force: true })
|
||||||
|
})
|
||||||
|
|
||||||
|
// Confirm URL matches template name
|
||||||
|
const appUrl = cy.get(".app-server")
|
||||||
|
appUrl.invoke('text').then(appUrlText => {
|
||||||
|
expect(appUrlText).to.equal(`${Cypress.config().baseUrl}/app/` + templateNameParsed)
|
||||||
|
})
|
||||||
|
|
||||||
|
// Create App
|
||||||
|
cy.get(".spectrum-Dialog-grid").within(() => {
|
||||||
|
cy.get(".spectrum-Button").contains("Create app").click({ force: true })
|
||||||
|
})
|
||||||
|
|
||||||
|
// Publish App & Verify it opened
|
||||||
|
cy.wait(2000) // Wait for app to generate
|
||||||
|
cy.publishApp(true)
|
||||||
|
cy.window().its('open').should('be.calledOnce')
|
||||||
|
})
|
||||||
|
})
|
||||||
|
})
|
|
@ -7,13 +7,7 @@ filterTests(["all"], () => {
|
||||||
cy.login()
|
cy.login()
|
||||||
|
|
||||||
// Template navigation
|
// Template navigation
|
||||||
cy.request(`${Cypress.config().baseUrl}/api/applications?status=all`)
|
cy.visit(`${Cypress.config().baseUrl}/builder/portal/apps/templates`)
|
||||||
.its("body")
|
|
||||||
.then(val => {
|
|
||||||
if (val.length > 0) {
|
|
||||||
cy.get(".spectrum-Button").contains("Templates").click({force: true})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
// Filter Marketing Templates
|
// Filter Marketing Templates
|
||||||
cy.get(".template-category-filters").within(() => {
|
cy.get(".template-category-filters").within(() => {
|
||||||
|
|
|
@ -7,13 +7,7 @@ filterTests(["all"], () => {
|
||||||
cy.login()
|
cy.login()
|
||||||
|
|
||||||
// Template navigation
|
// Template navigation
|
||||||
cy.request(`${Cypress.config().baseUrl}/api/applications?status=all`)
|
cy.visit(`${Cypress.config().baseUrl}/builder/portal/apps/templates`)
|
||||||
.its("body")
|
|
||||||
.then(val => {
|
|
||||||
if (val.length > 0) {
|
|
||||||
cy.get(".spectrum-Button").contains("Templates").click({force: true})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
// Filter Operations Templates
|
// Filter Operations Templates
|
||||||
cy.get(".template-category-filters").within(() => {
|
cy.get(".template-category-filters").within(() => {
|
||||||
|
|
|
@ -7,21 +7,15 @@ filterTests(["all"], () => {
|
||||||
cy.login()
|
cy.login()
|
||||||
|
|
||||||
// Template navigation
|
// Template navigation
|
||||||
cy.request(`${Cypress.config().baseUrl}/api/applications?status=all`)
|
cy.visit(`${Cypress.config().baseUrl}/builder/portal/apps/templates`)
|
||||||
.its("body")
|
|
||||||
.then(val => {
|
// Filter Portal Templates
|
||||||
if (val.length > 0) {
|
cy.get(".template-category-filters").within(() => {
|
||||||
cy.get(".spectrum-Button").contains("Templates").click({force: true})
|
cy.get('[data-cy="Portal"]').click()
|
||||||
}
|
})
|
||||||
})
|
|
||||||
})
|
})
|
||||||
|
|
||||||
it("should verify the details option for Portal templates", () => {
|
it("should verify the details option for Portal templates", () => {
|
||||||
// Filter Portal Templates
|
|
||||||
cy.get(".template-category-filters").within(() => {
|
|
||||||
cy.get('[data-cy="Portal"]').click()
|
|
||||||
})
|
|
||||||
|
|
||||||
cy.get(".template-grid").find(".template-card").its('length')
|
cy.get(".template-grid").find(".template-card").its('length')
|
||||||
.then(len => {
|
.then(len => {
|
||||||
for (let i = 0; i < len; i++) {
|
for (let i = 0; i < len; i++) {
|
||||||
|
|
|
@ -7,13 +7,7 @@ filterTests(["all"], () => {
|
||||||
cy.login()
|
cy.login()
|
||||||
|
|
||||||
// Template navigation
|
// Template navigation
|
||||||
cy.request(`${Cypress.config().baseUrl}/api/applications?status=all`)
|
cy.visit(`${Cypress.config().baseUrl}/builder/portal/apps/templates`)
|
||||||
.its("body")
|
|
||||||
.then(val => {
|
|
||||||
if (val.length > 0) {
|
|
||||||
cy.get(".spectrum-Button").contains("Templates").click({force: true})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
// Filter Professional Services Templates
|
// Filter Professional Services Templates
|
||||||
cy.get(".template-category-filters").within(() => {
|
cy.get(".template-category-filters").within(() => {
|
||||||
|
|
|
@ -35,7 +35,7 @@ Cypress.Commands.add("login", () => {
|
||||||
Cypress.Commands.add("closeModal", () => {
|
Cypress.Commands.add("closeModal", () => {
|
||||||
cy.get(".spectrum-Modal").within(() => {
|
cy.get(".spectrum-Modal").within(() => {
|
||||||
cy.get(".close-icon").click()
|
cy.get(".close-icon").click()
|
||||||
cy.wait(500)
|
cy.wait(1000) // Wait for modal to close
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -222,6 +222,21 @@ Cypress.Commands.add("createTestTableWithData", () => {
|
||||||
cy.addColumn("dog", "age", "Number")
|
cy.addColumn("dog", "age", "Number")
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Cypress.Commands.add("publishApp", (viewApp = false) => {
|
||||||
|
cy.get(".toprightnav").contains("Publish").click({ force: true })
|
||||||
|
cy.get(".spectrum-Dialog-grid").within(() => {
|
||||||
|
cy.get(".spectrum-Button").contains("Publish").click({ force: true })
|
||||||
|
})
|
||||||
|
cy.wait(2000) // Wait for App to publish and modal to appear
|
||||||
|
cy.get(".spectrum-Dialog-grid").within(() => {
|
||||||
|
if (viewApp) {
|
||||||
|
cy.get(".spectrum-Button").contains("View App").click({ force: true })
|
||||||
|
} else {
|
||||||
|
cy.get(".spectrum-Button").contains("Done").click({ force: true })
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
Cypress.Commands.add("createTable", (tableName, initialTable) => {
|
Cypress.Commands.add("createTable", (tableName, initialTable) => {
|
||||||
if (!initialTable) {
|
if (!initialTable) {
|
||||||
cy.navigateToDataSection()
|
cy.navigateToDataSection()
|
||||||
|
@ -671,15 +686,3 @@ Cypress.Commands.add("createRestQuery", (method, restUrl, queryPrettyName) => {
|
||||||
.should("contain", method)
|
.should("contain", method)
|
||||||
.and("contain", queryPrettyName)
|
.and("contain", queryPrettyName)
|
||||||
})
|
})
|
||||||
|
|
||||||
Cypress.Commands.add("templateNavigation", () => {
|
|
||||||
// Navigates to templates section
|
|
||||||
cy.request(`${Cypress.config().baseUrl}/api/applications?status=all`)
|
|
||||||
.its("body")
|
|
||||||
.then(val => {
|
|
||||||
// Templates button needs clicked if apps already exist
|
|
||||||
if (val.length > 0) {
|
|
||||||
cy.get(".spectrum-Button").contains("Templates").click({ force: true })
|
|
||||||
}
|
|
||||||
})
|
|
||||||
})
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@budibase/builder",
|
"name": "@budibase/builder",
|
||||||
"version": "1.0.176-alpha.0",
|
"version": "1.0.177",
|
||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -69,10 +69,10 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@budibase/bbui": "^1.0.176-alpha.0",
|
"@budibase/bbui": "^1.0.177",
|
||||||
"@budibase/client": "^1.0.176-alpha.0",
|
"@budibase/client": "^1.0.177",
|
||||||
"@budibase/frontend-core": "^1.0.176-alpha.0",
|
"@budibase/frontend-core": "^1.0.177",
|
||||||
"@budibase/string-templates": "^1.0.176-alpha.0",
|
"@budibase/string-templates": "^1.0.177",
|
||||||
"@sentry/browser": "5.19.1",
|
"@sentry/browser": "5.19.1",
|
||||||
"@spectrum-css/page": "^3.0.1",
|
"@spectrum-css/page": "^3.0.1",
|
||||||
"@spectrum-css/vars": "^3.0.1",
|
"@spectrum-css/vars": "^3.0.1",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@budibase/cli",
|
"name": "@budibase/cli",
|
||||||
"version": "1.0.176-alpha.0",
|
"version": "1.0.177",
|
||||||
"description": "Budibase CLI, for developers, self hosting and migrations.",
|
"description": "Budibase CLI, for developers, self hosting and migrations.",
|
||||||
"main": "src/index.js",
|
"main": "src/index.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@budibase/client",
|
"name": "@budibase/client",
|
||||||
"version": "1.0.176-alpha.0",
|
"version": "1.0.177",
|
||||||
"license": "MPL-2.0",
|
"license": "MPL-2.0",
|
||||||
"module": "dist/budibase-client.js",
|
"module": "dist/budibase-client.js",
|
||||||
"main": "dist/budibase-client.js",
|
"main": "dist/budibase-client.js",
|
||||||
|
@ -19,9 +19,9 @@
|
||||||
"dev:builder": "rollup -cw"
|
"dev:builder": "rollup -cw"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@budibase/bbui": "^1.0.176-alpha.0",
|
"@budibase/bbui": "^1.0.177",
|
||||||
"@budibase/frontend-core": "^1.0.176-alpha.0",
|
"@budibase/frontend-core": "^1.0.177",
|
||||||
"@budibase/string-templates": "^1.0.176-alpha.0",
|
"@budibase/string-templates": "^1.0.177",
|
||||||
"@spectrum-css/button": "^3.0.3",
|
"@spectrum-css/button": "^3.0.3",
|
||||||
"@spectrum-css/card": "^3.0.3",
|
"@spectrum-css/card": "^3.0.3",
|
||||||
"@spectrum-css/divider": "^1.0.3",
|
"@spectrum-css/divider": "^1.0.3",
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "@budibase/frontend-core",
|
"name": "@budibase/frontend-core",
|
||||||
"version": "1.0.176-alpha.0",
|
"version": "1.0.177",
|
||||||
"description": "Budibase frontend core libraries used in builder and client",
|
"description": "Budibase frontend core libraries used in builder and client",
|
||||||
"author": "Budibase",
|
"author": "Budibase",
|
||||||
"license": "MPL-2.0",
|
"license": "MPL-2.0",
|
||||||
"svelte": "src/index.js",
|
"svelte": "src/index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@budibase/bbui": "^1.0.176-alpha.0",
|
"@budibase/bbui": "^1.0.177",
|
||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
"svelte": "^3.46.2"
|
"svelte": "^3.46.2"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "@budibase/server",
|
"name": "@budibase/server",
|
||||||
"email": "hi@budibase.com",
|
"email": "hi@budibase.com",
|
||||||
"version": "1.0.176-alpha.0",
|
"version": "1.0.177",
|
||||||
"description": "Budibase Web Server",
|
"description": "Budibase Web Server",
|
||||||
"main": "src/index.ts",
|
"main": "src/index.ts",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
@ -70,10 +70,10 @@
|
||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@apidevtools/swagger-parser": "^10.0.3",
|
"@apidevtools/swagger-parser": "^10.0.3",
|
||||||
"@budibase/backend-core": "^1.0.176-alpha.0",
|
"@budibase/backend-core": "^1.0.177",
|
||||||
"@budibase/client": "^1.0.176-alpha.0",
|
"@budibase/client": "^1.0.177",
|
||||||
"@budibase/pro": "1.0.176-alpha.0",
|
"@budibase/pro": "^1.0.175",
|
||||||
"@budibase/string-templates": "^1.0.176-alpha.0",
|
"@budibase/string-templates": "^1.0.177",
|
||||||
"@bull-board/api": "^3.7.0",
|
"@bull-board/api": "^3.7.0",
|
||||||
"@bull-board/koa": "^3.7.0",
|
"@bull-board/koa": "^3.7.0",
|
||||||
"@elastic/elasticsearch": "7.10.0",
|
"@elastic/elasticsearch": "7.10.0",
|
||||||
|
|
|
@ -1092,12 +1092,12 @@
|
||||||
svelte-flatpickr "^3.2.3"
|
svelte-flatpickr "^3.2.3"
|
||||||
svelte-portal "^1.0.0"
|
svelte-portal "^1.0.0"
|
||||||
|
|
||||||
"@budibase/pro@1.0.176-alpha.0":
|
"@budibase/pro@^1.0.175":
|
||||||
version "1.0.176-alpha.0"
|
version "1.0.175"
|
||||||
resolved "https://registry.yarnpkg.com/@budibase/pro/-/pro-1.0.176-alpha.0.tgz#416522800ef47b6ccc9e8bfc0e8d722db54f5c68"
|
resolved "https://registry.yarnpkg.com/@budibase/pro/-/pro-1.0.175.tgz#1d8ddc698ad17e2f5d73b1ab741c6641da4bda47"
|
||||||
integrity sha512-oe/HQsDpGZ3HO7t0TPqfKfh/FjZw5f9V22LxS45WXoOgL8b66U2WGwCaN7iF/zzxgPXlZ3h8TSHo9ai9d2UOgA==
|
integrity sha512-iGqOtsXeO5bHcg4IJjg8NwOK5bNjI3TnJCr7PtcTjlLyZyCyj+onL2GTk3A6X+d1ZKSQKy9bl3Q+hIsdbZ9GIg==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@budibase/backend-core" "1.0.176-alpha.0"
|
"@budibase/backend-core" "1.0.175"
|
||||||
node-fetch "^2.6.1"
|
node-fetch "^2.6.1"
|
||||||
|
|
||||||
"@budibase/standard-components@^0.9.139":
|
"@budibase/standard-components@^0.9.139":
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@budibase/string-templates",
|
"name": "@budibase/string-templates",
|
||||||
"version": "1.0.176-alpha.0",
|
"version": "1.0.177",
|
||||||
"description": "Handlebars wrapper for Budibase templating.",
|
"description": "Handlebars wrapper for Budibase templating.",
|
||||||
"main": "src/index.cjs",
|
"main": "src/index.cjs",
|
||||||
"module": "dist/bundle.mjs",
|
"module": "dist/bundle.mjs",
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "@budibase/worker",
|
"name": "@budibase/worker",
|
||||||
"email": "hi@budibase.com",
|
"email": "hi@budibase.com",
|
||||||
"version": "1.0.176-alpha.0",
|
"version": "1.0.177",
|
||||||
"description": "Budibase background service",
|
"description": "Budibase background service",
|
||||||
"main": "src/index.ts",
|
"main": "src/index.ts",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
@ -32,9 +32,9 @@
|
||||||
"author": "Budibase",
|
"author": "Budibase",
|
||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@budibase/backend-core": "^1.0.176-alpha.0",
|
"@budibase/backend-core": "^1.0.177",
|
||||||
"@budibase/pro": "1.0.176-alpha.0",
|
"@budibase/pro": "^1.0.175",
|
||||||
"@budibase/string-templates": "^1.0.176-alpha.0",
|
"@budibase/string-templates": "^1.0.177",
|
||||||
"@koa/router": "^8.0.0",
|
"@koa/router": "^8.0.0",
|
||||||
"@sentry/node": "6.17.7",
|
"@sentry/node": "6.17.7",
|
||||||
"@techpass/passport-openidconnect": "^0.3.0",
|
"@techpass/passport-openidconnect": "^0.3.0",
|
||||||
|
|
|
@ -322,12 +322,12 @@
|
||||||
uuid "^8.3.2"
|
uuid "^8.3.2"
|
||||||
zlib "^1.0.5"
|
zlib "^1.0.5"
|
||||||
|
|
||||||
"@budibase/pro@1.0.176-alpha.0":
|
"@budibase/pro@^1.0.175":
|
||||||
version "1.0.176-alpha.0"
|
version "1.0.175"
|
||||||
resolved "https://registry.yarnpkg.com/@budibase/pro/-/pro-1.0.176-alpha.0.tgz#416522800ef47b6ccc9e8bfc0e8d722db54f5c68"
|
resolved "https://registry.yarnpkg.com/@budibase/pro/-/pro-1.0.175.tgz#1d8ddc698ad17e2f5d73b1ab741c6641da4bda47"
|
||||||
integrity sha512-oe/HQsDpGZ3HO7t0TPqfKfh/FjZw5f9V22LxS45WXoOgL8b66U2WGwCaN7iF/zzxgPXlZ3h8TSHo9ai9d2UOgA==
|
integrity sha512-iGqOtsXeO5bHcg4IJjg8NwOK5bNjI3TnJCr7PtcTjlLyZyCyj+onL2GTk3A6X+d1ZKSQKy9bl3Q+hIsdbZ9GIg==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@budibase/backend-core" "1.0.176-alpha.0"
|
"@budibase/backend-core" "1.0.175"
|
||||||
node-fetch "^2.6.1"
|
node-fetch "^2.6.1"
|
||||||
|
|
||||||
"@cspotcode/source-map-consumer@0.8.0":
|
"@cspotcode/source-map-consumer@0.8.0":
|
||||||
|
|
Loading…
Reference in New Issue