test(select): implement screenshot tests for select

PiperOrigin-RevId: 523798756
This commit is contained in:
Material Web Team 2023-04-12 14:00:37 -07:00 committed by Copybara-Service
parent 9d7b2910d7
commit 45c6cb236e
3 changed files with 67 additions and 0 deletions

31
select/select_test.ts Normal file
View File

@ -0,0 +1,31 @@
/**
* @license
* Copyright 2023 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
// import 'jasmine'; (google3-only)
import {createTokenTests} from '../testing/tokens.js';
import {MdOutlinedSelect} from './outlined-select.js';
import {MdFilledSelect} from './filled-select.js';
import {MdSelectOption} from './select-option.js';
describe('<md-outlined-select>', () => {
describe('.styles', () => {
createTokenTests(MdOutlinedSelect.styles);
});
});
describe('<md-filled-select>', () => {
describe('.styles', () => {
createTokenTests(MdFilledSelect.styles);
});
});
describe('<md-select-option>', () => {
describe('.styles', () => {
createTokenTests(MdSelectOption.styles);
});
});

23
select/test/assets.ts Normal file

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,13 @@
{
"capabilities": {
"goog:chromeOptions": {
"args": ["--window-position=0,0", "--window-size=3400,2215"]
},
"moz:firefoxOptions": {
"args": ["-width=3400","-height=2215"]
}
},
"extension": {
"xvfbResolution": "3400x2215x24"
}
}