forked from misskey-dev/misskey
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(frontend/nirax): リダイレクトを設定できるように (misskey-dev#13030)
* feat(frontend/nirax): リダイレクトを設定できるように * revert demonstrative changes * fix * revert unrelated changes * リダイレクトの際にパスが変わらない問題を修正 * リダイレクトが必要なrouteを設定 * fix lint * router向けe2eテストの追加 * fix --------- Co-authored-by: syuilo <[email protected]> Co-authored-by: samunohito <[email protected]>
- Loading branch information
1 parent
73f0ef9
commit 8b1dabc
Showing
4 changed files
with
131 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
describe('Router transition', () => { | ||
describe('Redirect', () => { | ||
// サーバの初期化。ルートのテストに関しては各describeごとに1度だけ実行で十分だと思う(使いまわした方が早い) | ||
before(() => { | ||
cy.resetState(); | ||
|
||
// インスタンス初期セットアップ | ||
cy.registerUser('admin', 'pass', true); | ||
|
||
// ユーザー作成 | ||
cy.registerUser('alice', 'alice1234'); | ||
|
||
cy.login('alice', 'alice1234'); | ||
|
||
// アカウント初期設定ウィザード | ||
// 表示に時間がかかるのでデフォルト秒数だとタイムアウトする | ||
cy.get('[data-cy-user-setup] [data-cy-modal-window-close]', { timeout: 12000 }).click(); | ||
cy.wait(500); | ||
cy.get('[data-cy-modal-dialog-ok]').click(); | ||
}); | ||
|
||
it('redirect to user profile', () => { | ||
// テストのためだけに用意されたリダイレクト用ルートに飛ぶ | ||
cy.visit('/redirect-test'); | ||
|
||
// プロフィールページのURLであることを確認する | ||
cy.url().should('include', '/@alice') | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters