Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(update): change order of pages in create account #680

Merged
merged 10 commits into from
Apr 17, 2024
32 changes: 3 additions & 29 deletions .github/workflows/ui-automated-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -278,16 +278,6 @@ jobs:
if: steps.cache-mac.outputs.cache-hit != 'true'
run: npm ci

- name: Install Appium Server πŸ’»
run: |
npm install -g appium@next
appium -v

- name: Install Appium Driver πŸ’»
run: |
appium driver install mac2
appium driver list

- name: Update MacOS runner to not autocorrect text
run: |
defaults write -g NSAutomaticCapitalizationEnabled -bool false
Expand Down Expand Up @@ -424,16 +414,6 @@ jobs:
if: steps.cache-mac.outputs.cache-hit != 'true'
run: npm ci

- name: Install Appium Server πŸ’»
run: |
npm install -g appium@next
appium -v

- name: Install Appium Driver πŸ’»
run: |
appium driver install mac2
appium driver list

- name: Update MacOS runner to not autocorrect text
run: |
defaults write -g NSAutomaticCapitalizationEnabled -bool false
Expand Down Expand Up @@ -571,15 +551,9 @@ jobs:
if: steps.cache-windows.outputs.cache-hit != 'true'
run: npm ci

- name: Install and Run Appium Server πŸ’»
run: |
npm install -g appium@next
appium -v

- name: Install Appium Driver πŸ’»
run: |
appium driver install --source=npm appium-windows-driver
appium driver list
- name: Delete Cache Folder of Appium if exists - Windows
run: If (Test-Path $home/.appium) {Remove-Item -Recurse -Force $home/.appium} Else { Break }
shell: powershell

- name: Setup FFMPEG to record screen
uses: FedericoCarboni/setup-ffmpeg@v2
Expand Down
36 changes: 17 additions & 19 deletions config/wdio.shared.conf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,24 +65,6 @@ export const config: WebdriverIO.Config = {
//
// Default request retries count
connectionRetryCount: 3,
// Test runner services
// Services take over a specific job you don't want to take care of. They enhance
// your test setup with almost no effort. Unlike plugins, they don't add new
// commands. Instead, they hook themselves up into the test process.
services: [
[
"appium",
{
command: "appium",
args: {
port: 4723,
relaxedSecurity: true,
log: "./appium.log",
},
},
],
],

// Framework you want to run your specs with.
// The following are supported: Mocha, Jasmine, and Cucumber
// see also: https://webdriver.io/docs/frameworks
Expand Down Expand Up @@ -110,7 +92,23 @@ export const config: WebdriverIO.Config = {
timeout: 180000, // 3min
bail: true,
},

// Test runner services
// Services take over a specific job you don't want to take care of. They enhance
// your test setup with almost no effort. Unlike plugins, they don't add new
// commands. Instead, they hook themselves up into the test process.
services: [
[
"appium",
{
command: "appium",
args: {
port: 4723,
relaxedSecurity: true,
log: "./appium.log",
},
},
],
],
//
// =====
// Hooks
Expand Down
9 changes: 7 additions & 2 deletions config/wdio.windows.app.conf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ const sharedConfig = require("@config/wdio.shared.conf.ts").config;
const homedir = require("os").homedir;
const join = require("path").join;
const fsp = require("fs").promises;
const kill = require("kill-port");

const { readFileSync, rmSync } = require("fs");
const WINDOWS_APP_LOCATION = require("@helpers/constants").WINDOWS_APP;

Expand All @@ -26,6 +28,8 @@ export const config: WebdriverIO.Config = {
// then the current working directory is where your `package.json` resides, so `wdio`
// will be called from there.
//
port: 4723,
path: "/wd/hub/",
specs: [
join(process.cwd(), "./tests/suites/MainTests/02-UplinkWindows.suite.ts"),
],
Expand All @@ -46,8 +50,6 @@ export const config: WebdriverIO.Config = {
// Sauce Labs platform configurator - a great tool to configure your capabilities:
// https://docs.saucelabs.com/reference/platforms-configurator
//
port: 4723,
path: "/",
capabilities: [
{
platformName: "windows",
Expand Down Expand Up @@ -105,6 +107,9 @@ export const config: WebdriverIO.Config = {
// it and to build services around it. You can either apply a single function or an array of
// methods to it. If one of them returns with a promise, WebdriverIO will wait until that promise got
// resolved to continue.
onComplete: async function (exitCode, config, capabilities, results) {
await kill(4723, "tcp");
},
onPrepare: async function () {
// Declare constants for folder locations
const cacheFolder = homedir() + "\\.uplink\\.user";
Expand Down
6 changes: 5 additions & 1 deletion config/wdio.windows.ci.conf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const homedir = require("os").homedir;
const join = require("path").join;
const fsp = require("fs").promises;
const { readFileSync, rmSync } = require("fs");
const kill = require("kill-port");
const WINDOWS_APP_LOCATION = require("@helpers/constants").WINDOWS_APP;

export const config: WebdriverIO.Config = {
Expand Down Expand Up @@ -47,7 +48,7 @@ export const config: WebdriverIO.Config = {
// https://docs.saucelabs.com/reference/platforms-configurator
//
port: 4723,
path: "/",
path: "/wd/hub/",
capabilities: [
{
platformName: "windows",
Expand Down Expand Up @@ -105,6 +106,9 @@ export const config: WebdriverIO.Config = {
// it and to build services around it. You can either apply a single function or an array of
// methods to it. If one of them returns with a promise, WebdriverIO will wait until that promise got
// resolved to continue.
onComplete: async function (exitCode, config, capabilities, results) {
await kill(4723, "tcp");
},
onPrepare: async function () {
// Declare constants for folder locations
const cacheFolder = homedir() + "\\.uplink\\.user";
Expand Down
6 changes: 5 additions & 1 deletion config/wdio.windows.onetime.conf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const homedir = require("os").homedir;
const join = require("path").join;
const fsp = require("fs").promises;
const { rmSync } = require("fs");
const kill = require("kill-port");
const WINDOWS_APP_LOCATION = require("@helpers/constants").WINDOWS_APP;

export const config: WebdriverIO.Config = {
Expand Down Expand Up @@ -46,7 +47,7 @@ export const config: WebdriverIO.Config = {
// https://docs.saucelabs.com/reference/platforms-configurator
//
port: 4723,
path: "/",
path: "/wd/hub/",
capabilities: [
{
platformName: "windows",
Expand Down Expand Up @@ -87,6 +88,9 @@ export const config: WebdriverIO.Config = {
// it and to build services around it. You can either apply a single function or an array of
// methods to it. If one of them returns with a promise, WebdriverIO will wait until that promise got
// resolved to continue.
onComplete: async function (exitCode, config, capabilities, results) {
await kill(4723, "tcp");
},
onPrepare: async function () {
// Declare constants for folder locations
const cacheFolder = homedir() + "\\.uplink\\.user";
Expand Down
Loading
Loading