mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-13 11:21:46 +00:00
fix tests
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
import path from 'node:path';
|
||||
import process from 'node:process';
|
||||
import { _electron as electron } from 'playwright';
|
||||
import { test, expect } from '@playwright/test';
|
||||
|
||||
import { test, expect, _electron as electron } from '@playwright/test';
|
||||
|
||||
process.env.NODE_ENV = 'test';
|
||||
|
||||
@ -32,7 +32,11 @@ test('Pear Desktop App - With default settings, app is launched and visible', as
|
||||
// expect(title.replaceAll(/\s/g, ' ')).toEqual('Pear Desktop');
|
||||
|
||||
const url = window.url();
|
||||
expect(url.startsWith('https://music.\u0079\u006f\u0075\u0074\u0075\u0062\u0065.com')).toBe(true);
|
||||
expect(
|
||||
url.startsWith(
|
||||
'https://music.\u0079\u006f\u0075\u0074\u0075\u0062\u0065.com',
|
||||
),
|
||||
).toBe(true);
|
||||
|
||||
await app.close();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user