V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
YadongZhang
V2EX  ›  程序员

有了解 Keycloak 和 Cypress 的朋友吗

  •  
  •   YadongZhang · 2022-04-25 10:51:59 +08:00 · 1207 次点击
    这是一个创建于 732 天前的主题,其中的信息可能已经有所发展或是发生改变。

    感觉这个 PR 没法按期完成了(期望月底)

    https://github.com/jhipster/generator-jhipster-ionic/pull/644

    老是遇到 cookie not found 错误:

    type=LOGIN_ERROR, realmId=jhipster, clientId=null, userId=null, ipAddress=172.18.0.1, error=cookie_not_found

    有朋友了解吗,或者愿意接手提交代码的,可以在那个 PR 上回复一下

    如何复现:

    # clone 那个 PR 进入 generator-jhipster-ionic 文件夹
    npm i && npm link
    cd .. # workspace
    mkdir backend && cd backend
    jhipster-ionic jdl ../generator-jhipster-ionic/test-integration/jdl/21-points.jdl --force --no-insight --skip-checks --skip-git --skip-commit-hook --skip-install --blueprints ionic --skip-jhipster-dependencies
    npm run java:docker:prod
    npm run docker:app:up
    npm run ci:server:await
     * --------------------------------------------------
     * linux 无法找到 Chrome 的解决方案
     * sudo apt update
     * sudo apt-get -f install
     * wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
     * sudo dpkg -i google-chrome-stable_current_amd64.deb
     * 
     * --------------------------------------------------
    echo '127.0.0.1 keycloak' | sudo tee -a /etc/hosts
    cd ../ionic4j && npm i && npm run e2e
    
    2 条回复    2022-04-25 12:27:35 +08:00
    luojiyin87
        1
    luojiyin87  
       2022-04-25 11:49:14 +08:00
    提供一下代码的版本信息, 是不是我直接 clone , 用主分支就可以进行测试?
    YadongZhang
        2
    YadongZhang  
    OP
       2022-04-25 12:27:35 +08:00
    @luojiyin87 #1

    git clone https://github.com/zhyd1997/generator-jhipster-ionic.git

    应该是我的那个 PR 分支:test/migrated_e2e_from_protractor_to_cypress
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2801 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 12:27 · PVG 20:27 · LAX 05:27 · JFK 08:27
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.