OSを再起動したので開発環境を立ち上げ直すメモ
せっかくの機会なのでローカルのディレクトリ名をmovideaからkozanebaに変更
$ code kozaneba
devserver
$ npm start$ npx cypress open$ firebase emulators:start$ firebase emulators:start --import firebase_emulator_dataそれぞれターミナルの名前を変えておく
とりあえずテストを走らせる
$ 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>
- Firestoreエミュレータだけ生きてた
- kill に -9 はなくて良い
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);
});
});
});
コンテキストメニューが出ている時に座標が狂う問題、
グループのグループにタイトルをつけようとした時のデフォルト値に孫こざねのテキストが出ない
リリースノートに後で書く
欲しい機能
リードオンリーを実現するためにはFirestoreのruleをちゃんと書かなきゃだな