1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-06-06 01:24:52 +02:00

add blur to the title input field

This commit is contained in:
Arnab Sen 2022-04-19 14:55:12 +05:30
parent 16e41f91cd
commit 748eb630d8
No known key found for this signature in database
GPG Key ID: 255D0564BAEA8F9D
2 changed files with 4 additions and 6 deletions

View File

@ -21,7 +21,7 @@
"label": "Vue.js"
}
],
"csLibs": [
"cssLibs": [
{
"urlPref": "https://cdnjs.cloudflare.com/ajax/libs/bulma/",
"label": "Bulma"

View File

@ -118,14 +118,12 @@ describe('Testing interfaces', () => {
// type a message in the HTML section
cy.get('#htmlCodeEl').type('{ctrl+a}{backspace}' + message);
// type the title
cy.get('#titleInput').clear().type(message);
cy.get('#titleInput').clear().type(message).blur();
// save it
cy.get('#saveBtn').click();
// cy.get('#saveBtn').click();
cy.wait(1500);
cy.wait(1000);
cy.then(() => {
const ls = JSON.parse(localStorage.getItem('code'));
console.log(ls);
@ -169,7 +167,7 @@ describe('Testing interfaces', () => {
});
cy.fixture('libraries').then(data => {
data['csLibs'].forEach(lib =>
data['cssLibs'].forEach(lib =>
checkLibrary(lib['label'], lib['urlPref'], 'Css')
);
});