Skip to content

Commit 89b4121

Browse files
committed
test: update e2e tests
1 parent 8ddf8c5 commit 89b4121

9 files changed

Lines changed: 12 additions & 12 deletions

File tree

e2e/helpers/getters/lineage-view/history/get-redo-change-button.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { getActiveView } from '../card/get-active-view';
22
import invariant from 'tiny-invariant';
33

4-
export const SEL_CONTROLS_BAR = `.controls-container`;
4+
export const SEL_CONTROLS_BAR = `.navigation-history-container`;
55
export const SEL_REDO_BUTTON = `${SEL_CONTROLS_BAR} button[aria-label="Redo"]`;
66
export const getRedoChangeButton = async () => {
77
const view = await getActiveView();

e2e/helpers/getters/lineage-view/history/get-snapshots-button.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import invariant from 'tiny-invariant';
22
import { getActiveView } from '../card/get-active-view';
3+
import { SEL_CONTROLS_BAR } from './get-redo-change-button';
34

4-
export const SEL_CONTROLS_GROUP = '.controls-container';
55
export const getSnapshotsButton = async () => {
66
const view = await getActiveView();
77
const button = await view.$(
8-
`${SEL_CONTROLS_GROUP} button[aria-label="History"]`,
8+
`${SEL_CONTROLS_BAR} button[aria-label="History"]`,
99
);
1010
invariant(button);
1111
return button;

e2e/helpers/interactions/lineage-view/card/create-card-using-button.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import {
66
import { delay, SHORT } from '../../../general/delay';
77
import { __obsidian__ } from '../../../getters/obsidian/load-obsidian';
88

9-
export const SEL_CREATE_CARD_BELOW = `${LINEAGE_CARD_ACTIVE} button[aria-label="Add card below"]`;
10-
export const SEL_CREATE_CARD_ABOVE = `${LINEAGE_CARD_ACTIVE} button[aria-label="Add card above"]`;
11-
export const SEL_CREATE_CARD_CHILD = `${LINEAGE_CARD_ACTIVE} button[aria-label="Add child card"]`;
9+
export const SEL_CREATE_CARD_BELOW = `${LINEAGE_CARD_ACTIVE} button[aria-label="Add section after"]`;
10+
export const SEL_CREATE_CARD_ABOVE = `${LINEAGE_CARD_ACTIVE} button[aria-label="Add section before"]`;
11+
export const SEL_CREATE_CARD_CHILD = `${LINEAGE_CARD_ACTIVE} button[aria-label="Add sub-section"]`;
1212

1313
const buttonSelectors = {
1414
above: SEL_CREATE_CARD_ABOVE,

e2e/helpers/interactions/lineage-view/hotkeys/redo-change-using-hotkey.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ import { LINEAGE_CARD_ACTIVE } from '../../../getters/lineage-view/card/get-acti
44

55
export const redoChangeUsingHotkey = async () => {
66
await __obsidian__.waitForSelector(LINEAGE_CARD_ACTIVE);
7-
await __obsidian__.keyboard.press('Control+Shift+y');
7+
await __obsidian__.keyboard.press('Control+y');
88
await delay(SHORT);
99
};

e2e/helpers/interactions/lineage-view/hotkeys/undo-change-using-hotkey.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ import { LINEAGE_CARD_ACTIVE } from '../../../getters/lineage-view/card/get-acti
44

55
export const undoChangeUsingHotkey = async () => {
66
await __obsidian__.waitForSelector(LINEAGE_CARD_ACTIVE);
7-
await __obsidian__.keyboard.press('Control+Shift+z');
7+
await __obsidian__.keyboard.press('Control+z');
88
await delay(SHORT);
99
};

e2e/helpers/interactions/lineage-view/search/toggle-show-all-search-results.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import invariant from 'tiny-invariant';
22
import { getActiveView } from '../../../getters/lineage-view/card/get-active-view';
33

4-
const SELECTOR = `div[aria-label="${'Show all cards'}"]`;
4+
const SELECTOR = `div[aria-label="${'Show all sections'}"]`;
55

66
export const toggleShowAllSearchResults = async () => {
77
const view = await getActiveView();

e2e/tests/card-hotkeys.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ test.describe('card hotkeys', () => {
192192
expect(await getTextsOfColumns()).toEqual([[n1]]);
193193

194194
await deleteCardUsingHotkey();
195-
expect(await getTextsOfColumns()).toEqual([[n1]]);
195+
expect(await getTextsOfColumns()).toEqual([['']]);
196196
});
197197

198198
test('navigation hotkeys', async () => {

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "lineage",
33
"name": "Lineage",
4-
"version": "0.8.3",
4+
"version": "0.8.4",
55
"minAppVersion": "0.15.0",
66
"description": "Edit Markdown in a keyboard-centric Miller columns interface. Inspired by Gingko Writer.",
77
"author": "ycnmhd",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lineage",
3-
"version": "0.8.3",
3+
"version": "0.8.4",
44
"description": "",
55
"scripts": {
66
"dev": "node esbuild.config.mjs",

0 commit comments

Comments
 (0)