diff --git a/package-lock.json b/package-lock.json index 7edb74ab..b28d1c99 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,35 +12,25 @@ "prettier": "^3.0.1" }, "devDependencies": { - "@playwright/test": "^1.37.1", + "@playwright/test": "^1.39.0", "dotenv": "^16.3.1" } }, "node_modules/@playwright/test": { - "version": "1.37.1", - "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.37.1.tgz", - "integrity": "sha512-bq9zTli3vWJo8S3LwB91U0qDNQDpEXnw7knhxLM0nwDvexQAwx9tO8iKDZSqqneVq+URd/WIoz+BALMqUTgdSg==", + "version": "1.39.0", + "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.39.0.tgz", + "integrity": "sha512-3u1iFqgzl7zr004bGPYiN/5EZpRUSFddQBra8Rqll5N0/vfpqlP9I9EXqAoGacuAbX6c9Ulg/Cjqglp5VkK6UQ==", "dev": true, "dependencies": { - "@types/node": "*", - "playwright-core": "1.37.1" + "playwright": "1.39.0" }, "bin": { "playwright": "cli.js" }, "engines": { "node": ">=16" - }, - "optionalDependencies": { - "fsevents": "2.3.2" } }, - "node_modules/@types/node": { - "version": "18.11.9", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.9.tgz", - "integrity": "sha512-CRpX21/kGdzjOpFsZSkcrXMGIBWMGNIHXXBVFSH+ggkftxg+XYP20TESbh+zFvFj3EQOl5byk0HTRn1IL6hbqg==", - "dev": true - }, "node_modules/dotenv": { "version": "16.3.1", "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.3.1.tgz", @@ -67,10 +57,28 @@ "node": "^8.16.0 || ^10.6.0 || >=11.0.0" } }, + "node_modules/playwright": { + "version": "1.39.0", + "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.39.0.tgz", + "integrity": "sha512-naE5QT11uC/Oiq0BwZ50gDmy8c8WLPRTEWuSSFVG2egBka/1qMoSqYQcROMT9zLwJ86oPofcTH2jBY/5wWOgIw==", + "dev": true, + "dependencies": { + "playwright-core": "1.39.0" + }, + "bin": { + "playwright": "cli.js" + }, + "engines": { + "node": ">=16" + }, + "optionalDependencies": { + "fsevents": "2.3.2" + } + }, "node_modules/playwright-core": { - "version": "1.37.1", - "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.37.1.tgz", - "integrity": "sha512-17EuQxlSIYCmEMwzMqusJ2ztDgJePjrbttaefgdsiqeLWidjYz9BxXaTaZWxH1J95SHGk6tjE+dwgWILJoUZfA==", + "version": "1.39.0", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.39.0.tgz", + "integrity": "sha512-+k4pdZgs1qiM+OUkSjx96YiKsXsmb59evFoqv8SKO067qBA+Z2s/dCzJij/ZhdQcs2zlTAgRKfeiiLm8PQ2qvw==", "dev": true, "bin": { "playwright-core": "cli.js" @@ -96,22 +104,14 @@ }, "dependencies": { "@playwright/test": { - "version": "1.37.1", - "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.37.1.tgz", - "integrity": "sha512-bq9zTli3vWJo8S3LwB91U0qDNQDpEXnw7knhxLM0nwDvexQAwx9tO8iKDZSqqneVq+URd/WIoz+BALMqUTgdSg==", + "version": "1.39.0", + "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.39.0.tgz", + "integrity": "sha512-3u1iFqgzl7zr004bGPYiN/5EZpRUSFddQBra8Rqll5N0/vfpqlP9I9EXqAoGacuAbX6c9Ulg/Cjqglp5VkK6UQ==", "dev": true, "requires": { - "@types/node": "*", - "fsevents": "2.3.2", - "playwright-core": "1.37.1" + "playwright": "1.39.0" } }, - "@types/node": { - "version": "18.11.9", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.9.tgz", - "integrity": "sha512-CRpX21/kGdzjOpFsZSkcrXMGIBWMGNIHXXBVFSH+ggkftxg+XYP20TESbh+zFvFj3EQOl5byk0HTRn1IL6hbqg==", - "dev": true - }, "dotenv": { "version": "16.3.1", "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.3.1.tgz", @@ -125,10 +125,20 @@ "dev": true, "optional": true }, + "playwright": { + "version": "1.39.0", + "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.39.0.tgz", + "integrity": "sha512-naE5QT11uC/Oiq0BwZ50gDmy8c8WLPRTEWuSSFVG2egBka/1qMoSqYQcROMT9zLwJ86oPofcTH2jBY/5wWOgIw==", + "dev": true, + "requires": { + "fsevents": "2.3.2", + "playwright-core": "1.39.0" + } + }, "playwright-core": { - "version": "1.37.1", - "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.37.1.tgz", - "integrity": "sha512-17EuQxlSIYCmEMwzMqusJ2ztDgJePjrbttaefgdsiqeLWidjYz9BxXaTaZWxH1J95SHGk6tjE+dwgWILJoUZfA==", + "version": "1.39.0", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.39.0.tgz", + "integrity": "sha512-+k4pdZgs1qiM+OUkSjx96YiKsXsmb59evFoqv8SKO067qBA+Z2s/dCzJij/ZhdQcs2zlTAgRKfeiiLm8PQ2qvw==", "dev": true }, "prettier": { diff --git a/package.json b/package.json index 2173b88d..f07957df 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ }, "homepage": "https://github.com/penpot/penpotqa#readme", "devDependencies": { - "@playwright/test": "^1.37.1", + "@playwright/test": "^1.39.0", "dotenv": "^16.3.1" }, "dependencies": { diff --git a/pages/dashboard-page.js b/pages/dashboard-page.js index b8007691..3c140863 100644 --- a/pages/dashboard-page.js +++ b/pages/dashboard-page.js @@ -236,7 +236,7 @@ exports.DashboardPage = class DashboardPage extends BasePage { for (let i = 0; i <= text.length; i++) { await this.page.keyboard.press("Backspace"); } - await this.fileNameInput.type(newFileName); + await this.fileNameInput.pressSequentially(newFileName); await this.page.keyboard.press("Enter"); await this.isFilePresent(newFileName); } @@ -251,7 +251,7 @@ exports.DashboardPage = class DashboardPage extends BasePage { for (let i = 0; i <= text.length; i++) { await this.page.keyboard.press("Backspace"); } - await this.fileNameInput.type(newFileName); + await this.fileNameInput.pressSequentially(newFileName); await this.page.keyboard.press("Enter"); await this.isFilePresent(newFileName); } @@ -348,7 +348,7 @@ exports.DashboardPage = class DashboardPage extends BasePage { } async setProjectName(newProjectName) { - await this.projectNameInput.type(newProjectName); + await this.projectNameInput.pressSequentially(newProjectName); await this.page.keyboard.press("Enter"); } @@ -370,7 +370,7 @@ exports.DashboardPage = class DashboardPage extends BasePage { for (let i = 0; i <= text.length; i++) { await this.page.keyboard.press("Backspace"); } - await this.projectNameInput.type(newProjectName); + await this.projectNameInput.pressSequentially(newProjectName); await this.page.keyboard.press("Enter"); await expect(this.projectNameTitle.first()).toHaveText(newProjectName); } @@ -384,7 +384,7 @@ exports.DashboardPage = class DashboardPage extends BasePage { for (let i = 0; i <= text.length; i++) { await this.page.keyboard.press("Backspace"); } - await this.projectNameInput.type(newProjectName); + await this.projectNameInput.pressSequentially(newProjectName); await this.page.keyboard.press("Enter"); await expect(this.projectNameTitle.first()).toHaveText(newProjectName); } @@ -448,7 +448,7 @@ exports.DashboardPage = class DashboardPage extends BasePage { } async search(text) { - await this.searchInput.type(text); + await this.searchInput.pressSequentially(text); } async uploadFont(filePath) { @@ -496,13 +496,13 @@ exports.DashboardPage = class DashboardPage extends BasePage { await this.fontOptionsMenuButton.click(); await this.editFontMenuItem.click(); await this.clearInput(this.fontNameInput); - await this.fontNameInput.type(newFontName); + await this.fontNameInput.pressSequentially(newFontName); await this.saveFontButton.click(); await expect(this.fontNameTableCell).toHaveText(newFontName); } async searchFont(fontName) { - await this.searchFontInput.type(fontName); + await this.searchFontInput.pressSequentially(fontName); await expect(this.fontNameTableCell).toHaveText(fontName); await expect(this.fontNameTableCell).toHaveCount(1); } diff --git a/pages/team-page.js b/pages/team-page.js index 57511823..ec6c181b 100644 --- a/pages/team-page.js +++ b/pages/team-page.js @@ -158,7 +158,7 @@ exports.TeamPage = class TeamPage extends BasePage { } async enterEmailToInviteMembersPopUp(email) { - await this.inviteMembersToTeamEmailInput.type(email); + await this.inviteMembersToTeamEmailInput.pressSequentially(email); } async clickSendInvitationButton() {