Skip to content

Commit

Permalink
Merge pull request #3332 from bolt/release/2.0.0-beta.7
Browse files Browse the repository at this point in the history
Updating version numbers
  • Loading branch information
bobdenotter authored Nov 4, 2022
2 parents 830bec4 + 9681b6b commit 06b301b
Show file tree
Hide file tree
Showing 15 changed files with 134 additions and 135 deletions.
220 changes: 110 additions & 110 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bolt",
"version": "5.1.99.6",
"version": "5.1.99.7",
"homepage": "https://boltcms.io",
"author": "Bob den Otter <bob@twokings.nl> (https://boltcms.io)",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ final class Version
* Stable — 3.0.0
* Development — 3.1.0 alpha 1
*/
public const VERSION = '5.2.0 beta 6';
public const VERSION = '5.2.0 beta 7';
public const CODENAME = '';

/**
Expand Down
3 changes: 0 additions & 3 deletions symfony.lock
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,6 @@
"fakerphp/faker": {
"version": "v1.10.1"
},
"fig/link-util": {
"version": "1.1.0"
},
"friendsofapi/localise.biz": {
"version": "1.0.1"
},
Expand Down
4 changes: 2 additions & 2 deletions tests/cypress/cypress-ci.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
"defaultCommandTimeout": 8000,
"viewportWidth": 1920,
"viewportHeight": 1080,
"retries": 2,
"scrollBehavior": false
"retries": 0,
"scrollBehavior": "nearest"
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ describe('Create content as editor and delete it as chief editor', () => {
cy.get('#field-heading').type('Test heading');

cy.get('button[name="save"]').eq(1).scrollIntoView();
cy.get('button[name="save"]').eq(1).click();
cy.get('button[name="save"]').eq(1).should('be.visible').click({force:true});

cy.visit('/bolt/logout');

Expand All @@ -64,7 +64,7 @@ describe('Create content as editor and delete it as chief editor', () => {
cy.get('button[data-bs-dismiss="modal"]').click({ multiple: true });

cy.visit('/bolt/content/pages?page=3');
cy.get('.listing--container').its('length').should('eq', 5);
cy.get('.listing--container').its('length').should('eq', 3);
})
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ describe('As an Admin I want to fill in a Set and an Collection', () => {
cy.visit('/bolt/edit/43');
cy.get('.editor__tabbar').should('contain', 'Sets');

cy.get('h1.admin__header--title').scrollIntoView();

cy.get('a[id="sets-tab"]').click();
cy.url().should('contain', '/bolt/edit/43');

Expand All @@ -19,8 +21,8 @@ describe('As an Admin I want to fill in a Set and an Collection', () => {
cy.get('textarea[name="sets[set][textarea]"]').clear();
cy.get('textarea[name="sets[set][textarea]"]').type('Bar');

cy.get('button[class="btn btn-success mb-0 "]').eq(1).scrollIntoView();
cy.get('button[class="btn btn-success mb-0 "]').eq(1).click();
cy.get('button[class="btn btn-success mb-0"]').eq(1).scrollIntoView();
cy.get('button[class="btn btn-success mb-0"]').eq(1).click();

cy.url().should('contain', '/bolt/edit/43');
cy.get('input[name="sets[set][title]"]').should('have.value', 'Foo');
Expand Down Expand Up @@ -57,8 +59,8 @@ describe('As an Admin I want to fill in a Set and an Collection', () => {
cy.get('.collection-item:nth-child(4) .action-move-down-collection-item').click();
cy.get('div[data-label="Set inside Collection"]').should('exist');

cy.get('button[class="btn btn-success mb-0 "]').eq(1).scrollIntoView();
cy.get('button[class="btn btn-success mb-0 "]').eq(1).click({ force: true });
cy.get('button[class="btn btn-success mb-0"]').eq(1).scrollIntoView();
cy.get('button[class="btn btn-success mb-0"]').eq(1).click({ force: true });
cy.url().should('contain', '/bolt/edit/43');

cy.get('#collections textarea').eq(1).clear();
Expand All @@ -79,8 +81,8 @@ describe('As an Admin I want to fill in a Set and an Collection', () => {
cy.wait(1000);

cy.get('.collection-item').its('length').should('eq', 2);
cy.get('button[class="btn btn-success mb-0 "]').eq(1).scrollIntoView();
cy.get('button[class="btn btn-success mb-0 "]').eq(1).click({force: true});
cy.get('button[class="btn btn-success mb-0"]').eq(1).scrollIntoView();
cy.get('button[class="btn btn-success mb-0"]').eq(1).click({force: true});

cy.get('.collection-item').its('length').should('eq', 2);
cy.get('.collection-item-title').should('not.contain', 'Hey, Bolt');
Expand Down
8 changes: 4 additions & 4 deletions tests/cypress/integration/edit_record_1_content.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ describe('As an Admin I want to see separators, placeholders and default values'
cy.get('input[name="collections[collection_field][photo][3][filename]"]').should('have.value', 'joey.jpg');
cy.get('input[name="collections[collection_field][photo][3][alt]"]').should('have.value', 'Photo of a foal');

cy.get('button[class="btn btn-success mb-0 "]').eq(1).scrollIntoView();
cy.get('button[class="btn btn-success mb-0 "]').eq(1).click();
cy.get('button[class="btn btn-success mb-0"]').eq(1).scrollIntoView();
cy.get('button[class="btn btn-success mb-0"]').eq(1).click();

cy.get('input[name="fields[title]"]').should('have.value', 'Title of a test contenttype');
cy.get('input[name="fields[image][filename]"]').should('have.value', 'foal.jpg');
Expand Down Expand Up @@ -66,8 +66,8 @@ describe('As an Admin, I want to duplicate a page', () => {
cy.get('input[name="fields[heading]"]').should('have.value', 'This is a page');
cy.get('input[name="fields[slug]"]').should('have.value', 'this-is-a-page');

cy.get('button[class="btn btn-success mb-0 "]').eq(1).scrollIntoView();
cy.get('button[class="btn btn-success mb-0 "]').eq(1).click();
cy.get('button[class="btn btn-success mb-0"]').eq(1).scrollIntoView();
cy.get('button[class="btn btn-success mb-0"]').eq(1).click();

cy.get('input[name="fields[heading]"]').should('have.value', 'This is a page');
cy.get('input[name="fields[slug]"]').should('have.value', 'this-is-a-page-1');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ describe('As an Admin I want to fill in an filelist', { retries: 0 }, () => {
//
// cy.get('.form-fieldsgroup:nth-child(1) > .editor__file .btn-hidden-danger').click({ force: true}) ;
// cy.get('button[class="btn btn-tertiary"]').eq(0).should('be.enabled');
// cy.get('button[class="btn btn-success mb-0 "]').eq(1).click({ force: true}) ;
// cy.get('button[class="btn btn-success mb-0"]').eq(1).click({ force: true}) ;

//TODO: move checking for elements before saving changes(for some reason it doesn't work)
cy.get('.editor-filelist').find('div[class="form-fieldsgroup"]').its('length').should('eq', 4);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ describe('As an Admin I want to fill in an imagelist', { retries: 0 }, () => {
// cy.get('div[class="btn-group me-2"]').eq(13).find('button[disabled="disabled"]');
//
// cy.get('.form-fieldsgroup:nth-child(1) > .editor__image .btn:nth-child(3)').click({ force: true}) ;
// cy.get('button[class="btn btn-success mb-0 "]').eq(1).click({ force: true}) ;
// cy.get('button[class="btn btn-success mb-0"]').eq(1).click({ force: true}) ;
// //TODO: move checking for elements before saving changes(for some reason it doesn't work)

cy.get('.editor__imagelist').find('div[class="form-fieldsgroup"]').its('length').should('eq', 4);
Expand Down
8 changes: 4 additions & 4 deletions tests/cypress/integration/edit_record_2.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ describe('As an Admin I want to view saved changes of a record or preview these'
cy.visit('/bolt/edit/2');
cy.get('input[id="field-heading"]').clear();
cy.get('input[id="field-heading"]').type('This is the title in the wrong locale');
cy.get('button[class="btn btn-success mb-0 "]').eq(1).scrollIntoView();
cy.get('button[class="btn btn-success mb-0 "]').eq(1).click();
cy.get('button[class="btn btn-success mb-0"]').eq(1).scrollIntoView();
cy.get('button[class="btn btn-success mb-0"]').eq(1).click();

cy.visit('/bolt/edit/2?edit_locale=nl');
cy.get('input[id="field-heading"]').clear();
cy.get('input[id="field-heading"]').type('This is the title in the right locale');
cy.get('button[class="btn btn-success mb-0 "]').eq(1).scrollIntoView();
cy.get('button[class="btn btn-success mb-0 "]').eq(1).click();
cy.get('button[class="btn btn-success mb-0"]').eq(1).scrollIntoView();
cy.get('button[class="btn btn-success mb-0"]').eq(1).click();

cy.url().should('contain', '/bolt/edit/2?edit_locale=nl');
cy.get('a[class="btn btn-tertiary btn-sm"]').scrollIntoView();
Expand Down

0 comments on commit 06b301b

Please sign in to comment.