Skip to content

Commit

Permalink
nightwatchjs#293 Fix Webdriver Spec
Browse files Browse the repository at this point in the history
  • Loading branch information
ParmarKrishna committed Mar 27, 2024
1 parent 178074e commit 425690f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions postdoc.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ const {
BASE_URL = 'https://nightwatchjs.org',
MD_DOCS_FOLDER = './docs',
API_DOCS_FOLDER = resolve('../nightwatch/lib/api'),
EXAMPLES_FOLDER = 'node_modules/nightwatch-examples/tests'
EXAMPLES_FOLDER = 'node_modules/nightwatch-examples/tests',
WEBDRIVER_SPEC = 'https://www.w3.org/TR/webdriver',
} = env;

export default {
Expand Down Expand Up @@ -87,6 +88,7 @@ export default {
appSettings: {
version: NIGHTWATCH_VERSION,
baseUrl: BASE_URL,
webdriverSpec : WEBDRIVER_SPEC,
apiRepoUrl: 'https://github.com',
githubRepo: 'nightwatchjs/nightwatch',
docsRepoUrl: 'https://github.com/nightwatchjs/nightwatch-docs/blob/',
Expand All @@ -102,4 +104,4 @@ export default {
logger: {
quiet: false
}
};
};
2 changes: 1 addition & 1 deletion src/includes/api-method.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ npx nightwatch <%- method.exampleLink %></code></pre>
<% if (method.link) { %>
<h3>W3C WebDriver spec</h3>
<ul>
<li><code><a href="<%= method.link %>" target="_blank"><%- method.link %></a></code></li>
<li><code><a href="<%- appSettings.webdriverSpec -%><%= method.link %>" target="_blank"><%- method.link %></a></code></li>
</ul>
<% } %>
<% } %>

0 comments on commit 425690f

Please sign in to comment.