forked from mastodon/mastodon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
custom_theme_chane_spec.cy.ts
33 lines (30 loc) · 1.07 KB
/
custom_theme_chane_spec.cy.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// カスタムテーマの変更テスト
describe('custom theme change test', () => {
// ログイン処理
beforeEach(() => {
cy.visit('/auth/sign_in');
cy.get('#user_email').type(Cypress.env('email'));
cy.get('#user_password').type(`${Cypress.env('password')}{enter}`);
});
// デフォルトのテーマに変更
it('change default theme', () => {
cy.visit('/settings/preferences/appearance');
cy.get('#user_settings_attributes_theme').select('default');
cy.get('.btn').click();
cy.visit('/home');
});
// 「琥珀の意味」のカスタムテーマに変更
it('change mean of amber theme', () => {
cy.visit('/settings/preferences/appearance');
cy.get('#user_settings_attributes_theme').select('mean-of-amber');
cy.get('.btn').click();
cy.visit('/home');
});
// 「Twitter」のカスタムテーマに変更
it('change twitetr theme', () => {
cy.visit('/settings/preferences/appearance');
cy.get('#user_settings_attributes_theme').select('twitter');
cy.get('.btn').click();
cy.visit('/home');
});
});