Skip to content

Commit 53050fa

Browse files
committed
[js] Add test skeleton
1 parent 2e7c64f commit 53050fa

File tree

3 files changed

+48
-1
lines changed

3 files changed

+48
-1
lines changed

javascript/node/selenium-webdriver/lib/test/fileserver.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ const Pages = (function () {
118118
addPage('emptyText', 'bidi/emptyText.txt')
119119
addPage('redirectedHttpEquiv', 'bidi/redirected_http_equiv.html')
120120
addPage('releaseAction', 'bidi/release_action.html')
121-
121+
addPage('fedcm', '/fedcm/fedcm.html')
122122
return pages
123123
})()
124124

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
// Licensed to the Software Freedom Conservancy (SFC) under one
2+
// or more contributor license agreements. See the NOTICE file
3+
// distributed with this work for additional information
4+
// regarding copyright ownership. The SFC licenses this file
5+
// to you under the Apache License, Version 2.0 (the
6+
// "License"); you may not use this file except in compliance
7+
// with the License. You may obtain a copy of the License at
8+
//
9+
// http://www.apache.org/licenses/LICENSE-2.0
10+
//
11+
// Unless required by applicable law or agreed to in writing,
12+
// software distributed under the License is distributed on an
13+
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
// KIND, either express or implied. See the License for the
15+
// specific language governing permissions and limitations
16+
// under the License.
17+
18+
'use strict'
19+
20+
const assert = require('node:assert')
21+
const { Browser } = require('selenium-webdriver')
22+
const { Pages, suite } = require('../../lib/test')
23+
const until = require('selenium-webdriver/lib/until')
24+
25+
suite(
26+
function (env) {
27+
let driver
28+
29+
beforeEach(async function () {
30+
driver = await env.builder().build()
31+
})
32+
33+
afterEach(async function () {
34+
await driver.quit()
35+
})
36+
37+
describe('Federated Credential Management Tess', function () {
38+
it('dailog test', async function () {
39+
40+
await driver.get(Pages.fedcm)
41+
42+
})
43+
})
44+
},
45+
{ browsers: [Browser.CHROME] },
46+
)

javascript/node/selenium-webdriver/testing/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@ class Environment {
312312
options.setChromeBinaryPath(binary)
313313
options.setAcceptInsecureCerts(true)
314314
options.addArguments('disable-infobars', 'disable-breakpad', 'disable-dev-shm-usage', 'no-sandbox')
315+
options.set('fedcm:accounts', true)
315316
builder.setChromeOptions(options)
316317
}
317318
// Edge

0 commit comments

Comments
 (0)