prev Kozaneba Development Diary 2021-08-21
Note to re-launch the development environment since the OS was rebooted.
Changed the local directory name from movidea to kozaneba since it was a good opportunity.
$ code kozaneba
devserver
$ npm start$ npx cypress open$ firebase emulators:start$ firebase emulators:start --import firebase_emulator_dataRename each terminal.
I'll run the test for now.
$ firebase emulators:export firebase_emulator_data$ firebase emulators:start --import firebase_emulator_data:
Check which process is occupying the port sudo lsof -i tcp:<port>
Kill the process kill -9 <process id>
- Only the Firestore emulator was alive.
- No -9 on kill.
ts
/// <reference types="cypress" />
import { ready_nested_group } from "../../support";
describe("ready nested groups", () => {
beforeEach(() => {
cy.visit("/#blank");
cy.viewport(500, 500);
ready_nested_group();
});
it("do nothing", () => {});
});
ts
it("do nothing", () => {
cy.testid("G1").then((x: any) => console.log(x[0].style.cssText));
cy.testid("G1").trigger("mousedown", 0, 0, { force: true });
cy.testid("G1").then((x: any) => console.log(x[0].style.cssText));
cy.testid("G1").trigger("mouseup", 0, 0, { force: true });
cy.testid("G1").then((x: any) => console.log(x[0].style.cssText));
});
ts
it("should not move when click", () => {
cy.testid("G1").then((x: any) => {
const {top, left} = x[0].style;
cy.testid("G1").trigger("mousedown", 0, 0, { force: true });
cy.testid("G1").trigger("mouseup", 0, 0, { force: true }).then((x: any) => {
expect(x[0].style.top).eql(top);
expect(x[0].style.left).eql(left);
});
});
});
The problem is that the coordinates are out of order when the context menu is displayed,
When I try to title a group of groups, I don't get the text of grandchildren kozane in the default value.
I'll write later in the release notes.
Wanted features
We'll have to write the Firestore rules properly to make lead-only a reality.
next Kozaneba Development Diary 2021-08-26
This page is auto-translated from /nishio/Kozaneba開発日記2021-08-25 using DeepL. If you looks something interesting but the auto-translated English is not good enough to understand it, feel free to let me know at @nishio_en. I'm very happy to spread my thought to non-Japanese readers.