Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
docs: fix markup in test-timeouts (#10502)
Dmitry Gozmanfc9747b1df60
diff --git a/docs/src/test-timeouts-js.md b/docs/src/test-timeouts-js.mdindex 9f0613b847..36e9bb9656 100644--- a/docs/src/test-timeouts-js.md+++ b/docs/src/test-timeouts-js.md@@ -12,10 +12,10 @@ Playwright Test has multiple configurable timeouts for various tasks.|Timeout |Default |Description ||:----------|:----------------|:--------------------------------||Test timeout|30000 ms|Timeout for each test, includes test, hooks and fixtures:<br/><span style={{textTransform:'uppercase',fontSize:'smaller',fontWeight:'bold',opacity:'0.6'}}>Set default</span><br/><code>{`config = { timeout: 60000 }`}</code><br/><span style={{textTransform: 'uppercase',fontSize: 'smaller', fontWeight: 'bold', opacity: '0.6'}}>Override</span><br/>```test.setTimeout(120000)``` |-|Expect timeout|5000 ms|Timeout for each assertion:<br/><span style={{textTransform:'uppercase',fontSize:'smaller',fontWeight:'bold',opacity:'0.6'}}>Set default</span><br/><code>{`config = { expect: { timeout: 10000 } }`}</code><br/><span >Override</span><br/>```expect(locator).toBeVisible({ timeout: 10000 })```|-|Action timeout| no timeout |Timeout for each action:<br/><span style={{textTransform:'uppercase',fontSize:'smaller',fontWeight:'bold',opacity:'0.6'}}>Set default</span><br/><code>{`config = { use: { actionTimeout: 10000 } }`}</code><br/><span >Override</span><br/>```locator.click({ timeout: 10000 })```|-|Navigation timeout| no timeout |Timeout for each navigation action:<br/><span style={{textTransform:'uppercase',fontSize:'smaller',fontWeight:'bold',opacity:'0.6'}}>Set default</span><br/><code>{`config = { use: { navigationTimeout: 30000 } }`}</code><br/><span >Override</span><br/>```page.goto('/', { timeout: 30000 })```|-|Global timeout|no timeout |Global timeout for the whole test run:<br/><span style={{textTransform:'uppercase',fontSize:'smaller',fontWeight:'bold',opacity:'0.6'}}>Set in config</span><br/><code>{`config = { globalTimeout: 60*60*1000 }`}</code><br/>|+|Expect timeout|5000 ms|Timeout for each assertion:<br/><span style={{textTransform:'uppercase',fontSize:'smaller',fontWeight:'bold',opacity:'0.6'}}>Set default</span><br/>```config = { expect: { timeout: 10000 } }```<br/><span >Override</span><br/>```expect(locator).toBeVisible({ timeout: 10000 })```|+|Action timeout| no timeout |Timeout for each action:<br/><span style={{textTransform:'uppercase',fontSize:'smaller',fontWeight:'bold',opacity:'0.6'}}>Set default</span><br/>```config = { use: { actionTimeout: 10000 } }```<br/><span >Override</span><br/>```locator.click({ timeout: 10000 })```|+|Navigation timeout| no timeout |Timeout for each navigation action:<br/><span style={{textTransform:'uppercase',fontSize:'smaller',fontWeight:'bold',opacity:'0.6'}}>Set default</span><br/>```config = { use: { navigationTimeout: 30000 } }```<br/><span >Override</span><br/>```page.goto('/', { timeout: 30000 })```|+|Global timeout|no timeout |Global timeout for the whole test run:<br/><span style={{textTransform:'uppercase',fontSize:'smaller',fontWeight:'bold',opacity:'0.6'}}>Set in config</span><br/>```config = { globalTimeout: 60*60*1000 }```<br/>|## Test timeout