Skip to content

TagSpaces is an offline, open source, document manager with tagging support

reorganazing default tests

Ilian Sapundshievca30bf079e94
diff --git a/tests/e2e/general.e2e.js b/tests/e2e/general.e2e.js
index 09a0726ed..6a076ec02 100644
--- a/tests/e2e/general.e2e.js
+++ b/tests/e2e/general.e2e.js
@@ -33,6 +33,67 @@ const subFolderContentExtractionPath =
const subFolderThumbnailsPath = defaultLocationPath + '/thumbnails';
const testFolder = 'testFolder';
+describe('TST07 - General', () => {
+ beforeEach(async () => {
+ await clearLocalStorage();
+ await delay(500);
+ });
+
+ it.skip('TST0701 - Open About TagSpaces', async () => {
+ await global.client.waitForVisible('[data-tid=aboutTagSpaces]');
+ await global.client.click('[data-tid=aboutTagSpaces]');
+ await global.client.waitForVisible('[data-tid=closeAboutDialog]');
+ await global.client.click('[data-tid=closeAboutDialog]');
+ });
+
+ it.skip('TST0705 - Open Settings Dialog', async () => {
+ await global.client.waitForVisible('[data-tid=settings]');
+ await global.client.click('[data-tid=settings]');
+ await checkForIdExist('settingsDialog');
+ await global.client.waitForVisible('[data-tid=closeSettingsDialog]');
+ await global.client.click('[data-tid=closeSettingsDialog]');
+ });
+
+ it.skip('TST07** - Change theme color', async () => {
+ await global.client.waitForVisible('[data-tid=settings]');
+ await global.client.click('[data-tid=settings]');
+ await delay(500);
+ // activate dark theme
+ await global.client.waitForVisible('[data-tid=settingsSetCurrentTheme]');
+ await global.client.selectByValue(
+ '[data-tid=settingsSetCurrentTheme]/div/select',
+ 'dark'
+ );
+ await delay(500);
+ // const style = await global.client.getAttribute('//button[contains(., "done")]', 'style');
+ // await delay(500);
+ // expect(style).toContain('rgb(208, 107, 100)');
+ // await global.client.waitForVisible('[data-tid=closeSettingsDialog]');
+ // await global.client.click('[data-tid=closeSettingsDialog]');
+ });
+
+ /* it('TST10** - Desktop Mode', async () => {
+ await createLocation(defaultLocationPath, testLocationName, false);
+ await checkForIdExist('folderContainerLocationChooser');
+ await delay(500);
+ await global.client.waitForVisible('[data-tid=settings]');
+ await global.client.click('[data-tid=settings]');
+ await global.client.waitForVisible('[data-tid=settingsSetDesktopMode]');
+ await global.client.click('[data-tid=settingsSetDesktopMode]');
+ await delay(2000);
+ await global.client.waitForVisible('[data-tid=closeSettingsDialog]');
+ await global.client.click('[data-tid=closeSettingsDialog]');
+ // set desktop mode and check for desktop text / Location Chooser bottom in Toolbar
+ const isDesktopMode = await global.client.element('[data-tid=folderContainerLocationChooser]');
+ await delay(500);
+ expect(isDesktopMode.selector).not.toBe('[data-tid=folderContainerLocationChooser]');
+ }); */
+
+ // it('TST1003 - Checkbox in the settings to open the tag library on startup', async () => {
+ //
+ // });
+});
+
describe('TST51 - Perspective Grid [general]', () => {
beforeEach(async () => {
//await closeWelcome();
diff --git a/tests/e2e/general.helpers.js b/tests/e2e/general.helpers.js
index 17c2062aa..cd54de450 100644
--- a/tests/e2e/general.helpers.js
+++ b/tests/e2e/general.helpers.js
@@ -703,64 +703,3 @@ export async function openSettings(selectedTab) {
await global.client.click('[data-tid=' + selectedTab + ']');
}
}
-
-describe('TST07 - General', () => {
- beforeEach(async () => {
- await clearLocalStorage();
- await delay(500);
- });
-
- it.skip('TST0701 - Open About TagSpaces', async () => {
- await global.client.waitForVisible('[data-tid=aboutTagSpaces]');
- await global.client.click('[data-tid=aboutTagSpaces]');
- await global.client.waitForVisible('[data-tid=closeAboutDialog]');
- await global.client.click('[data-tid=closeAboutDialog]');
- });
-
- it.skip('TST0705 - Open Settings Dialog', async () => {
- await global.client.waitForVisible('[data-tid=settings]');
- await global.client.click('[data-tid=settings]');
- await checkForIdExist('settingsDialog');
- await global.client.waitForVisible('[data-tid=closeSettingsDialog]');
- await global.client.click('[data-tid=closeSettingsDialog]');
- });
-
- it.skip('TST07** - Change theme color', async () => {
- await global.client.waitForVisible('[data-tid=settings]');
- await global.client.click('[data-tid=settings]');
- await delay(500);
- // activate dark theme
- await global.client.waitForVisible('[data-tid=settingsSetCurrentTheme]');
- await global.client.selectByValue(
- '[data-tid=settingsSetCurrentTheme]/div/select',
- 'dark'
- );
- await delay(500);
- // const style = await global.client.getAttribute('//button[contains(., "done")]', 'style');
- // await delay(500);
- // expect(style).toContain('rgb(208, 107, 100)');
- // await global.client.waitForVisible('[data-tid=closeSettingsDialog]');
- // await global.client.click('[data-tid=closeSettingsDialog]');
- });
-
- /* it('TST10** - Desktop Mode', async () => {
- await createLocation(defaultLocationPath, testLocationName, false);
- await checkForIdExist('folderContainerLocationChooser');
- await delay(500);
- await global.client.waitForVisible('[data-tid=settings]');
- await global.client.click('[data-tid=settings]');
- await global.client.waitForVisible('[data-tid=settingsSetDesktopMode]');
- await global.client.click('[data-tid=settingsSetDesktopMode]');
- await delay(2000);
- await global.client.waitForVisible('[data-tid=closeSettingsDialog]');
- await global.client.click('[data-tid=closeSettingsDialog]');
- // set desktop mode and check for desktop text / Location Chooser bottom in Toolbar
- const isDesktopMode = await global.client.element('[data-tid=folderContainerLocationChooser]');
- await delay(500);
- expect(isDesktopMode.selector).not.toBe('[data-tid=folderContainerLocationChooser]');
- }); */
-
- // it('TST1003 - Checkbox in the settings to open the tag library on startup', async () => {
- //
- // });
-});