[remote-driver] Update license tests to use new license dialog (IJPL-148224)

(cherry picked from commit 5fff781d6345ded1c2a929e5c76f801663f85366)

IJ-CR-148048

GitOrigin-RevId: 8e074f4990af5f548be8ec0add4d5237939f47c3
This commit is contained in:
Dmitry.Yudin
2024-10-22 16:02:57 +02:00
committed by intellij-monorepo-bot
parent da441b45a2
commit 12357b95f7

View File

@@ -0,0 +1,15 @@
package com.intellij.driver.sdk.application
import com.intellij.driver.client.Driver
import com.intellij.driver.client.Remote
import java.time.LocalDate
import java.time.ZoneId
import java.util.Date
@Remote("com.intellij.util.text.DateFormatUtil")
interface DateFormatUtil {
fun formatDate(date: Date): String
}
fun Driver.formatLicenseDate(date: LocalDate) = utility(DateFormatUtil::class)
.formatDate(Date.from(date.atStartOfDay(ZoneId.systemDefault()).toInstant()))