Skip to content

Commit a226c97

Browse files
committed
latest rc 2/5/24
1 parent 681169b commit a226c97

File tree

42 files changed

+446
-274
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+446
-274
lines changed

packages/code-export-csharp-commons/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@seleniumhq/code-export-csharp-commons",
3-
"version": "4.0.0-alpha.4",
3+
"version": "4.0.0-alpha.5",
44
"private": false,
55
"description": "Commons for exporting Selenium IDE project contents to C#",
66
"repository": "https://github.com/SeleniumHQ/selenium-ide",
@@ -18,7 +18,7 @@
1818
"watch": "tsc --watch"
1919
},
2020
"dependencies": {
21-
"side-code-export": "^4.0.0-alpha.15"
21+
"side-code-export": "^4.0.0-alpha.16"
2222
},
2323
"devDependencies": {
2424
"@seleniumhq/side-model": "^4.0.0-alpha.5"

packages/code-export-csharp-nunit/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@seleniumhq/code-export-csharp-nunit",
3-
"version": "4.0.0-alpha.4",
3+
"version": "4.0.0-alpha.5",
44
"private": false,
55
"description": "Export Selenium IDE project contents to C# NUnit",
66
"repository": "https://github.com/SeleniumHQ/selenium-ide",
@@ -18,8 +18,8 @@
1818
"main": "dist/index.js",
1919
"types": "dist/index.d.ts",
2020
"dependencies": {
21-
"@seleniumhq/code-export-csharp-commons": "^4.0.0-alpha.3",
22-
"side-code-export": "^4.0.0-alpha.15"
21+
"@seleniumhq/code-export-csharp-commons": "^4.0.0-alpha.5",
22+
"side-code-export": "^4.0.0-alpha.16"
2323
},
2424
"gitHead": "f58e327e7616e23a3e926e4b80cf9952164e5744"
2525
}

