Skip to content

Commit

Permalink
Fix warnings in test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
gnarf committed May 21, 2024
1 parent a659c83 commit 8687d63
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
10 changes: 6 additions & 4 deletions client/tests/AddTestToQueueWithConfirmation.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,12 @@ const mockTestPlanReportsQueryResult = {
},
isFinal: false,
at: {
id: '1'
id: '1',
key: 'jaws'
},
browser: {
id: '2'
id: '2',
key: 'firefox'
}
}
]
Expand All @@ -64,8 +66,8 @@ const setup = (props, mockMutation) => {

const commonSetup = mockMutation => {
mockTestPlanVersion = { id: 5 };
mockBrowser = { id: 2 };
mockAt = { id: 3 };
mockBrowser = { id: '2', key: 'firefox', name: 'Firefox' };
mockAt = { id: '3', key: 'voiceover_macos', name: 'VoiceOver' };
mockButtonText = 'Add to Test Queue';

const renderResult = setup(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2624,10 +2624,12 @@ export default (
isFinal: true,
at: {
id: '3',
key: 'voiceover_macos',
name: 'VoiceOver for macOS'
},
browser: {
id: '3',
key: 'safari',
name: 'Safari'
},
issues: [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,12 @@ export const mockedTestPlanVersion = {
markedFinalAt: null,
at: {
id: '2',
key: 'nvda',
name: 'NVDA'
},
browser: {
id: '1',
key: 'firefox',
name: 'Firefox'
},
issues: [],
Expand Down Expand Up @@ -309,6 +311,7 @@ export default (
ats: [
{
id: '1',
key: 'jaws',
name: 'JAWS',
atVersions: [
{
Expand All @@ -334,6 +337,7 @@ export default (
},
{
id: '2',
key: 'nvda',
name: 'NVDA',
atVersions: [
{
Expand All @@ -359,6 +363,7 @@ export default (
},
{
id: '3',
key: 'voiceover_macos',
name: 'VoiceOver for macOS',
atVersions: [
{
Expand Down Expand Up @@ -412,10 +417,14 @@ export default (
initiatedByAutomation: true
},
at: {
id: '1'
id: '1',
key: 'jaws',
name: 'JAWS'
},
browser: {
id: '2'
id: '2',
key: 'firefox',
name: 'Firefox'
}
}
]
Expand Down

0 comments on commit 8687d63

Please sign in to comment.