Skip to content

Commit

Permalink
tests fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
datguychen committed Oct 9, 2023
1 parent 3507da0 commit 95c1c3d
Show file tree
Hide file tree
Showing 9 changed files with 219 additions and 157 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CronWorkflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Playwright / Sanity / Cron

on:
schedule:
- cron: '0 */23 * * *'
- cron: '0 6 * * *'


jobs:
Expand Down
48 changes: 10 additions & 38 deletions Utils/pageobjects-tsc/4_Resume.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,49 +4,21 @@ export class Resume {

readonly page: Page;
readonly ResumeTitle: Locator;
readonly CoursesTitle: Locator;
readonly MySkillsTitle: Locator;
readonly FirstCourse: Locator;
readonly FirstCourseTitle: Locator;
readonly FirstCourseCompleted: Locator;
readonly FirstCourseDescription: Locator;
readonly SecondCourse: Locator;
readonly SecondCourseTitle: Locator;
readonly SecondCourseCompleted: Locator;
readonly SecondCourseDescription: Locator;
readonly SecondCourseDownload: Locator;
readonly ThirdCourse: Locator;
readonly ThirdCourseTitle: Locator;
readonly ThirdCourseCompleted: Locator;
readonly ThirdCourseDescription: Locator;
readonly SkillsDiv: Locator;
readonly SkillsNameAndPercentage: Locator;
readonly SkillsDownloadCV: Locator;
readonly SkillsInfo: Locator;
readonly ResumeCVBtn: Locator;
readonly CoursesTitles: Locator;
readonly CoursesTimeStamp: Locator;
readonly CoursesDescription: Locator;
readonly CoursesBtns: Locator;


constructor(page: Page)
{
this.page = page
this.ResumeTitle = page.getByTestId('ResumeTitle');
this.CoursesTitle = page.getByTestId('CoursesTitle');
this.MySkillsTitle = page.getByTestId('SkillsTitle');
this.FirstCourse = page.getByTestId('Course1');
this.FirstCourseTitle = this.FirstCourse.locator('h3');
this.FirstCourseCompleted = this.FirstCourse.locator('time');
this.FirstCourseDescription = this.FirstCourse.locator('p');
this.SecondCourse = page.getByTestId('Course2');
this.SecondCourseTitle = this.SecondCourse.locator('h3');
this.SecondCourseCompleted = this.SecondCourse.locator('time');
this.SecondCourseDescription = this.SecondCourse.locator('p');
this.SecondCourseDownload = this.SecondCourse.locator('a');
this.ThirdCourse = page.getByTestId('Course3');
this.ThirdCourseTitle = this.ThirdCourse.locator('h3');
this.ThirdCourseCompleted = this.ThirdCourse.locator('time');
this.ThirdCourseDescription = this.ThirdCourse.locator('p');
this.SkillsDiv = page.getByTestId('SkillsDiv');
this.SkillsInfo = page.getByTestId('SkillsInfo');
this.SkillsNameAndPercentage = this.SkillsInfo.getByTestId('SkillsName');
this.SkillsDownloadCV = this.SkillsDiv.locator('a');
this.ResumeCVBtn = page.locator('#resume a').last();
this.CoursesTitles = page.locator("#resume h3");
this.CoursesTimeStamp = page.locator("#resume time");
this.CoursesDescription = page.locator("#resume p");
this.CoursesBtns = page.locator("#resume li a");
}
}
Binary file modified src/assets/files/MyResume.pdf
Binary file not shown.
13 changes: 13 additions & 0 deletions src/components/About/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,19 @@ export default function About() {
<span className="text-yellow-600 font-bold">I work with: </span> Playwright Typescript, Github Actions, Postman.
<br></br>
<span className="text-yellow-600 font-bold">I'm learning: </span> Jenkins, ISTQB, Docker, Ruby.
<br></br>
<br></br>
<span className="text-yellow-600 font-bold">My skills: </span> <br></br>
◻️ ✅ Playwright (automation) <br></br>
◻️ ✅ CI/CD - GitHub Actions <br></br>
◻️ ✅ GIT <br></br>
◻️ ✅ GraphQL - Altair <br></br>
◻️ ✅ REST API - Postman <br></br>
◻️ ✅ TypeScript <br></br>
◻️ ✅ Jira / Asana <br></br>
◻️ ✅ Agile / Scrum <br></br>
◻️ ✅ SQL - PostgreSQL / pgAdmin <br></br>
◻️ ✅ ISTQB Methodologies <br></br>
</p>
</div>

Expand Down
19 changes: 0 additions & 19 deletions src/components/Resume/BarGraph.js

This file was deleted.

120 changes: 95 additions & 25 deletions src/components/Resume/index.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
import BarGraph from "./BarGraph";
import DownloadIcon from "@mui/icons-material/Download";

export default function Resume() {
return (
<div id="resume" className="min-h-screen flex-col text-center">
<div className="text-5xl font-bold py-8" data-testid="ResumeTitle">
Resume
Resume & Courses
</div>
<div className="grid grid-cols-2 gap-7 mt-7">
<div className="grid grid-cols-2 mt-7">
<ol class="relative border-l border-gray-700 ml-9 mb-6">
<div className="text-3xl font-bold py-3" data-testid="CoursesTitle" >Courses</div>
<div className="text-3xl font-bold py-3"></div>
<li class="mb-10" data-aos="zoom-in" data-testid="Course1">
<span class="absolute flex items-center justify-center w-6 h-6 rounded-full -left-3 ring-8 ring-gray-900 bg-blue-900">
<svg
Expand All @@ -34,7 +33,6 @@ export default function Resume() {
</time>
<p class="mb-4 text-base font-normal text-gray-400">
Learned how to use JS and TS in Playwright framework to automate frontend and backend testing on my projects.
<br></br>No certificate here as I finished this course on a shared udemy account.
</p>
</li>
<li class="mb-10" data-aos="zoom-out" data-aos-delay="700" data-testid="Course2">
Expand Down Expand Up @@ -83,7 +81,7 @@ export default function Resume() {
Download Certificate
</a>
</li>
<li class="mb-10" data-aos="zoom-in" data-testid="Course4">
<li class="mb-10" data-aos="zoom-in" data-testid="Course3">
<span class="absolute flex items-center justify-center w-6 h-6 rounded-full -left-3 ring-8 ring-gray-900 bg-blue-900">
<svg
aria-hidden="true"
Expand Down Expand Up @@ -129,7 +127,90 @@ export default function Resume() {
Check my Code!
</a>
</li>
<li data-aos="zoom-in" data-aos-offset={"-15"} data-aos-delay="1300" data-testid="Course3">
</ol>
<ol class="relative border-l border-gray-700 ml-9 mb-6">
<div className="text-3xl font-bold py-3" ></div>
<li class="mb-10" data-aos="zoom-in" data-testid="Course5">
<span class="absolute flex items-center justify-center w-6 h-6 rounded-full -left-3 ring-8 ring-gray-900 bg-blue-900">
<svg
aria-hidden="true"
class="w-3 h-3 text-blue-300"
fill="currentColor"
viewBox="0 0 20 20"
xmlns="http://www.w3.org/2000/svg"
>
<path
fill-rule="evenodd"
d="M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z"
clip-rule="evenodd"
></path>
</svg>
</span>
<h3 class="mb-1 text-lg font-semibold text-white" data-testid="Course6">
SQL
</h3>
<time class="block pt-1 pb-3 text-sm font-normal leading-none text-gray-500">
Completed on July, 2023
</time>
<p class="mb-4 text-base font-normal text-gray-400">
I've learned SQL for querying databases and performing data analysis.
<br></br>I'm confident in listing SQL and PostgreSQL on my resume.
</p>
</li>
<li class="mb-10" data-aos="zoom-out" data-aos-delay="700" data-testid="Course2">
<span class="absolute flex items-center justify-center w-6 h-6 rounded-full -left-3 ring-8 ring-gray-900 bg-blue-900">
<svg
aria-hidden="true"
class="w-3 h-3 text-blue-300"
fill="currentColor"
viewBox="0 0 20 20"
xmlns="http://www.w3.org/2000/svg"
>
<path
fill-rule="evenodd"
d="M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z"
clip-rule="evenodd"
></path>
</svg>
</span>
<h3 class="mb-1 text-lg font-semibold text-white" data-testid="Course7">
BDD - Behavioral Driven Development
</h3>
<time class="block mb-2 text-sm font-normal leading-none text-gray-500">
Completed on September, 2022
</time>
<p class="text-base font-normal text-gray-400">
I learned the basics, workflow, and implementation of BDD in projects.
</p>
</li>
<li class="mb-10" data-aos="zoom-in" data-testid="Course8">
<span class="absolute flex items-center justify-center w-6 h-6 rounded-full -left-3 ring-8 ring-gray-900 bg-blue-900">
<svg
aria-hidden="true"
class="w-3 h-3 text-blue-300"
fill="currentColor"
viewBox="0 0 20 20"
xmlns="http://www.w3.org/2000/svg"
>
<path
fill-rule="evenodd"
d="M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z"
clip-rule="evenodd"
></path>
</svg>
</span>
<h3 class="mb-1 text-lg font-semibold text-white" data-testid="Course9">
C# programming language
</h3>
<time class="block pt-1 pb-3 text-sm font-normal leading-none text-gray-500">
Completed on September, 2023
</time>
<p class="mb-4 text-base font-normal text-gray-400">
I learned C# basics, including variables, loops, and objects.
<br></br>I also covered OOP concepts, exception handling, and file operations.
</p>
</li>
<li data-aos="zoom-in" data-aos-offset={"-15"} data-aos-delay="1300" data-testid="Course4">
<span class="absolute flex items-center justify-center w-6 h-6 rounded-full -left-3 ring-8 ring-gray-900 bg-blue-900">
<svg
aria-hidden="true"
Expand All @@ -146,37 +227,26 @@ export default function Resume() {
</svg>
</span>
<h3 class="mb-1 text-lg font-semibold text-white">
Next on my radar: ISTQB
<span className="text-yellow-600">ISTQB </span>
Foundation Level
</h3>
<time class="block mb-2 text-sm font-normal leading-none text-gray-500">
To be completed
To be completed on 13.10.2023
</time>
<p class="text-base font-normal text-gray-400">
This milestone is set as my next goal to become an outstanding QA tester.
</p>
</li>
</ol>

<div className="flex flex-col text-center" data-aos="slide-up" data-testid="SkillsDiv">
<div className="text-3xl font-bold py-3" data-testid="SkillsTitle" >My Skills</div>
<div className="ml-16 flex flex-col gap-8 mt-6" data-testid="SkillsNamesDiv">
<BarGraph name={"JavaScript"} percent={65} />
<BarGraph name={"TypeScript"} percent={60} />
<BarGraph name={"Playwright - Autmation testing"} percent={80} />
<BarGraph name={"Creating documentation"} percent={90} />
<BarGraph name={"Frontend testing"} percent={90} />
<BarGraph name={"Backend testing"} percent={75} />
</div>

<a
</div>
<a
href={require("../../assets/files/MyResume.pdf")}
download={"Adam Swiderski Resume.pdf"}
class="inline-flex items-center px-6 py-2 mt-12 mx-auto w-fit text-sm font-medium border rounded-lg focus:z-10 focus:ring-4 focus:outline-none focus:text-blue-700 bg-gray-800 text-gray-400 border-gray-600 hover:text-white hover:bg-gray-700 focus:ring-gray-700"
data-testid="CVResumeBtn"
class="inline-flex items-center px-8 py-4 mt-12 mx-auto w-fit text-sm font-medium border rounded-lg focus:z-10 focus:ring-4 focus:outline-none focus:text-blue-700 bg-gray-800 text-gray-400 border-gray-600 hover:text-white hover:bg-gray-700 focus:ring-gray-700"
>
Download CV <DownloadIcon />
</a>
</div>
</div>
</div>
);
}
2 changes: 1 addition & 1 deletion tests/2_Home.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ test('Home_Text_Visibility @core', async ({browser})=>

await test.step("Check if the info/credits text is visible & check the text", async () => {
await expect(home.InfoMessage).toBeVisible();
await expect(home.InfoMessage).toHaveText("This page is for automation testing purposes. View it in desktop view only.");
await expect(home.InfoMessage).toHaveText("This page is for automation testing purposes.View it in desktop view only.");
});

await test.step("Check if the Welcome text is visible & check the text", async () => {
Expand Down
Loading

0 comments on commit 95c1c3d

Please sign in to comment.