mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-29 17:50:09 +02:00
add blur to the title input field
This commit is contained in:
@@ -21,7 +21,7 @@
|
|||||||
"label": "Vue.js"
|
"label": "Vue.js"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"csLibs": [
|
"cssLibs": [
|
||||||
{
|
{
|
||||||
"urlPref": "https://cdnjs.cloudflare.com/ajax/libs/bulma/",
|
"urlPref": "https://cdnjs.cloudflare.com/ajax/libs/bulma/",
|
||||||
"label": "Bulma"
|
"label": "Bulma"
|
||||||
|
@@ -118,14 +118,12 @@ describe('Testing interfaces', () => {
|
|||||||
|
|
||||||
// type a message in the HTML section
|
// type a message in the HTML section
|
||||||
cy.get('#htmlCodeEl').type('{ctrl+a}{backspace}' + message);
|
cy.get('#htmlCodeEl').type('{ctrl+a}{backspace}' + message);
|
||||||
|
|
||||||
// type the title
|
// type the title
|
||||||
cy.get('#titleInput').clear().type(message);
|
cy.get('#titleInput').clear().type(message).blur();
|
||||||
|
|
||||||
// save it
|
// save it
|
||||||
cy.get('#saveBtn').click();
|
cy.get('#saveBtn').click();
|
||||||
// cy.get('#saveBtn').click();
|
cy.wait(1000);
|
||||||
cy.wait(1500);
|
|
||||||
cy.then(() => {
|
cy.then(() => {
|
||||||
const ls = JSON.parse(localStorage.getItem('code'));
|
const ls = JSON.parse(localStorage.getItem('code'));
|
||||||
console.log(ls);
|
console.log(ls);
|
||||||
@@ -169,7 +167,7 @@ describe('Testing interfaces', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
cy.fixture('libraries').then(data => {
|
cy.fixture('libraries').then(data => {
|
||||||
data['csLibs'].forEach(lib =>
|
data['cssLibs'].forEach(lib =>
|
||||||
checkLibrary(lib['label'], lib['urlPref'], 'Css')
|
checkLibrary(lib['label'], lib['urlPref'], 'Css')
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user