packages/code-export-csharp-xunit/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@seleniumhq/code-export-csharp-xunit",
3-
"version": "4.0.0-alpha.4",
3+
"version": "4.0.0-alpha.5",
44
"private": false,
55
"description": "Export Selenium IDE project contents to C# XUnit",
66
"repository": "https://github.com/SeleniumHQ/selenium-ide",
@@ -18,8 +18,8 @@
1818
"main": "dist/index.js",
1919
"types": "dist/index.d.ts",
2020
"dependencies": {
21-
"@seleniumhq/code-export-csharp-commons": "^4.0.0-alpha.2",
22-
"side-code-export": "^4.0.0-alpha.15"
21+
"@seleniumhq/code-export-csharp-commons": "^4.0.0-alpha.5",
22+
"side-code-export": "^4.0.0-alpha.16"
2323
},
2424
"devDependencies": {
2525
"@seleniumhq/side-model": "^4.0.0-alpha.5"

packages/code-export-java-junit/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@seleniumhq/code-export-java-junit",
3-
"version": "4.0.0-alpha.4",
3+
"version": "4.0.0-alpha.5",
44
"private": false,
55
"description": "Export Selenium IDE project contents to Java JUnit",
66
"repository": "https://github.com/SeleniumHQ/selenium-ide",
@@ -17,7 +17,7 @@
1717
},
1818
"main": "dist/index.js",
1919
"dependencies": {
20-
"side-code-export": "^4.0.0-alpha.15"
20+
"side-code-export": "^4.0.0-alpha.16"
2121
},
2222
"devDependencies": {
2323
"@seleniumhq/side-model": "^4.0.0-alpha.5"

packages/code-export-javascript-mocha/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@seleniumhq/code-export-javascript-mocha",
3-
"version": "4.0.0-alpha.6",
3+
"version": "4.0.0-alpha.7",
44
"private": false,
55
"description": "Export Selenium IDE project contents to JavaScript Mocha",
66
"repository": "https://github.com/SeleniumHQ/selenium-ide",
@@ -17,7 +17,7 @@
1717
},
1818
"main": "dist/index.js",
1919
"dependencies": {
20-
"side-code-export": "^4.0.0-alpha.15"
20+
"side-code-export": "^4.0.0-alpha.16"
2121
},
2222
"devDependencies": {
2323
"@seleniumhq/side-model": "^4.0.0-alpha.5"

packages/code-export-python-pytest/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@seleniumhq/code-export-python-pytest",
3-
"version": "4.0.0-alpha.5",
3+
"version": "4.0.0-alpha.6",
44
"private": false,
55
"description": "Export Selenium IDE project contents to Python pytest",
66
"repository": "https://github.com/SeleniumHQ/selenium-ide",
@@ -17,7 +17,7 @@
1717
},
1818
"main": "dist/index.js",
1919
"dependencies": {
20-
"side-code-export": "^4.0.0-alpha.15"
20+
"side-code-export": "^4.0.0-alpha.16"
2121
},
2222
"devDependencies": {
2323
"@seleniumhq/side-model": "^4.0.0-alpha.5"

packages/code-export-ruby-rspec/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@seleniumhq/code-export-ruby-rspec",
3-
"version": "4.0.0-alpha.4",
3+
"version": "4.0.0-alpha.5",
44
"private": false,
55
"description": "Export Selenium IDE project contents to Ruby RSpec",
66
"repository": "https://github.com/SeleniumHQ/selenium-ide",
@@ -17,7 +17,7 @@
1717
},
1818
"main": "dist/index.js",
1919
"dependencies": {
20-
"side-code-export": "^4.0.0-alpha.15"
20+
"side-code-export": "^4.0.0-alpha.16"
2121
},
2222
"devDependencies": {
2323
"@seleniumhq/side-model": "^4.0.0-alpha.5"

packages/selenium-ide/package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "selenium-ide",
3-
"version": "4.0.1-alpha.94",
3+
"version": "4.0.1-alpha.95",
44
"private": false,
55
"description": "Selenium IDE electron app",
66
"author": "Todd <[email protected]>",
@@ -114,17 +114,17 @@
114114
"@fontsource/roboto": "^5.0.8",
115115
"@mui/icons-material": "^5.15.0",
116116
"@mui/material": "^5.15.0",
117-
"@seleniumhq/code-export-csharp-nunit": "^4.0.0-alpha.4",
118-
"@seleniumhq/code-export-csharp-xunit": "^4.0.0-alpha.4",
119-
"@seleniumhq/code-export-java-junit": "^4.0.0-alpha.4",
120-
"@seleniumhq/code-export-javascript-mocha": "^4.0.0-alpha.6",
121-
"@seleniumhq/code-export-python-pytest": "^4.0.0-alpha.5",
122-
"@seleniumhq/code-export-ruby-rspec": "^4.0.0-alpha.4",
117+
"@seleniumhq/code-export-csharp-nunit": "^4.0.0-alpha.5",
118+
"@seleniumhq/code-export-csharp-xunit": "^4.0.0-alpha.5",
119+
"@seleniumhq/code-export-java-junit": "^4.0.0-alpha.5",
120+
"@seleniumhq/code-export-javascript-mocha": "^4.0.0-alpha.7",
121+
"@seleniumhq/code-export-python-pytest": "^4.0.0-alpha.6",
122+
"@seleniumhq/code-export-ruby-rspec": "^4.0.0-alpha.5",
123123
"@seleniumhq/get-driver": "^4.0.0-alpha.3",
124-
"@seleniumhq/side-api": "^4.0.0-alpha.46",
124+
"@seleniumhq/side-api": "^4.0.0-alpha.48",
125125
"@seleniumhq/side-commons": "^4.0.0-alpha.2",
126126
"@seleniumhq/side-model": "^4.0.0-alpha.5",
127-
"@seleniumhq/side-runtime": "^4.0.0-alpha.40",
127+
"@seleniumhq/side-runtime": "^4.0.0-alpha.42",
128128
"dnd-core": "^16.0.1",
129129
"electron-chromedriver": "^28.0.0",
130130
"electron-log": "^5.1.0",
@@ -140,7 +140,7 @@
140140
"react-resizable-panels": "^1.0.8",
141141
"scroll-into-view-if-needed": "^3.0.10",
142142
"selenium-webdriver": "^4.16.0",
143-
"side-code-export": "^4.0.0-alpha.15",
143+
"side-code-export": "^4.0.0-alpha.16",
144144
"v8-compile-cache": "^2.3.0"
145145
},
146146
"devDependencies": {

packages/selenium-ide/src/browser/components/AppBar/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { SUITES_TAB, TESTS_TAB } from '../../enums/tab'
66
import { SIDEMainProps } from '../types'
77
import AppBarTabs from './AppBarTabs'
88
import { Paper } from '@mui/material'
9+
import { getActiveTest } from '@seleniumhq/side-api'
910

1011
const SIDEAppBar: React.FC<Pick<SIDEMainProps, 'session' | 'setTab' | 'tab'>> = ({
1112
session,
@@ -17,7 +18,7 @@ const SIDEAppBar: React.FC<Pick<SIDEMainProps, 'session' | 'setTab' | 'tab'>> =
1718
<AppBarTabs setTab={setTab} tab={tab} />
1819
<div className="flex flex-1" />
1920
<TabPanel index={TESTS_TAB} value={tab}>
20-
<TestControls state={session.state} />
21+
<TestControls state={session.state} test={getActiveTest(session)} />
2122
</TabPanel>
2223
<TabPanel index={SUITES_TAB} value={tab}>
2324
<SuiteControls state={session.state} />
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
import SkipNextIcon from '@mui/icons-material/SkipNext'
2+
import IconButton from '@mui/material/IconButton'
3+
import Tooltip from '@mui/material/Tooltip'
4+
import { StateShape, TestShape } from '@seleniumhq/side-api'
5+
import React, { FC } from 'react'
6+
import { badIndex } from '@seleniumhq/side-api/dist/constants/badIndex'
7+
import baseControlProps from './BaseProps'
8+
9+
export interface PlayNextStepButtonProps {
10+
state: StateShape
11+
test: TestShape
12+
}
13+
14+
const PlayNextStepButton: FC<PlayNextStepButtonProps> = ({ state, test }) => {
15+
const selectedCommandIndex = React.useMemo(() => {
16+
const selectedCommandIndexes = state.editor.selectedCommandIndexes
17+
if (selectedCommandIndexes.length !== 1) {
18+
return badIndex
19+
}
20+
return selectedCommandIndexes[0]
21+
}, [state])
22+
const testLastIndex = React.useMemo(() => {
23+
return test.commands.length - 1
24+
}, [test])
25+
const disabled = React.useMemo(() => {
26+
if (selectedCommandIndex === badIndex) {
27+
return true
28+
}
29+
if (selectedCommandIndex === testLastIndex) {
30+
return true
31+
}
32+
return false
33+
}, [selectedCommandIndex, testLastIndex])
34+
return (
35+
<Tooltip title="Play Next Step" aria-label="play-next-step">
36+
<IconButton
37+
{...baseControlProps}
38+
disabled={disabled}
39+
onClick={() => {
40+
window.sideAPI.playback.play(state.activeTestID, [
41+
selectedCommandIndex,
42+
selectedCommandIndex + 1,
43+
])
44+
}}
45+
>
46+
<SkipNextIcon />
47+
</IconButton>
48+
</Tooltip>
49+
)
50+
}
51+
52+
export default PlayNextStepButton

0 commit comments

Comments
 (0)