Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Diff not rendered.
Diff not rendered.
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/** @jest-environment ./packages/test/harness/src/host/jest/WebDriverEnvironment.js */

describe('accessibility requirement', () => {
describe('attachments in live region should narrate "speak" property', () => {
test('Adaptive Card', () => runHTML('accessibility.liveRegionAttachment.adaptiveCard.speakProperty.html'));
});
describe('live region should narrate "speak" property', () => {
test('Adaptive Card', () => runHTML('accessibility.liveRegionAttachment.adaptiveCard.speakProperty.html'));
});
34 changes: 16 additions & 18 deletions __tests__/html/suggestedActions.stacked.buttonTextWrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,26 @@
// tw - textWrap
// mh - maxHeight

describe('suggested actions stacked button textWrap,', () => {
test('when false, should ignore maxHeight.', () =>
runHTML('suggestedActions.stacked.buttonTextWrap.html#sah=40&tw=false&mh=80'));
test('when false, should ignore maxHeight.', () =>
runHTML('suggestedActions.stacked.buttonTextWrap.html#sah=40&tw=false&mh=80'));

test('when true & maxHeight is 20 & height is default, maxHeight will override height', () =>
runHTML('suggestedActions.stacked.buttonTextWrap.html#tw=true&mh=20'));
test('when true & maxHeight is 20 & height is default, maxHeight will override height', () =>
runHTML('suggestedActions.stacked.buttonTextWrap.html#tw=true&mh=20'));

test('when true & maxHeight is 30, change min height.', () =>
runHTML('suggestedActions.stacked.buttonTextWrap.html#sah=40&tw=true&mh=30'));
test('when true & maxHeight is 30, change min height.', () =>
runHTML('suggestedActions.stacked.buttonTextWrap.html#sah=40&tw=true&mh=30'));

test('when true & maxHeight is 45, change maxHeight.', () =>
runHTML('suggestedActions.stacked.buttonTextWrap.html#sah=40&tw=true&mh=45'));
test('when true & maxHeight is 45, change maxHeight.', () =>
runHTML('suggestedActions.stacked.buttonTextWrap.html#sah=40&tw=true&mh=45'));

test('when true & maxHeight is 80, change maxHeight to fit text.', () =>
runHTML('suggestedActions.stacked.buttonTextWrap.html#sah=40&tw=true&mh=80'));
test('when true & maxHeight is 80, change maxHeight to fit text.', () =>
runHTML('suggestedActions.stacked.buttonTextWrap.html#sah=40&tw=true&mh=80'));

test('when true & maxHeight is 100% & suggested action height is 60, height will be 60', () =>
runHTML('suggestedActions.stacked.buttonTextWrap.html#sah=60&tw=true&mh=100%25'));
test('when true & maxHeight is 100% & suggested action height is 60, height will be 60', () =>
runHTML('suggestedActions.stacked.buttonTextWrap.html#sah=60&tw=true&mh=100%25'));

test('when true & maxHeight is 100%, change maxHeight to fit text.', () =>
runHTML('suggestedActions.stacked.buttonTextWrap.html#sah=20&tw=true&mh=100%25'));
test('when true & maxHeight is 100%, change maxHeight to fit text.', () =>
runHTML('suggestedActions.stacked.buttonTextWrap.html#sah=20&tw=true&mh=100%25'));

test('when true & maxHeight is undefined, should default maxHeight to 100%25', () =>
runHTML('suggestedActions.stacked.buttonTextWrap.html#sah=40&tw=true'));
});
test('when true & maxHeight is undefined, should default maxHeight to 100%25', () =>
runHTML('suggestedActions.stacked.buttonTextWrap.html#sah=40&tw=true'));
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
/** @jest-environment ./packages/test/harness/src/host/jest/WebDriverEnvironment.js */

describe('transcript navigation proactive message behavior', () => {
test('should keep activity focus when interactive element is focused', () =>
runHTML('transcript.navigation.behavior.proactive.adaptiveCard'));
});
test('should retain active descendant and widget focus on new message', () =>
runHTML('transcript.navigation.behavior.proactive.adaptiveCard'));
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/** @jest-environment ./packages/test/harness/src/host/jest/WebDriverEnvironment.js */

describe('transcript navigation', () => {
test('should focus inside the attachment when ENTER key is pressed', () => runHTML('transcript.navigation.focusAttachment.enterKey'));
});
test('should focus inside the attachment on ENTER', () => runHTML('transcript.navigation.focusAttachment.enterKey'));
Loading