Skip to content

Commit

Permalink
Test that the test fails
Browse files Browse the repository at this point in the history
  • Loading branch information
krassowski committed Dec 2, 2024
1 parent 3734d46 commit a382410
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions galata/test/jupyterlab/notebook-search.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,15 @@ test.describe('Notebook Search', () => {
// Should reset the search to a clean state
await page.locator('text=-/-').waitFor();
});
test('Consecutive searches in the search box', async ({ page }) => {
await page.keyboard.press('Control+f');

await page.fill('[placeholder="Find"]', 'jupyter');
await page.keyboard.press('Control+f');
await page.locator('[placeholder="Find"]').pressSequentially('jupyter');

await expect(page.locator('[placeholder="Find"]')).toHaveValue('jupyter');

Check failure on line 208 in galata/test/jupyterlab/notebook-search.test.ts

View workflow job for this annotation

GitHub Actions / Visual Regression Tests

[jupyterlab] › test/jupyterlab/notebook-search.test.ts:201:7 › Notebook Search › Consecutive searches in the search box

1) [jupyterlab] › test/jupyterlab/notebook-search.test.ts:201:7 › Notebook Search › Consecutive searches in the search box Error: Timed out 5000ms waiting for expect(locator).toHaveValue(expected) Locator: locator('[placeholder="Find"]') Expected string: "jupyter" Received string: "upyter" Call log: - expect.toHaveValue with timeout 5000ms - waiting for locator('[placeholder="Find"]') - locator resolved to <textarea rows="1" tabindex="0" title="Find" placeholder="Find" class="jp-DocumentSearch-input">jupyter</textarea> - unexpected value "upyter" - locator resolved to <textarea rows="1" tabindex="0" title="Find" placeholder="Find" class="jp-DocumentSearch-input">jupyter</textarea> - unexpected value "upyter" - locator resolved to <textarea rows="1" tabindex="0" title="Find" placeholder="Find" class="jp-DocumentSearch-input">jupyter</textarea> - unexpected value "upyter" - locator resolved to <textarea rows="1" tabindex="0" title="Find" placeholder="Find" class="jp-DocumentSearch-input">jupyter</textarea> - unexpected value "upyter" - locator resolved to <textarea rows="1" tabindex="0" title="Find" placeholder="Find" class="jp-DocumentSearch-input">jupyter</textarea> - unexpected value "upyter" - locator resolved to <textarea rows="1" tabindex="0" title="Find" placeholder="Find" class="jp-DocumentSearch-input">jupyter</textarea> - unexpected value "upyter" - locator resolved to <textarea rows="1" tabindex="0" title="Find" placeholder="Find" class="jp-DocumentSearch-input">jupyter</textarea> - unexpected value "upyter" - locator resolved to <textarea rows="1" tabindex="0" title="Find" placeholder="Find" class="jp-DocumentSearch-input">jupyter</textarea> - unexpected value "upyter" - locator resolved to <textarea rows="1" tabindex="0" title="Find" placeholder="Find" class="jp-DocumentSearch-input">jupyter</textarea> - unexpected value "upyter" 206 | await page.locator('[placeholder="Find"]').pressSequentially('jupyter'); 207 | > 208 | await expect(page.locator('[placeholder="Find"]')).toHaveValue('jupyter'); | ^ 209 | }); 210 | test('Close with Escape', async ({ page }) => { 211 | // Open search box at /home/runner/work/jupyterlab/jupyterlab/galata/test/jupyterlab/notebook-search.test.ts:208:56

Check failure on line 208 in galata/test/jupyterlab/notebook-search.test.ts

View workflow job for this annotation

GitHub Actions / Visual Regression Tests

[jupyterlab] › test/jupyterlab/notebook-search.test.ts:201:7 › Notebook Search › Consecutive searches in the search box

1) [jupyterlab] › test/jupyterlab/notebook-search.test.ts:201:7 › Notebook Search › Consecutive searches in the search box Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveValue(expected) Locator: locator('[placeholder="Find"]') Expected string: "jupyter" Received string: "upyter" Call log: - expect.toHaveValue with timeout 5000ms - waiting for locator('[placeholder="Find"]') - locator resolved to <textarea rows="1" tabindex="0" title="Find" placeholder="Find" class="jp-DocumentSearch-input">jupyter</textarea> - unexpected value "upyter" - locator resolved to <textarea rows="1" tabindex="0" title="Find" placeholder="Find" class="jp-DocumentSearch-input">jupyter</textarea> - unexpected value "upyter" - locator resolved to <textarea rows="1" tabindex="0" title="Find" placeholder="Find" class="jp-DocumentSearch-input">jupyter</textarea> - unexpected value "upyter" - locator resolved to <textarea rows="1" tabindex="0" title="Find" placeholder="Find" class="jp-DocumentSearch-input">jupyter</textarea> - unexpected value "upyter" - locator resolved to <textarea rows="1" tabindex="0" title="Find" placeholder="Find" class="jp-DocumentSearch-input">jupyter</textarea> - unexpected value "upyter" - locator resolved to <textarea rows="1" tabindex="0" title="Find" placeholder="Find" class="jp-DocumentSearch-input">jupyter</textarea> - unexpected value "upyter" - locator resolved to <textarea rows="1" tabindex="0" title="Find" placeholder="Find" class="jp-DocumentSearch-input">jupyter</textarea> - unexpected value "upyter" - locator resolved to <textarea rows="1" tabindex="0" title="Find" placeholder="Find" class="jp-DocumentSearch-input">jupyter</textarea> - unexpected value "upyter" - locator resolved to <textarea rows="1" tabindex="0" title="Find" placeholder="Find" class="jp-DocumentSearch-input">jupyter</textarea> - unexpected value "upyter" 206 | await page.locator('[placeholder="Find"]').pressSequentially('jupyter'); 207 | > 208 | await expect(page.locator('[placeholder="Find"]')).toHaveValue('jupyter'); | ^ 209 | }); 210 | test('Close with Escape', async ({ page }) => { 211 | // Open search box at /home/runner/work/jupyterlab/jupyterlab/galata/test/jupyterlab/notebook-search.test.ts:208:56
});
test('Close with Escape', async ({ page }) => {
// Open search box
await page.keyboard.press('Control+f');
Expand Down

0 comments on commit a382410

Please sign in to comment.