@@ -39,12 +39,9 @@ class MarkDirectoryAsMagentoRootTest {
39
39
40
40
@BeforeEach
41
41
fun setup () {
42
- // Get the user's home directory in a platform-independent way
43
- val userHomeDir = System .getProperty(" user.home" )
44
-
45
42
// Create a temporary directory inside the user's home directory
46
- val tempDirPath = Paths .get(userHomeDir, " intellij-test-project" )
47
- tempProjectDir = createDirectories(tempDirPath ).toFile().apply {
43
+ val projectDir = Paths .get(" intellij-test-project" )
44
+ tempProjectDir = createDirectories(projectDir ).toFile().apply {
48
45
// Ensure the temporary directory is deleted and recreated
49
46
if (exists()) {
50
47
deleteRecursively()
@@ -77,20 +74,20 @@ class MarkDirectoryAsMagentoRootTest {
77
74
@Video
78
75
fun testMarkDirectoryAsMagentoRoot (remoteRobot : RemoteRobot ) = with (remoteRobot) {
79
76
// temporary workaround until we get license for CI
80
- if (System .getenv(" GITHUB_ACTIONS" ) == " true" ) {
81
- val startTrial = find<ContainerFixture >(byXpath(" //div[@visible_text='Start trial']" ))
82
- startTrial.click()
83
- val startTrialFree = find<ContainerFixture >(byXpath(" //div[@class='s']" ))
84
- startTrialFree.click()
85
- val dialog = find<DialogFixture >(byXpath(" //div[@class='MyDialog']" ))
86
- dialog.button(" Close" ).click()
87
- Thread .sleep(10_000 )
88
- closeBrowser()
89
- } else {
90
- val dialog = find<DialogFixture >(byXpath(" //div[@class='MyDialog']" ))
91
- dialog.button(" Activate" ).click()
92
- dialog.button(" Close" ).click()
93
- }
77
+ // if (System.getenv("GITHUB_ACTIONS") == "true") {
78
+ // val startTrial = find<ContainerFixture>(byXpath("//div[@visible_text='Start trial']"))
79
+ // startTrial.click()
80
+ // val startTrialFree = find<ContainerFixture>(byXpath("//div[@class='s']"))
81
+ // startTrialFree.click()
82
+ // val dialog = find<DialogFixture>(byXpath("//div[@class='MyDialog']"))
83
+ // dialog.button("Close").click()
84
+ // Thread.sleep(10_000)
85
+ // closeBrowser()
86
+ // } else {
87
+ // val dialog = find<DialogFixture>(byXpath("//div[@class='MyDialog']"))
88
+ // dialog.button("Activate").click()
89
+ // dialog.button("Close").click()
90
+ // }
94
91
// end temporary workaround
95
92
96
93
welcomeFrame {
0 commit comments