We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 179f51f commit 3069867Copy full SHA for 3069867
ui/src/tests/plugin.test.ts
@@ -5,7 +5,7 @@ import axios from 'axios';
5
import * as auth from './authentication';
6
import * as selector from './selector';
7
import {GotifyTest, newTest, newPluginDir} from './setup';
8
-import {count, innerText, waitForExists} from './utils';
+import {innerText, waitForCount, waitForExists} from './utils';
9
10
const pluginSupported = ['linux', 'darwin'].indexOf(os.platform()) !== -1;
11
@@ -94,7 +94,7 @@ describe('plugin', () => {
94
describe('functionality test', () => {
95
describe('initial status', () => {
96
it('has echo plugin', async () => {
97
- expect(await count(page, $table.rows())).toBe(1);
+ await waitForCount(page, $table.rows(), 1);
98
expect(await innerText(page, $table.cell(1, Col.Name))).toEqual('test plugin');
99
expect(await innerText(page, $table.cell(1, Col.Token))).toBe(hiddenToken);
100
expect(parseInt(await innerText(page, $table.cell(1, Col.ID)), 10)).toBeGreaterThan(
0 commit comments